¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 708°Ç
   
Self-Service(Neutron VXLAN, GRE, VLAN) ¿¡¼­ ÀνºÅϽº »ý¼º API
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2015-12-18 (±Ý) 11:39 Á¶È¸ : 2832
                                
restapi_test °èÁ¤À¸·Î ÀνºÅϽº »ý¼º
CLI> nova --debug boot --flavor IWINV.SINGLE --image CentOS_5.X_x86_64_25G --nic net-id=d390817d-1907-4ca5-b8e9-8114b858e84d test_vm

# curl -g -i -X POST http://controller:8774/v2/2a7aa38c4b35400195882bfbe6a0bb1a/servers -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}8987c4f71646018a83c3bac5d0c726efaccf9a95" -d '{"server": {"name": "test_vm1", "imageRef": "fa8212b2-9fdb-4ad4-9c61-ea2ff04e2366", "flavorRef": "e84fc1c2-4dac-4954-b7bc-c7308ff33ac8", "max_count": 1, "min_count": 1, "networks": [{"uuid": "d390817d-1907-4ca5-b8e9-8114b858e84d"}]}}'


Floating IP »ý¼º
CLI> neutron --debug floatingip-create public

#  curl -g -i -X POST http://controller:9696/v2.0/floatingips.json -H "User-Agent: python-neutronclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}6edbad31105002dd52e983f7d5f87cabc742f8d6" -d '{"floatingip": {"floating_network_id": "e2f0d382-3a9d-4ddd-aa8c-bb5c660d57df"}}'
DEBUG: keystoneclient.session RESP: [201] Date: Fri, 18 Dec 2015 02:46:21 GMT Connection: keep-alive Content-Type: application/json; charset=UTF-8 Content-Length: 294 X-Openstack-Request-Id: req-02006883-af7d-46cf-9bb0-a257eb1910cc 
RESP BODY: {"floatingip": {"floating_network_id": "e2f0d382-3a9d-4ddd-aa8c-bb5c660d57df", "router_id": null, "fixed_ip_address": null, "floating_ip_address": "XXX.XXX.202.39", "tenant_id": "2a7aa38c4b35400195882bfbe6a0bb1a", "status": "DOWN", "port_id": null, "id": "885d4171-edfe-4786-8e05-1ded6580855d"}}

==>> nova ¿¡¼­´Â os-floating-ips


ÀνºÅϽº¿¡ Floating IP ÇÒ´ç
CLI> nova --debug floating-ip-associate test_vm1 XXX.XXX.202.39

# curl -g -i -X POST http://controller:8774/v2/2a7aa38c4b35400195882bfbe6a0bb1a/servers/1507dd60-3610-4773-b746-f237aff90d0a/action -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}a08fe1985b41dcc9d2c738a94f76907a45f577ee" -d '{"addFloatingIp": {"address": "XXX.XXX.202.39"}}'


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

 



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