Open vSwitch Cheat Sheet
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md

README.md

OVS-Cheat-Sheet

Open vSwitch Cheat Sheet

An overview of Openvswitch implementation

+---------+ +-----------+                                                              
|ovs-ofctl| |sFlow Trend|                                                                         
+----^----+ +-----^-----+                                                                         
     |            |                                                                      Remote   
+-----------------------------------------------------------------------------------------------+   
     |            |                                                                               
     |      sFlow |                                                                               
     |            |  +---------+   +----------+             +---------+   +------------+          
     |            |  |ovs-dpctl|   |ovs-appctl|             |ovs-vsctl|   |ovsdb-client|          
     |            |  +----+----+   +------^---+             +-----+---+   +-------^----+          
     |            |       |     Command   |                       | Config        | DB operation  
     |            |  +----v---------------v--+ Unix socket   +----v---------------v-+             
     |            +--+                       +--------------->                      | 
     |OpenFlow       |    ovsdb-vswitchd     |               |     ovsdb-server     | +----------+
     +---------------+                       <---------------+                      | |ovsdb-tool|
                     +-----^------------+----+ Apply changes +------------^---------+ +----+-----+
                           |            |                                 |                |      
                           |            |                                 |                |      
                           |            |                           +-----v-----+          |      
            upcall(netlink)|            |netlink                    |   ovsdb   <----------+      
                           |            |                           +-----------+                 
+-----------------------------------------------------------------------------------------------+   
                           |            |                                           Kernel space      
                     +-----+------------v------+                                                  
                     |Openvswitch kernel module|                                                  
                     +-------------------------+                                                  

ovs-vsctl

ovs-vsctl –V
ovs-vsctl show
ovs-vsctl list-br
ovs-vsctl list-ports <bridge>
ovs-vsctl add-br <bridge>
ovs-vsctl add-port <bridge> <interface>
ovs-vsctl set-controller <bridge> tcp:<IP>:<port> tcp:<IP>:<port>
ovs-vsctl get-controller <bridge>
ovs-vsctl del-controller <bridge>
ovs-vsctl set-fail-mode <bridge> standalone
ovs-vsctl set-fail-mode <bridge> secure
ovs-vsctl get-fail-mode <bridge>

ovs-ofctl

ovs-ofctl dump-flows <bridge>
ovs-ofctl del-flows <bridge> 

ovs-dpctl

ovs−appctl