Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
vagrant@vagrant-ubuntu-trusty-64:~/devstack$ openstack network list
+--------------------------------------+---------+--------------------------------------+
| ID | Name | Subnets |
+--------------------------------------+---------+--------------------------------------+
| 4fde2c69-918f-4859-9264-81cab0cf7446 | private | 3eef7a49-fca1-416e-82bc-97d75b0f8010 |
| d3324a72-d0b9-4033-8f05-b5adfe791108 | public | 8b10aec7-2867-46fe-b049-44d8ea55525a |
+--------------------------------------+---------+--------------------------------------+
vagrant@vagrant-ubuntu-trusty-64:~/devstack$ neutron router-list
+--------------------------------------+---------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-------+
| id | name | external_gateway_info | distributed | ha |
+--------------------------------------+---------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-------+
| 3d05be0a-f524-4572-a505-e14943bb8111 | router1 | {"network_id": "d3324a72-d0b9-4033-8f05-b5adfe791108", "enable_snat": true, "external_fixed_ips": [{"subnet_id": "8b10aec7-2867-46fe-b049-44d8ea55525a", "ip_address": "172.24.4.2"}]} | False | False |
+--------------------------------------+---------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-------+
vagrant@vagrant-ubuntu-trusty-64:~/devstack$ neutron router-show 3d05be0a-f524-4572-a505-e14943bb8111
+-----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+-----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| admin_state_up | True |
| distributed | False |
| external_gateway_info | {"network_id": "d3324a72-d0b9-4033-8f05-b5adfe791108", "enable_snat": true, "external_fixed_ips": [{"subnet_id": "8b10aec7-2867-46fe-b049-44d8ea55525a", "ip_address": "172.24.4.2"}]} |
| ha | False |
| id | 3d05be0a-f524-4572-a505-e14943bb8111 |
| name | router1 |
| routes | |
| status | ACTIVE |
| tenant_id | 89f78b29c315473baff1d608aee64337 |
+-----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
vagrant@vagrant-ubuntu-trusty-64:~/devstack$ ip netns
qrouter-3d05be0a-f524-4572-a505-e14943bb8111
qdhcp-4fde2c69-918f-4859-9264-81cab0cf7446
vagrant@vagrant-ubuntu-trusty-64:~/devstack$ sudo ip netns exec qrouter-3d05be0a-f524-4572-a505-e14943bb8111 ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
19: qr-ff3a8516-9e: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default
link/ether fa:16:3e:15:39:ca brd ff:ff:ff:ff:ff:ff
inet 10.0.0.1/24 brd 10.0.0.255 scope global qr-ff3a8516-9e
valid_lft forever preferred_lft forever
inet6 fe80::f816:3eff:fe15:39ca/64 scope link
valid_lft forever preferred_lft forever
20: qg-06de8ae1-bb: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default
link/ether fa:16:3e:53:27:93 brd ff:ff:ff:ff:ff:ff
inet 172.24.4.2/24 brd 172.24.4.255 scope global qg-06de8ae1-bb
valid_lft forever preferred_lft forever
inet 172.24.4.3/32 brd 172.24.4.3 scope global qg-06de8ae1-bb
valid_lft forever preferred_lft forever
inet6 fe80::f816:3eff:fe53:2793/64 scope link
valid_lft forever preferred_lft forever
vagrant@vagrant-ubuntu-trusty-64:~/devstack$ sudo ip netns exec qdhcp-4fde2c69-918f-4859-9264-81cab0cf7446 ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
18: tap5e59cde4-2c: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default
link/ether fa:16:3e:86:09:ac brd ff:ff:ff:ff:ff:ff
inet 10.0.0.2/24 brd 10.0.0.255 scope global tap5e59cde4-2c
valid_lft forever preferred_lft forever
inet6 fe80::f816:3eff:fe86:9ac/64 scope link
valid_lft forever preferred_lft forever
vagrant@vagrant-ubuntu-trusty-64:~/devstack$ neutron port-list
+--------------------------------------+------+-------------------+-----------------------------------------------------------------------------------+
| id | name | mac_address | fixed_ips |
+--------------------------------------+------+-------------------+-----------------------------------------------------------------------------------+
| 06de8ae1-bb4f-4aff-a049-33cc6b507e4e | | fa:16:3e:53:27:93 | {"subnet_id": "8b10aec7-2867-46fe-b049-44d8ea55525a", "ip_address": "172.24.4.2"} |
| 1b55cbd4-0925-442b-866d-288b238bf77c | | fa:16:3e:ef:bf:57 | {"subnet_id": "8b10aec7-2867-46fe-b049-44d8ea55525a", "ip_address": "172.24.4.3"} |
| 5e59cde4-2c55-40b6-a4b9-92cdf02a9815 | | fa:16:3e:86:09:ac | {"subnet_id": "3eef7a49-fca1-416e-82bc-97d75b0f8010", "ip_address": "10.0.0.2"} |
| db040208-7c6e-4ed5-a88b-5e2a7b3f53aa | | fa:16:3e:62:9d:0f | {"subnet_id": "3eef7a49-fca1-416e-82bc-97d75b0f8010", "ip_address": "10.0.0.3"} |
| ff3a8516-9e79-4de8-af21-c6d40cf45cb0 | | fa:16:3e:15:39:ca | {"subnet_id": "3eef7a49-fca1-416e-82bc-97d75b0f8010", "ip_address": "10.0.0.1"} |
+--------------------------------------+------+-------------------+-----------------------------------------------------------------------------------+
vagrant@vagrant-ubuntu-trusty-64:~/devstack$ neutron port-show 06de8ae1-bb4f-4aff-a049-33cc6b507e4e
+-----------------------+-----------------------------------------------------------------------------------+
| Field | Value |
+-----------------------+-----------------------------------------------------------------------------------+
| admin_state_up | True |
| allowed_address_pairs | |
| binding:host_id | vagrant-ubuntu-trusty-64.localdomain |
| binding:profile | {} |
| binding:vif_details | {"port_filter": true, "ovs_hybrid_plug": true} |
| binding:vif_type | ovs |
| binding:vnic_type | normal |
| device_id | 3d05be0a-f524-4572-a505-e14943bb8111 |
| device_owner | network:router_gateway |
| extra_dhcp_opts | |
| fixed_ips | {"subnet_id": "8b10aec7-2867-46fe-b049-44d8ea55525a", "ip_address": "172.24.4.2"} |
| id | 06de8ae1-bb4f-4aff-a049-33cc6b507e4e |
| mac_address | fa:16:3e:53:27:93 |
| name | |
| network_id | d3324a72-d0b9-4033-8f05-b5adfe791108 |
| security_groups | |
| status | ACTIVE |
| tenant_id | |
+-----------------------+-----------------------------------------------------------------------------------+
vagrant@vagrant-ubuntu-trusty-64:~/devstack$ neutron port-show 1b55cbd4-0925-442b-866d-288b238bf77c
+-----------------------+-----------------------------------------------------------------------------------+
| Field | Value |
+-----------------------+-----------------------------------------------------------------------------------+
| admin_state_up | True |
| allowed_address_pairs | |
| binding:host_id | |
| binding:profile | {} |
| binding:vif_details | {} |
| binding:vif_type | unbound |
| binding:vnic_type | normal |
| device_id | e1823d8e-07f4-481e-a969-b754912f10bb |
| device_owner | network:floatingip |
| extra_dhcp_opts | |
| fixed_ips | {"subnet_id": "8b10aec7-2867-46fe-b049-44d8ea55525a", "ip_address": "172.24.4.3"} |
| id | 1b55cbd4-0925-442b-866d-288b238bf77c |
| mac_address | fa:16:3e:ef:bf:57 |
| name | |
| network_id | d3324a72-d0b9-4033-8f05-b5adfe791108 |
| security_groups | |
| status | N/A |
| tenant_id | |
+-----------------------+-----------------------------------------------------------------------------------+
vagrant@vagrant-ubuntu-trusty-64:~/devstack$ neutron port-show 5e59cde4-2c55-40b6-a4b9-92cdf02a9815
+-----------------------+---------------------------------------------------------------------------------+
| Field | Value |
+-----------------------+---------------------------------------------------------------------------------+
| admin_state_up | True |
| allowed_address_pairs | |
| binding:host_id | vagrant-ubuntu-trusty-64.localdomain |
| binding:profile | {} |
| binding:vif_details | {"port_filter": true, "ovs_hybrid_plug": true} |
| binding:vif_type | ovs |
| binding:vnic_type | normal |
| device_id | dhcpd439385c-2745-50dd-91dd-8a252bf35915-4fde2c69-918f-4859-9264-81cab0cf7446 |
| device_owner | network:dhcp |
| extra_dhcp_opts | |
| fixed_ips | {"subnet_id": "3eef7a49-fca1-416e-82bc-97d75b0f8010", "ip_address": "10.0.0.2"} |
| id | 5e59cde4-2c55-40b6-a4b9-92cdf02a9815 |
| mac_address | fa:16:3e:86:09:ac |
| name | |
| network_id | 4fde2c69-918f-4859-9264-81cab0cf7446 |
| security_groups | |
| status | DOWN |
| tenant_id | 89f78b29c315473baff1d608aee64337 |
+-----------------------+---------------------------------------------------------------------------------+
vagrant@vagrant-ubuntu-trusty-64:~/devstack$ neutron port-show db040208-7c6e-4ed5-a88b-5e2a7b3f53aa
+-----------------------+---------------------------------------------------------------------------------+
| Field | Value |
+-----------------------+---------------------------------------------------------------------------------+
| admin_state_up | True |
| allowed_address_pairs | |
| binding:host_id | vagrant-ubuntu-trusty-64.localdomain |
| binding:profile | {} |
| binding:vif_details | {"port_filter": true, "ovs_hybrid_plug": true} |
| binding:vif_type | ovs |
| binding:vnic_type | normal |
| device_id | 8012ad54-e204-475e-a481-55694fe5489f |
| device_owner | compute:None |
| extra_dhcp_opts | |
| fixed_ips | {"subnet_id": "3eef7a49-fca1-416e-82bc-97d75b0f8010", "ip_address": "10.0.0.3"} |
| id | db040208-7c6e-4ed5-a88b-5e2a7b3f53aa |
| mac_address | fa:16:3e:62:9d:0f |
| name | |
| network_id | 4fde2c69-918f-4859-9264-81cab0cf7446 |
| security_groups | 26ff95c8-8dbc-4a48-b43f-74500248e391 |
| status | ACTIVE |
| tenant_id | 89f78b29c315473baff1d608aee64337 |
+-----------------------+---------------------------------------------------------------------------------+
vagrant@vagrant-ubuntu-trusty-64:~/devstack$ neutron port-show ff3a8516-9e79-4de8-af21-c6d40cf45cb0
+-----------------------+---------------------------------------------------------------------------------+
| Field | Value |
+-----------------------+---------------------------------------------------------------------------------+
| admin_state_up | True |
| allowed_address_pairs | |
| binding:host_id | vagrant-ubuntu-trusty-64.localdomain |
| binding:profile | {} |
| binding:vif_details | {"port_filter": true, "ovs_hybrid_plug": true} |
| binding:vif_type | ovs |
| binding:vnic_type | normal |
| device_id | 3d05be0a-f524-4572-a505-e14943bb8111 |
| device_owner | network:router_interface |
| extra_dhcp_opts | |
| fixed_ips | {"subnet_id": "3eef7a49-fca1-416e-82bc-97d75b0f8010", "ip_address": "10.0.0.1"} |
| id | ff3a8516-9e79-4de8-af21-c6d40cf45cb0 |
| mac_address | fa:16:3e:15:39:ca |
| name | |
| network_id | 4fde2c69-918f-4859-9264-81cab0cf7446 |
| security_groups | |
| status | DOWN |
| tenant_id | 89f78b29c315473baff1d608aee64337 |
+-----------------------+---------------------------------------------------------------------------------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment