use OVSBridge as switch

This commit is contained in:
Quentin De Coninck 2020-06-22 17:02:46 +02:00
parent 8471b169d2
commit ff926a339b

View File

@ -1,6 +1,7 @@
from mininet.topo import Topo from mininet.topo import Topo
from mininet.net import Mininet from mininet.net import Mininet
from mininet.link import TCLink from mininet.link import TCLink
from mininet.node import OVSBridge
from mininet.cli import CLI from mininet.cli import CLI
from subprocess import Popen, PIPE from subprocess import Popen, PIPE
@ -20,7 +21,7 @@ class MpMininetBuilder(Topo):
return stdout return stdout
def startNetwork(self): def startNetwork(self):
self.net = Mininet(topo=self,link=TCLink) self.net = Mininet(topo=self,link=TCLink,switch=OVSBridge)
self.net.start() self.net.start()
def getCLI(self): def getCLI(self):