use OVSBridge as switch
This commit is contained in:
parent
8471b169d2
commit
ff926a339b
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user