Switch Configuration - OpenFlow Configuration

It is possible to configure multiple virtual OpenFlow swithces on the Pronto Switch. For a more detailed explanation, look at the presentation at: Pronto_Virtualization.pdf

1 - The first step is to create a bridge for each virtual switch desired:

ovs-vsctl add-br br0 -- set bridge br0 datapath_type=pica8 protocols=OpenFlow10
ovs-vsctl add-br br1 -- set bridge br1 datapath_type=pica8 protocols=OpenFlow10
ovs-vsctl add-br br2 -- set bridge br2 datapath_type=pica8 protocols=OpenFlow10  

2 - The next step is to add to each bridge the ports that will be used:

ovs-vsctl add-port br0 ge-1/1/1 vlan_mode=trunk -- set Interface ge-1/1/1 type=pica8
ovs-vsctl add-port br0 ge-1/1/2 vlan_mode=trunk -- set Interface ge-1/1/2 type=pica8
ovs-vsctl add-port br0 ge-1/1/3 vlan_mode=trunk -- set Interface ge-1/1/3 type=pica8
ovs-vsctl add-port br0 ge-1/1/4 vlan_mode=trunk -- set Interface ge-1/1/4 type=pica8

ovs-vsctl add-port br1 ge-1/1/5 vlan_mode=trunk -- set Interface ge-1/1/5 type=pica8
ovs-vsctl add-port br1 ge-1/1/6 vlan_mode=trunk -- set Interface ge-1/1/6 type=pica8
ovs-vsctl add-port br1 ge-1/1/7 vlan_mode=trunk -- set Interface ge-1/1/7 type=pica8
ovs-vsctl add-port br1 ge-1/1/8 vlan_mode=trunk -- set Interface ge-1/1/8 type=pica8 

ovs-vsctl add-port br2 ge-1/1/9 vlan_mode=trunk -- set Interface ge-1/1/9 type=pica8
ovs-vsctl add-port br2 ge-1/1/10 vlan_mode=trunk -- set Interface ge-1/1/10 type=pica8
ovs-vsctl add-port br2 ge-1/1/11 vlan_mode=trunk -- set Interface ge-1/1/11 type=pica8
ovs-vsctl add-port br2 ge-1/1/12 vlan_mode=trunk -- set Interface ge-1/1/12 type=pica8 
It's possible to add as many ports as the operator wants to each bridge (virtual OpenFlow switch).

3 - Verify if the ports were correctly added to each bridge, for example:

ovs-ofctl show br0
... 

 

The command should show an output similar to this one: 

4 - Set the controller of the bridges to FlowVisor

ovs-vsctl set-controller br0 tcp:10.X.0.101:6633
ovs-vsctl set-controller br1 tcp:10.X.0.101:6633
ovs-vsctl set-controller br2 tcp:10.X.0.101:6633