4040 get_template ,
4141 verifyNetworkState ,
4242 add_netscaler ,
43- wait_for_cleanup , list_routers , list_hosts )
43+ wait_for_cleanup , list_routers , list_hosts , list_clusters )
4444from nose .plugins .attrib import attr
4545from marvin .codes import PASS , FAIL , FAILED
4646from marvin .sshClient import SshClient
@@ -68,6 +68,7 @@ def setUpClass(cls):
6868 cls .hypervisor = cls .testClient .getHypervisorInfo ()
6969 cls .domain = get_domain (cls .api_client )
7070 cls .zone = get_zone (cls .api_client , cls .testClient .getZoneForTests ())
71+ cls .cluster = list_clusters (cls .api_client )[0 ]
7172 cls .template = get_template (
7273 cls .api_client ,
7374 cls .zone .id ,
@@ -288,6 +289,7 @@ def test_newly_added_host_for_persistent_network_resources(self):
288289 l2_persistent_network_offering = self .createNetworkOffering ("nw_off_L2_persistent" )
289290 hosts = list_hosts (self .apiclient , clusterid = self .cluster .id )
290291 host = hosts [0 ]
292+ vlan_id = 991
291293
292294 Host (hosts [0 ].__dict__ ).delete (self .apiclient ) # remove host from zone before creating network
293295
@@ -297,7 +299,8 @@ def test_newly_added_host_for_persistent_network_resources(self):
297299 networkofferingid = l2_persistent_network_offering .id ,
298300 accountid = self .account .name ,
299301 domainid = self .domain .id ,
300- zoneid = self .zone .id
302+ zoneid = self .zone .id ,
303+ vlan = vlan_id
301304 )
302305
303306 self .cleanup .append (network )
0 commit comments