'List all created networks.'

@validate_network_plugin
def list(self):

    _fmt = '%-5s DCTB %-18s DCTB %-15s DCTB %-15s DCTB %-15s DCTB %-15s DCTB %-15s DCTB %-15s DCTB %-15s'
    print((_fmt % (_('id'), _('IPv4'), _('IPv6'), _('start    address'), _('DNS1'), _('DNS2'), _('VlanID'), _('project'), _('uuid'))))
    try:
        networks = db.network_get_all(context.get_admin_context())
    except exception.NoNetworksFound:
        print(_('No    networks    found'))
    else:
        for network in networks:
            print((_fmt % (network.id, network.cidr, network.cidr_v6, network.dhcp_start, network.dns1, network.dns2, network.vlan, network.project_id, network.uuid)))
