[ovs-discuss] Fast failover and ovs

AY aymen.omg at gmail.com
Mon Jul 18 02:22:50 UTC 2016


I am trying to implement fast failover with OVS:
 my configuration :

> sh ovs-ofctl -O OpenFlow13 add-group s1
group_id=4,type=ff,bucket=watch_port:1,output:1,bucket=watch_port:2,output:2,bucket=watch_port:3,output:3

>sh ovs-ofctl -O OpenFlow13 add-flow s1 in_port=4,actions=group:4

Then i tried to bring the link down ( using :sudo ip link set dev s1-eth1
down)
while pinging to see if there is a switch over , but OVS still using the
same link .

I  tried to enable BFD *using :*

>sh ovs-vsctl set interface s1-eth1 bfd=enable=true bfd:min_rx=100
bfd:min_tx=100

 but still have the same problem

Any help will be very appreciated . over a week trying to solve this
proplem without succuss.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20160718/a9bb5bf7/attachment-0002.html>
-------------- next part --------------
from mininet.topo import Topo
class MininetTopo(Topo):
    def __init__(self,**opts):
        Topo.__init__(self, **opts)
        host1 = self.addHost('h1')
        host2 = self.addHost('h2')
        
        self.switch = {}
        for s in range(1,6):
            self.switch[s-1] = self.addSwitch('s%s' %(s))
        self.addLink(self.switch[0], self.switch[1])
        self.addLink(self.switch[0], self.switch[2])
        self.addLink(self.switch[0], self.switch[3])
        self.addLink(self.switch[4], self.switch[1])
        self.addLink(self.switch[4], self.switch[2])
        self.addLink(self.switch[4], self.switch[3])
            #Adding host
        self.addLink(self.switch[0], host1)
        self.addLink(self.switch[4], host2)
        
        
topos = {'group':(lambda:MininetTopo())}

___________________________________
sudo mn --custom group.py  --topo group


More information about the discuss mailing list