vmware: Name public network appropriately to avoid conflicts (#4254)

Co-authored-by: Pearl Dsilva <pearl.dsilva@shapeblue.com>
This commit is contained in:
Pearl Dsilva 2020-08-13 15:52:00 +05:30 committed by GitHub
parent c578004fe5
commit a3d5b08334
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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 + ".";
}
}

View File

@ -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