#NEWLINE# @ classmethod #NEWLINE# def interfaces_list( cls , network_data ) : #NEWLINE# #INDENT# 'Generate list of interfaces' #NEWLINE# interfaces = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for network in network_data : #NEWLINE# #INDENT# if_name = cls . __make_interface_name ( network . get ( 'dev' ) , network . get ( 'vlan' ) ) #NEWLINE# interfaces [ ( '%s_interface' % network [ 'name' ] ) ] = if_name #NEWLINE# if ( network [ 'name' ] == 'public' ) : #NEWLINE# #INDENT# interfaces [ 'floating_interface' ] = if_name #NEWLINE# #UNINDENT# #UNINDENT# return interfaces