Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
mysql> select * from ports;
+----------------------------------+--------------------------------------+------+--------------------------------------+-------------------+----------------+--------+--------------------------------------+--------------------------+
| tenant_id | id | name | network_id | mac_address | admin_state_up | status | device_id | device_owner |
+----------------------------------+--------------------------------------+------+--------------------------------------+-------------------+----------------+--------+--------------------------------------+--------------------------+
| | 2f2d9e91-037e-4cfd-8d3f-ecc7af6e0ed3 | | 94956749-42ff-4e7c-a429-3e8657c6c227 | fa:16:3e:d4:5f:60 | 1 | DOWN | 68721cd5-9d47-443c-929b-7db2d827f225 | network:router_gateway |
| 6538e4b4a4e14de1b93fdc68a1c383a2 | c582fbe8-fde3-48b2-bc94-2338890dd034 | | 2ca7c69e-2582-4aa0-bbef-3143c1e017cd | fa:16:3e:57:8c:6b | 1 | ACTIVE | 68721cd5-9d47-443c-929b-7db2d827f225 | network:router_interface |
+----------------------------------+--------------------------------------+------+--------------------------------------+-------------------+----------------+--------+--------------------------------------+--------------------------+
2 rows in set (0.00 sec)
mysql> select * from routers;
+----------------------------------+--------------------------------------+---------+--------+----------------+--------------------------------------+-------------+
| tenant_id | id | name | status | admin_state_up | gw_port_id | enable_snat |
+----------------------------------+--------------------------------------+---------+--------+----------------+--------------------------------------+-------------+
| 6538e4b4a4e14de1b93fdc68a1c383a2 | 68721cd5-9d47-443c-929b-7db2d827f225 | router1 | ACTIVE | 1 | 2f2d9e91-037e-4cfd-8d3f-ecc7af6e0ed3 | 1 |
+----------------------------------+--------------------------------------+---------+--------+----------------+--------------------------------------+-------------+
vagrant@precise64:~$ ip netns list
qrouter-68721cd5-9d47-443c-929b-7db2d827f225
vagrant@precise64:~$ sudo ip netns exec qrouter-68721cd5-9d47-443c-929b-7db2d827f225 ip link
12: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
13: qr-c582fbe8-fd: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
link/ether fa:16:3e:57:8c:6b brd ff:ff:ff:ff:ff:ff
14: qg-2f2d9e91-03: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
link/ether fa:16:3e:d4:5f:60 brd ff:ff:ff:ff:ff:ff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment