This section explains how to use the qq network_mod_network command.

Description

Modify network configuration

Usage

qq network_mod_network [-h] --network-id NETWORK_ID [--name NAME] [--assigned-by {DHCP,STATIC}] [--netmask <netmask-or-subnet>]
    [--ip-ranges <address-or-range> [<address-or-range> ...]] [--floating-ip-ranges <address-or-range> [<address-or-range> ...]]
    [--clear-floating-ip-ranges] [--dns-servers <address-or-range> [<address-or-range> ...]] [--clear-dns-servers]
    [--dns-search-domains <search-domain> [<search-domain> ...]] [--clear-dns-search-domains] [--mtu MTU] [--vlan-id VLAN_ID]
    [--tenant-id TENANT_ID | --clear-tenant-id]

Flags

Flag Name Required Description
--network-id Yes The unique ID of the network on the interface
--name No Network name
--assigned-by No How to assign IP address, either DHCP or STATIC
--netmask No (if STATIC) IPv4 or IPv6 Netmask or Subnet CIDR eg. 255.255.255.0 or 10.1.1.0/24
--ip-ranges No (if STATIC) List of persistent IP ranges to replace the current ranges. Can be single addresses or ranges, comma separated. eg. 10.1.1.20-21 or 10.1.1.20,10.1.1.21
--floating-ip-ranges No (if STATIC) List of floating IP ranges to replace the current ranges. Can be single addresses or ranges, comma separated. eg. 10.1.1.20-21 or 10.1.1.20,10.1.1.21
--clear-floating-ip-ranges No (if STATIC) Clear the floating IP address ranges
--dns-servers No List of DNS Server IP addresses to replace the current ranges. Can be a single address or multiple comma separated addresses. eg. 10.1.1.10 or 10.1.1.10,10.1.1.15
--clear-dns-servers No Clear the DNS servers
--dns-search-domains No List of DNS Search Domains to replace the current domains. Can be a single domain or multiple comma separated domains. eg. my.domain.com or my.domain.com,your.domain.com
--clear-dns-search-domains No Clear the DNS search domains
--mtu No (if STATIC) The Maximum Transfer Unit (MTU) in bytes of a tagged STATIC network. The MTU of an untagged STATIC network needs to be specified through interface MTU.
--vlan-id No (if STATIC) User assigned VLAN tag for network configuration. 1-4094 are valid VLAN IDs and 0 is used for untagged networks.
--tenant-id No The tenant that the network is assigned to. If only one tenant exists, this will default to that tenant.
--clear-tenant-id No Clear the tenant from the network, making the network unassigned