#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# super ( VerifyDstCloudFunctionality , self ) . setUp ( ) #NEWLINE# self . src_cloud . switch_user ( user = self . src_cloud . username , password = self . src_cloud . password , tenant = self . src_cloud . tenant ) #NEWLINE# self . src_all_nets_sids = [ ] #NEWLINE# for net in self . src_cloud . neutronclient . list_networks ( ) [ 'networks' ] : #NEWLINE# #INDENT# if net [ 'provider:segmentation_id' ] : #NEWLINE# #INDENT# self . src_all_nets_sids . append ( ( net [ 'name' ] , net [ 'provider:segmentation_id' ] ) ) #NEWLINE# #UNINDENT# #UNINDENT# self . dst_cloud . switch_user ( user = self . dst_cloud . username , password = self . dst_cloud . password , tenant = self . dst_cloud . tenant ) #NEWLINE# self . dst_test_tenant_id = self . dst_cloud . get_tenant_id ( TEST_TENANT_NAME ) #NEWLINE# self . dst_net_sid_mapping = [ ] #NEWLINE# self . dst_all_nets_sids = [ ] #NEWLINE# for net in self . dst_cloud . neutronclient . list_networks ( ) [ 'networks' ] : #NEWLINE# #INDENT# if ( ( net [ 'tenant_id' ] == self . dst_test_tenant_id ) and ( net [ 'name' ] in TEST_TENANT_NETWORKS ) ) : #NEWLINE# #INDENT# self . dst_net_sid_mapping . append ( ( net [ 'name' ] , net [ 'provider:segmentation_id' ] ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if net [ 'provider:segmentation_id' ] : #NEWLINE# #INDENT# self . dst_all_nets_sids . append ( ( net [ 'name' ] , net [ 'provider:segmentation_id' ] ) )