@utils.arg('--fields', default=None, metavar='<fields>', help=_('Comma-separated list of fields to display. Use the show command to see which fields are available.'))
@deprecated_network
def do_network_list(cs, args):
 network_list = cs.networks.list()
 columns = ['ID', 'Label', 'Cidr']
 columns += _get_list_table_columns_and_formatters(args.fields, network_list, exclude_fields=(c.lower() for c in columns))[0]
 utils.print_list(network_list, columns)

@ utils . arg ( '--fields' , default = None , metavar = '<fields>' , help = _ ( 'Comma-separated list of fields to display. Use the show command to see which fields are available.' ) ) @ deprecated_network def do_network_list ( cs , args ) : network_list = cs . networks . list ( ) columns = [ 'ID' , 'Label' , 'Cidr' ] columns += _get_list_table_columns_and_formatters ( args . fields , network_list , exclude_fields = ( c . lower ( ) for c in columns ) ) [ 0 ] utils . print_list ( network_list , columns )
print a list of available networks .