Open Virtual Network
Open Virtual Network tricks& tips
CLI
- Logical configuration (Northdound DB)
ovn-nbctl
- Physical configuration (Southbound DB)
ovn-sbctl
- Packet tracing
ovn-trace
Northbound configuration
Show configuration
$ ovn-nbctl show
switch configuration
$ ovn-nbctl show <switch>
router configuration
$ ovn-nbctl show <router>
Add a switch
$ ovn-nbctl ls-add <switch>
Delete a switch
$ ovn-nbctl ls-del <switch>
Add a port into a switch
$ ovn-nbctl lsp-add <switch> <port>
Delete a port into a switch
$ ovn-nbctl lsp-del <port>
Router Creation
$ ovn-nbctl lr-add <router>
Delete router
$ ovn-nbctl lr-del <router>
Create port on router
$ ovn-nbctl lrp-add <router> <port> <mac_addr> <net/mask>
Delete port on router
$ ovn-nbctl lrp-del <port>
Set IP address on switch
$ ovn-nbctl lsp-set-addresses <port> <mac_addr> <ip_addr>
Southbound configuration
Show configuration
$ ovn-sbctl show
Add chassis
$ ovn-sbctl chassis-add <server> <encap_type> <ip_addr>
Delete chassis
$ ovn-sbctl chassis-del <server>