#NEWLINE# def _sync_create_subnets( self , combined_res_info , vsm_ip ) : #NEWLINE# #INDENT# 'Sync subnets by creating missing ones on VSM.' #NEWLINE# ( vsm_subnet_uuids , neutron_subnets ) = combined_res_info #NEWLINE# missing_subnets = [ subnet for subnet in neutron_subnets if ( subnet [ 'id' ] not in vsm_subnet_uuids ) ] #NEWLINE# for subnet in missing_subnets : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . n1kvclient . create_ip_pool ( subnet , vsm_ip = vsm_ip ) #NEWLINE# #UNINDENT# except ( n1kv_exc . VSMError , n1kv_exc . VSMConnectionFailed ) : #NEWLINE# #INDENT# LOG . warning ( ( _LW ( 'Sync Exception: Subnet create failed for %s.' ) % subnet [ 'id' ] ) )