gregmark

OpenStack or Bust, Part 10: floating IP associate for vm-01

Mar 21st, 2013
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.93 KB | None | 0 0
  1. root@kcon-gen-01i:~# quantum floatingip-create --tenant-id $(stack_id -t project_one) ext_net
  2. Created a new floatingip:
  3. +---------------------+--------------------------------------+
  4. | Field               | Value                                |
  5. +---------------------+--------------------------------------+
  6. | fixed_ip_address    |                                      |
  7. | floating_ip_address | 10.0.166.2                          |
  8. | floating_network_id | ab844d2a-f9b2-4ec4-bd2d-8a34ea0538e0 |
  9. | id                  | f16c7805-4ad4-4939-bc39-1733556b2037 |
  10. | port_id             |                                      |
  11. | router_id           |                                      |
  12. | tenant_id           | c2cdb8d4d2484cf8bc8bf95dd759df12     |
  13. +---------------------+--------------------------------------+
  14.  
  15. ### Giving the ports names
  16. root@kcon-gen-01i:~# quantum port-update 69fce85b-2f75-4261-ac6c-3137ed1be2d3 --name=vm-01
  17. Updated port: 69fce85b-2f75-4261-ac6c-3137ed1be2d3
  18.  
  19. root@kcon-gen-01i:~# quantum port-update 272de14a-7571-4559-b223-7b2ef8015f6b --name=vm-01_ext
  20. Updated port: 272de14a-7571-4559-b223-7b2ef8015f6b
  21.  
  22. root@kcon-gen-01i:~# quantum port-update 181c5254-c93a-4266-9e6c-7269d76c0326 --name=dhcp_proj_one
  23. Updated port: 181c5254-c93a-4266-9e6c-7269d76c0326
  24.  
  25. root@kcon-gen-01i:~# quantum port-list
  26. +--------------------------------------+---------------+-------------------+------------------------------------------------------------------------------------+
  27. | id                                   | name          | mac_address       | fixed_ips                                                                          |
  28. +--------------------------------------+---------------+-------------------+------------------------------------------------------------------------------------+
  29. | 181c5254-c93a-4266-9e6c-7269d76c0326 | dhcp_proj_one | fa:16:3e:f5:fb:8b | {"subnet_id": "39b11457-a453-421d-8574-5231eaeb37b6", "ip_address": "50.50.1.3"}   |
  30. | 272de14a-7571-4559-b223-7b2ef8015f6b | vm-01_ext     | fa:16:3e:26:3b:d4 | {"subnet_id": "4ea5ce97-bbb7-450d-82d8-eb1577bdea7d", "ip_address": "10.21.166.2"} |
  31. | 507cd4ad-8974-411f-bbcf-fe9a4c1911e8 | port_proj_one | fa:16:3e:c7:13:aa | {"subnet_id": "39b11457-a453-421d-8574-5231eaeb37b6", "ip_address": "50.50.1.1"}   |
  32. | 69fce85b-2f75-4261-ac6c-3137ed1be2d3 | vm-01         | fa:16:3e:93:58:92 | {"subnet_id": "39b11457-a453-421d-8574-5231eaeb37b6", "ip_address": "50.50.1.2"}   |
  33. | e68e5139-077f-4526-9079-7e0d01e1e5f5 | port_ext_net  | fa:16:3e:7f:13:27 | {"subnet_id": "4ea5ce97-bbb7-450d-82d8-eb1577bdea7d", "ip_address": "10.21.166.1"} |
  34. +--------------------------------------+---------------+-------------------+------------------------------------------------------------------------------------+
  35.  
  36. root@kcon-gen-01i:~# quantum floatingip-associate f16c7805-4ad4-4939-bc39-1733556b2037 69fce85b-2f75-4261-ac6c-3137ed1be2d3
  37. Associated floatingip f16c7805-4ad4-4939-bc39-1733556b2037
Advertisement
Add Comment
Please, Sign In to add comment