Áõ»ó) floating-ip pool ÀÌ ²ËÂ÷¼...¹ß»ý
subnet-update ¹®À» ÅëÇØ....ÀÛ¾÷ÇÏ·Á°í ÇßÀ¸³ª.... CIDR ¹üÀ§°¡ ÃÊ°úµÇ¼.. ¿¡·¯ ¹ß»ý
:: subnet-list update
root@controller:~# neutron subnet-list
+--------------------------------------+-----------------+------------------+------------------------------------------------------+
| id | name | cidr | allocation_pools |
+--------------------------------------+-----------------+------------------+------------------------------------------------------+
| ca8b550f-3779-40f3-b787-0060f0d10a6b | restapi_private | 172.16.1.0/24 | {"start": "172.16.1.2", "end": "172.16.1.254"} |
| 1b3bc28d-0a48-4217-84a2-532735102e4c | public | XXX.XXX.202.0/27 | {"start": "XXX.XXX.202.21", "end": "XXX.XXX.202.30"} |
| 5d0013ee-6bd8-4631-ba9b-b62623877d3d | private | 192.168.202.0/24 | {"start": "192.168.202.2", "end": "192.168.202.254"} |
| 7ececf26-ec76-47b9-a052-2d5cbb349199 | mojily_private | 172.16.1.0/24 | {"start": "172.16.1.2", "end": "172.16.1.254"} |
+--------------------------------------+-----------------+------------------+------------------------------------------------------+
root@controller:~# neutron subnet-update 1b3bc28d-0a48-4217-84a2-532735102e4c --allocation-pool start=XXX.XXX.202.21,end=XXX.XXX.202.31
The allocation pool XXX.XXX.202.21-XXX.XXX.202.31 spans beyond the subnet cidr XXX.XXX.202.0/27.
mysql> select * from subnets where id='1b3bc28d-0a48-4217-84a2-532735102e4c';
+----------------------------------+--------------------------------------+--------+--------------------------------------+------------+-----------------+--------------+-------------+--------------+-------------------+---------------+
| tenant_id | id | name | network_id | ip_version | cidr | gateway_ip | enable_dhcp | ipv6_ra_mode | ipv6_address_mode | subnetpool_id |
+----------------------------------+--------------------------------------+--------+--------------------------------------+------------+-----------------+--------------+-------------+--------------+-------------------+---------------+
| ce3d7739b40347d9acc443552b5361e4 | 1b3bc28d-0a48-4217-84a2-532735102e4c | public | e2f0d382-3a9d-4ddd-aa8c-bb5c660d57df | 4 | XXX.XXX.202.0/27 | XXX.XXX.202.1 | 1 | NULL | NULL | NULL |
+----------------------------------+--------------------------------------+--------+--------------------------------------+------------+-----------------+--------------+-------------+--------------+-------------------+---------------+
1 row in set (0.01 sec)
mysql> update subnets set cidr='XXX.XXX.202.0/24' where id='1b3bc28d-0a48-4217-84a2-532735102e4c';
Query OK, 1 row affected (0.05 sec)
Rows matched: 1 Changed: 1 Warnings: 0
root@controller:~# neutron subnet-update 1b3bc28d-0a48-4217-84a2-532735102e4c --allocation-pool start=XXX.XXX.202.21,end=XXX.XXX.202.40
Updated subnet: 1b3bc28d-0a48-4217-84a2-532735102e4c
root@controller:~# neutron subnet-list
+--------------------------------------+-----------------+------------------+------------------------------------------------------+
| id | name | cidr | allocation_pools |
+--------------------------------------+-----------------+------------------+------------------------------------------------------+
| ca8b550f-3779-40f3-b787-0060f0d10a6b | restapi_private | 172.16.1.0/24 | {"start": "172.16.1.2", "end": "172.16.1.254"} |
| 1b3bc28d-0a48-4217-84a2-532735102e4c | public | XXX.XXX.202.0/24 | {"start": "XXX.XXX.202.21", "end": "XXX.XXX.202.40"} |
| 7ececf26-ec76-47b9-a052-2d5cbb349199 | mojily_private | 172.16.1.0/24 | {"start": "172.16.1.2", "end": "172.16.1.254"} |
| 5d0013ee-6bd8-4631-ba9b-b62623877d3d | private | 192.168.202.0/24 | {"start": "192.168.202.2", "end": "192.168.202.254"} |
+--------------------------------------+-----------------+------------------+------------------------------------------------------+