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

    1. A6244EDB-F848-0786-E911-81559A70E331:~ # neutron net-show 4aaabf56-f34d-495b-8b5d-0e7f1fe0fb1b
    2. +---------------------------+--------------------------------------+
    3. | Field | Value |
    4. +---------------------------+--------------------------------------+
    5. | admin_state_up | True |
    6. | availability_zone_hints | az0.dc0 |
    7. | | az2.dc0 |
    8. | | az3.dc0 |
    9. | | az4.dc0 |
    10. | | az5.dc0 |
    11. | availability_zones | nova |
    12. | created_at | 2020-05-28T01:24:50 |
    13. | description | |
    14. | id | 4aaabf56-f34d-495b-8b5d-0e7f1fe0fb1b |
    15. | ipv4_address_scope | |
    16. | ipv6_address_scope | |
    17. | mtu | 1500 |
    18. | name | provider_test_subnet_10_182_211_0 |
    19. | port_security_enabled | True |
    20. | project_id | 314fe0973e804ceaaa8ca7879fcc3857 |
    21. | provider:network_type | vxlan |
    22. | provider:physical_network | |
    23. | provider:segmentation_id | 99660 |
    24. | qos_policy_id | |
    25. | router:external | False |
    26. | shared | False |
    27. | status | ACTIVE |
    28. | subnets | c716c915-968d-40f8-ad86-5388c771fecc |
    29. | tags | |
    30. | tenant_id | 314fe0973e804ceaaa8ca7879fcc3857 |
    31. | updated_at | 2020-05-28T01:24:50 |
    32. +---------------------------+--------------------------------------+
    33. A6244EDB-F848-0786-E911-81559A70E331:~ # neutron subnet-show c716c915-968d-40f8-ad86-5388c771fecc
    34. +-------------------+-----------------------------------------------------+
    35. | Field | Value |
    36. +-------------------+-----------------------------------------------------+
    37. | allocation_pools | {"start": "10.182.211.80", "end": "10.182.211.254"} |
    38. | cidr | 10.182.211.0/24 |
    39. | created_at | 2020-05-28T01:24:51 |
    40. | description | |
    41. | dns_nameservers | 10.182.211.82 |
    42. | | 10.182.211.83 |
    43. | enable_dhcp | True |
    44. | enable_internet | True |
    45. | gateway_ip | 10.182.211.1 |
    46. | host_routes | |
    47. | id | c716c915-968d-40f8-ad86-5388c771fecc |
    48. | ip_version | 4 |
    49. | ipv6_address_mode | |
    50. | ipv6_ra_mode | |
    51. | name | provider_test_subnet_10_182_211_0 |
    52. | network_id | 4aaabf56-f34d-495b-8b5d-0e7f1fe0fb1b |
    53. | project_id | 314fe0973e804ceaaa8ca7879fcc3857 |
    54. | subnetpool_id | |
    55. | tags | |
    56. | tenant_id | 314fe0973e804ceaaa8ca7879fcc3857 |
    57. | updated_at | 2020-08-13T06:56:50 |
    58. +-------------------+-----------------------------------------------------+
    59. A6244EDB-F848-0786-E911-81559A70E331:~ # neutron subnet-update -h
    60. usage: neutron subnet-update [-h] [--request-format {json}] [--name NAME]
    61. [--gateway GATEWAY_IP | --no-gateway]
    62. [--allocation-pool start=IP_ADDR,end=IP_ADDR]
    63. [--host-route destination=CIDR,nexthop=IP_ADDR]
    64. [--dns-nameserver DNS_NAMESERVER]
    65. [--disable-dhcp] [--enable-dhcp]
    66. SUBNET
    67. Update subnet's information.
    68. positional arguments:
    69. SUBNET ID or name of subnet to update.
    70. optional arguments:
    71. -h, --help show this help message and exit
    72. --request-format {json}
    73. DEPRECATED! Only JSON request format is supported.
    74. --name NAME Name of this subnet.
    75. --gateway GATEWAY_IP Gateway IP of this subnet.
    76. --no-gateway No distribution of gateway.
    77. --allocation-pool start=IP_ADDR,end=IP_ADDR
    78. Allocation pool IP addresses for this subnet (This
    79. option can be repeated).
    80. --host-route destination=CIDR,nexthop=IP_ADDR
    81. Additional route (This option can be repeated).
    82. --dns-nameserver DNS_NAMESERVER
    83. DNS name server for this subnet (This option can be
    84. repeated).
    85. --disable-dhcp Disable DHCP for this subnet.
    86. --enable-dhcp Enable DHCP for this subnet.
    87. A6244EDB-F848-0786-E911-81559A70E331:~ # neutron subnet-update --allocation-pool start=10.182.211.20,end=10.182.211.254 c716c915-968d-40f8-ad86-5388c771fecc
    88. Updated subnet: c716c915-968d-40f8-ad86-5388c771fecc
    89. A6244EDB-F848-0786-E911-81559A70E331:~ # neutron subnet-show c716c915-968d-40f8-ad86-5388c771fecc
    90. +-------------------+-----------------------------------------------------+
    91. | Field | Value |
    92. +-------------------+-----------------------------------------------------+
    93. | allocation_pools | {"start": "10.182.211.20", "end": "10.182.211.254"} |
    94. | cidr | 10.182.211.0/24 |
    95. | created_at | 2020-05-28T01:24:51 |
    96. | description | |
    97. | dns_nameservers | 10.182.211.82 |
    98. | | 10.182.211.83 |
    99. | enable_dhcp | True |
    100. | enable_internet | True |
    101. | gateway_ip | 10.182.211.1 |
    102. | host_routes | |
    103. | id | c716c915-968d-40f8-ad86-5388c771fecc |
    104. | ip_version | 4 |
    105. | ipv6_address_mode | |
    106. | ipv6_ra_mode | |
    107. | name | provider_test_subnet_10_182_211_0 |
    108. | network_id | 4aaabf56-f34d-495b-8b5d-0e7f1fe0fb1b |
    109. | project_id | 314fe0973e804ceaaa8ca7879fcc3857 |
    110. | subnetpool_id | |
    111. | tags | |
    112. | tenant_id | 314fe0973e804ceaaa8ca7879fcc3857 |
    113. | updated_at | 2020-08-13T08:56:01 |
    114. +-------------------+-----------------------------------------------------+
    115. A6244EDB-F848-0786-E911-81559A70E331:~ #