neutron subnet-show c716c915-968d-40f8-ad86-5388c771fecc
neutron subnet-update —allocation-pool start=10.182.211.20,end=10.182.211.254 c716c915-968d-40f8-ad86-5388c771fecc Updated subnet: c716c915-968d-40f8-ad86-5388c771fecc
A6244EDB-F848-0786-E911-81559A70E331:~ # neutron net-show 4aaabf56-f34d-495b-8b5d-0e7f1fe0fb1b+---------------------------+--------------------------------------+| Field | Value |+---------------------------+--------------------------------------+| admin_state_up | True || availability_zone_hints | az0.dc0 || | az2.dc0 || | az3.dc0 || | az4.dc0 || | az5.dc0 || availability_zones | nova || created_at | 2020-05-28T01:24:50 || description | || id | 4aaabf56-f34d-495b-8b5d-0e7f1fe0fb1b || ipv4_address_scope | || ipv6_address_scope | || mtu | 1500 || name | provider_test_subnet_10_182_211_0 || port_security_enabled | True || project_id | 314fe0973e804ceaaa8ca7879fcc3857 || provider:network_type | vxlan || provider:physical_network | || provider:segmentation_id | 99660 || qos_policy_id | || router:external | False || shared | False || status | ACTIVE || subnets | c716c915-968d-40f8-ad86-5388c771fecc || tags | || tenant_id | 314fe0973e804ceaaa8ca7879fcc3857 || updated_at | 2020-05-28T01:24:50 |+---------------------------+--------------------------------------+A6244EDB-F848-0786-E911-81559A70E331:~ # neutron subnet-show c716c915-968d-40f8-ad86-5388c771fecc+-------------------+-----------------------------------------------------+| Field | Value |+-------------------+-----------------------------------------------------+| allocation_pools | {"start": "10.182.211.80", "end": "10.182.211.254"} || cidr | 10.182.211.0/24 || created_at | 2020-05-28T01:24:51 || description | || dns_nameservers | 10.182.211.82 || | 10.182.211.83 || enable_dhcp | True || enable_internet | True || gateway_ip | 10.182.211.1 || host_routes | || id | c716c915-968d-40f8-ad86-5388c771fecc || ip_version | 4 || ipv6_address_mode | || ipv6_ra_mode | || name | provider_test_subnet_10_182_211_0 || network_id | 4aaabf56-f34d-495b-8b5d-0e7f1fe0fb1b || project_id | 314fe0973e804ceaaa8ca7879fcc3857 || subnetpool_id | || tags | || tenant_id | 314fe0973e804ceaaa8ca7879fcc3857 || updated_at | 2020-08-13T06:56:50 |+-------------------+-----------------------------------------------------+A6244EDB-F848-0786-E911-81559A70E331:~ # neutron subnet-update -husage: neutron subnet-update [-h] [--request-format {json}] [--name NAME][--gateway GATEWAY_IP | --no-gateway][--allocation-pool start=IP_ADDR,end=IP_ADDR][--host-route destination=CIDR,nexthop=IP_ADDR][--dns-nameserver DNS_NAMESERVER][--disable-dhcp] [--enable-dhcp]SUBNETUpdate subnet's information.positional arguments:SUBNET ID or name of subnet to update.optional arguments:-h, --help show this help message and exit--request-format {json}DEPRECATED! Only JSON request format is supported.--name NAME Name of this subnet.--gateway GATEWAY_IP Gateway IP of this subnet.--no-gateway No distribution of gateway.--allocation-pool start=IP_ADDR,end=IP_ADDRAllocation pool IP addresses for this subnet (Thisoption can be repeated).--host-route destination=CIDR,nexthop=IP_ADDRAdditional route (This option can be repeated).--dns-nameserver DNS_NAMESERVERDNS name server for this subnet (This option can berepeated).--disable-dhcp Disable DHCP for this subnet.--enable-dhcp Enable DHCP for this subnet.A6244EDB-F848-0786-E911-81559A70E331:~ # neutron subnet-update --allocation-pool start=10.182.211.20,end=10.182.211.254 c716c915-968d-40f8-ad86-5388c771feccUpdated subnet: c716c915-968d-40f8-ad86-5388c771feccA6244EDB-F848-0786-E911-81559A70E331:~ # neutron subnet-show c716c915-968d-40f8-ad86-5388c771fecc+-------------------+-----------------------------------------------------+| Field | Value |+-------------------+-----------------------------------------------------+| allocation_pools | {"start": "10.182.211.20", "end": "10.182.211.254"} || cidr | 10.182.211.0/24 || created_at | 2020-05-28T01:24:51 || description | || dns_nameservers | 10.182.211.82 || | 10.182.211.83 || enable_dhcp | True || enable_internet | True || gateway_ip | 10.182.211.1 || host_routes | || id | c716c915-968d-40f8-ad86-5388c771fecc || ip_version | 4 || ipv6_address_mode | || ipv6_ra_mode | || name | provider_test_subnet_10_182_211_0 || network_id | 4aaabf56-f34d-495b-8b5d-0e7f1fe0fb1b || project_id | 314fe0973e804ceaaa8ca7879fcc3857 || subnetpool_id | || tags | || tenant_id | 314fe0973e804ceaaa8ca7879fcc3857 || updated_at | 2020-08-13T08:56:01 |+-------------------+-----------------------------------------------------+A6244EDB-F848-0786-E911-81559A70E331:~ #
