When network's vlan tag is not null, broadcast uri is vlan://<vlanTag>

This commit is contained in:
Adrian Cole 2011-02-13 06:46:59 +01:00
parent 5df7f7d148
commit b0b79e3d5a
1 changed files with 16 additions and 18 deletions

View File

@ -55,8 +55,6 @@ public class NetworkClientLiveTest extends BaseCloudStackClientLiveTest {
assert network.getGuestIPType() != null && network.getGuestIPType() != GuestIPType.UNRECOGNIZED : network; assert network.getGuestIPType() != null && network.getGuestIPType() != GuestIPType.UNRECOGNIZED : network;
assert network.getAccount() != null : network; assert network.getAccount() != null : network;
assert network.getBroadcastDomainType() != null : network; assert network.getBroadcastDomainType() != null : network;
// TODO understand when this is null and for what reason
// assert network.getBroadcastURI() != null : network;
assert network.getDisplayText() != null : network; assert network.getDisplayText() != null : network;
assert network.getNetworkDomain() != null : network; assert network.getNetworkDomain() != null : network;
assert network.getNetworkOfferingAvailability() != null : network; assert network.getNetworkOfferingAvailability() != null : network;
@ -82,6 +80,7 @@ public class NetworkClientLiveTest extends BaseCloudStackClientLiveTest {
assert network.getNetmask() != null : network; assert network.getNetmask() != null : network;
assert network.getGateway() != null : network; assert network.getGateway() != null : network;
assert network.getVLAN() != null : network; assert network.getVLAN() != null : network;
assertEquals(network.getBroadcastURI(), "vlan://" + network.getVLAN());
assert network.getStartIP() != null : network; assert network.getStartIP() != null : network;
assert network.getEndIP() != null : network; assert network.getEndIP() != null : network;
break; break;
@ -89,5 +88,4 @@ public class NetworkClientLiveTest extends BaseCloudStackClientLiveTest {
} }
} }
} }