mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
vmware: Name public network appropriately to avoid conflicts (#4254)
Co-authored-by: Pearl Dsilva <pearl.dsilva@shapeblue.com>
This commit is contained in:
parent
c578004fe5
commit
a3d5b08334
@ -198,7 +198,7 @@ public class HypervisorHostHelper {
|
||||
if (UNTAGGED_VLAN_NAME.equalsIgnoreCase(vlanId)) {
|
||||
return "cloud.public.untagged";
|
||||
} else {
|
||||
return "cloud.public." + vlanId;
|
||||
return "cloud.public." + vlanId + ".";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -548,7 +548,7 @@ public class HypervisorHostHelperTest {
|
||||
public void testGetPublicNetworkNamePrefixTaggedVlan() throws Exception {
|
||||
vlanId = "1234";
|
||||
String publicNetworkPrefix = HypervisorHostHelper.getPublicNetworkNamePrefix(vlanId);
|
||||
assertEquals("cloud.public.1234", publicNetworkPrefix);
|
||||
assertEquals("cloud.public.1234.", publicNetworkPrefix);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user