Fix the openflow version to 1.3
- The default openflow version of ovs 2.8+ is 1.4
- Add the tips of quagga user
Change-Id: I6e7bd4989df3b63f978f915dfba44938f878bc8a
diff --git a/trellis/trellis_dualhome.py b/trellis/trellis_dualhome.py
index 534a26d..4d2b744 100755
--- a/trellis/trellis_dualhome.py
+++ b/trellis/trellis_dualhome.py
@@ -6,7 +6,7 @@
from mininet.net import Mininet
from mininet.cli import CLI
from mininet.log import setLogLevel
-from mininet.node import RemoteController, OVSBridge, Host
+from mininet.node import RemoteController, OVSBridge, Host, OVSSwitch
from mininet.link import TCLink
from mininet.nodelib import NAT
from ipaddress import ip_network
@@ -14,6 +14,7 @@
from routinglib import RoutedHost, RoutedHost6
from trellislib import DhcpClient, Dhcp6Client, DhcpRelay, DhcpServer, Dhcp6Server
from trellislib import DualHomedDhcpClient
+from functools import partial
class Trellis( Topo ):
"Trellis basic topology"
@@ -177,7 +178,8 @@
setLogLevel('debug')
topo = Trellis()
- net = Mininet(topo=topo, controller=None)
+ switch = partial(OVSSwitch, protocols='OpenFlow13')
+ net = Mininet(topo=topo, controller=None, switch=switch)
#net.addController(RemoteController('c0', ip='192.168.56.11'))
#net.addController(RemoteController('c1', ip='192.168.56.12'))
#net.addController(RemoteController('c2', ip='192.168.56.13'))