#NEWLINE# def get_ifaces_on_deployed_node( self , node , node_json , networks_to_skip ) : #NEWLINE# #INDENT# for iface in networks_to_skip . interfaces : #NEWLINE# #INDENT# vlans = [ ] #NEWLINE# for ng in iface . assigned_networks_list : #NEWLINE# #INDENT# if ( ng . group_id is None ) : #NEWLINE# #INDENT# vlans . append ( 0 ) #NEWLINE# continue #NEWLINE# #UNINDENT# if ( ng . name in networks_to_skip ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# data_ng = filter ( ( lambda i : ( i [ 'name' ] == ng . name ) ) , self . config ) [ 0 ] #NEWLINE# if data_ng [ 'vlans' ] : #NEWLINE# #INDENT# vlans . extend ( data_ng [ 'vlans' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# vlans . append ( 0 ) #NEWLINE# #UNINDENT# #UNINDENT# if vlans : #NEWLINE# #INDENT# node_json [ 'networks' ] . append ( { #NEWLINE# #INDENT# 'iface' : iface . name , #NEWLINE# 'vlans' : vlans , #NEWLINE# #UNINDENT# } )