コード例 #1
0
ファイル: base.py プロジェクト: Juniper/contrail-test
 def create_vn(self, connections=None, verify=True, option='contrail', **kwargs):
     connections = connections or self.connections
     vn_fixture = self.create_fixture(VNFixture, connections=connections,
                                      option=option, **kwargs)
     if vn_fixture and verify:
         #WA of verifying using admin creds since RI etal system objects
         #wont be visible to the regular user
         vn_admin_fixture = VNFixture(connections=self.connections,
                                      option=option, uuid=vn_fixture.uuid)
         vn_admin_fixture.read()
         assert vn_admin_fixture.verify_on_setup(), 'VN verification failed'
     return vn_fixture
コード例 #2
0
ファイル: base.py プロジェクト: mmithun/contrail-test-ci
 def create_vn(self, connections=None, verify=True, option='contrail', **kwargs):
     connections = connections or self.connections
     vn_fixture = self.create_fixture(VNFixture, connections=connections,
                                      option=option, **kwargs)
     if vn_fixture and verify:
         #WA of verifying using admin creds since RI etal system objects
         #wont be visible to the regular user
         vn_admin_fixture = VNFixture(connections=self.connections,
                                      option=option, uuid=vn_fixture.uuid)
         vn_admin_fixture.read()
         assert vn_admin_fixture.verify_on_setup(), 'VN verification failed'
     return vn_fixture
コード例 #3
0
ファイル: base.py プロジェクト: pryadav7/contrail-test
 def get_ip_fabric_vn_fixture(self):
     fabric_vn =  self.vnc_h.virtual_network_read(fq_name=['default-domain', 'default-project', 'ip-fabric'])
     fabric_vn = VNFixture(self.connections, uuid=fabric_vn.uuid)
     fabric_vn.read()
     return fabric_vn
コード例 #4
0
ファイル: base.py プロジェクト: Juniper/contrail-test
 def get_ip_fabric_vn_fixture(self):
     fabric_vn =  self.vnc_h.virtual_network_read(fq_name=['default-domain', 'default-project', 'ip-fabric'])
     fabric_vn = VNFixture(self.connections, uuid=fabric_vn.uuid)
     fabric_vn.read()
     return fabric_vn