¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 715°Ç
   
neutron subnet-update
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2015-12-16 (¼ö) 16:20 Á¶È¸ : 2933
                                
Áõ»ó) 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"} |
+--------------------------------------+-----------------+------------------+------------------------------------------------------+

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.