Skip to content

Instantly share code, notes, and snippets.

Created May 2, 2016 21:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/ed6310a093c70f3681fc02f13e07bd81 to your computer and use it in GitHub Desktop.
Save anonymous/ed6310a093c70f3681fc02f13e07bd81 to your computer and use it in GitHub Desktop.
vagrant@devstack-control:~/devstack$ ps ax | grep ov[sn]
...
21475 ? Ss 0:02 ovsdb-server --detach -vconsole:off --log-file=/opt/stack/logs/ovsdb-server-nb.log --remote=punix:/usr/local/var/run/openvswitch/ovnnb_db.sock --remote=ptcp:6641:0.0.0.0 --pidfile=/usr/local/var/run/openvswitch/ovnnb_db.pid --unixctl=ovnnb_db.ctl /opt/stack/data/ovs/ovnnb.db
21481 ? Ss 0:01 ovsdb-server --detach -vconsole:off --log-file=/opt/stack/logs/ovsdb-server-sb.log --remote=punix:/usr/local/var/run/openvswitch/ovnsb_db.sock --remote=ptcp:6642:0.0.0.0 --pidfile=/usr/local/var/run/openvswitch/ovnsb_db.pid --unixctl=ovnsb_db.ctl /opt/stack/data/ovs/ovnsb.db
21495 ? Ss 0:00 ovsdb-server --remote=punix:/usr/local/var/run/openvswitch/db.sock --remote=db:Open_vSwitch,Open_vSwitch,manager_options --pidfile --detach -vconsole:off --log-file=/opt/stack/logs/ovsdb-server.log conf.db
21534 ? Ssl 0:09 ovs-vswitchd --pidfile --detach -vconsole:off --log-file=/opt/stack/logs/ovs-vswitchd.log
vagrant@devstack-control:~/devstack$
vagrant@devstack-control:~/devstack$ grep "OVN_Northbound" /opt/stack/data/ovs/ovnnb.db
{"cksum":"2201582413 4513","name":"OVN_Northbound","version":"2.1.0","tables":{"Logical_Router":{"isRoot":true,"columns":{"ports":{"type":{"max":"unlimited","min":0,"key":{"type":"uuid","refTable":"Logical_Router_Port"}}},"name":{"type":"string"},"external_ids":{"type":{"max":"unlimited","min":0,"key":"string","value":"string"}},"enabled":{"type":{"min":0,"key":"boolean"}},"default_gw":{"type":{"min":0,"key":"string"}}}},"ACL":{"columns":{"match":{"type":"string"},"action":{"type":{"key":{"type":"string","enum":["set",["allow","allow-related","drop","reject"]]}}},"log":{"type":"boolean"},"priority":{"type":{"key":{"minInteger":0,"maxInteger":32767,"type":"integer"}}},"direction":{"type":{"key":{"type":"string","enum":["set",["from-lport","to-lport"]]}}},"external_ids":{"type":{"max":"unlimited","min":0,"key":"string","value":"string"}}}},"Logical_Switch":{"isRoot":true,"columns":{"ports":{"type":{"max":"unlimited","min":0,"key":{"type":"uuid","refTable":"Logical_Port"}}},"name":{"type":"string"},"external_ids":{"type":{"max":"unlimited","min":0,"key":"string","value":"string"}},"acls":{"type":{"max":"unlimited","min":0,"key":{"type":"uuid","refTable":"ACL"}}}}},"Logical_Port":{"indexes":[["name"]],"columns":{"up":{"type":{"min":0,"key":"boolean"}},"name":{"type":"string"},"external_ids":{"type":{"max":"unlimited","min":0,"key":"string","value":"string"}},"options":{"type":{"max":"unlimited","min":0,"key":"string","value":"string"}},"parent_name":{"type":{"min":0,"key":"string"}},"type":{"type":"string"},"enabled":{"type":{"min":0,"key":"boolean"}},"addresses":{"type":{"max":"unlimited","min":0,"key":"string"}},"port_security":{"type":{"max":"unlimited","min":0,"key":"string"}},"tag":{"type":{"min":0,"key":{"minInteger":1,"maxInteger":4095,"type":"integer"}}}}},"Logical_Router_Port":{"indexes":[["name"]],"columns":{"peer":{"type":{"min":0,"key":"string"}},"name":{"type":"string"},"network":{"type":"string"},"mac":{"type":"string"},"external_ids":{"type":{"max":"unlimited","min":0,"key":"string","value":"string"}},"enabled":{"type":{"min":0,"key":"boolean"}}}}}}
vagrant@devstack-control:~/devstack$
vagrant@devstack-control:~/devstack$
vagrant@devstack-control:~/devstack$ # found list of tables by pasting json above into http://www.jsoneditoronline.org/
vagrant@devstack-control:~/devstack$
vagrant@devstack-control:~/devstack$
vagrant@devstack-control:~/devstack$ sudo ovn-nbctl list Logical_Switch
_uuid : 6ce3c15c-95de-4923-8483-42569378394e
acls : []
external_ids : {"neutron:network_name"=private}
name : "neutron-a25db51c-afd8-4a1f-bfad-10058196a3f4"
ports : [0f5033a9-3670-4790-97c6-85bfd865313d]
vagrant@devstack-control:~/devstack$
vagrant@devstack-control:~/devstack$
vagrant@devstack-control:~/devstack$
vagrant@devstack-control:~/devstack$ sudo ovn-nbctl list Logical_Router
vagrant@devstack-control:~/devstack$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment