#NEWLINE# def _sync_delete_network_profiles( self , combined_res_info , vsm_ip ) : #NEWLINE# #INDENT# 'Sync network profiles by deleting extraneous ones from VSM.' #NEWLINE# ( vsm_net_profile_uuids , neutron_net_profiles ) = combined_res_info #NEWLINE# neutron_net_profile_uuids = set ( self . _get_uuids ( n1kv_const . NETWORK_PROFILES , neutron_net_profiles ) ) #NEWLINE# for np_id in ( self - neutron_net_profile_uuids ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . n1kvclient . delete_network_segment_pool ( np_id , vsm_ip = vsm_ip ) #NEWLINE# log_net_name = ( np_id + n1kv_const . LOGICAL_NETWORK_SUFFIX ) #NEWLINE# self . n1kvclient . delete_logical_network ( log_net_name , vsm_ip = vsm_ip ) #NEWLINE# #UNINDENT# except ( n1kv_exc . VSMError , n1kv_exc . VSMConnectionFailed ) : #NEWLINE# #INDENT# LOG . warning ( ( _LW ( 'Sync exception: Network profile deletion failed. for %s' ) % np_id ) )