Skip to content
Snippets Groups Projects
Commit e0af1602 authored by Brian O'Connor's avatar Brian O'Connor
Browse files

small fixes for NAT

parent ffeb16eb
No related branches found
No related tags found
No related merge requests found
...@@ -255,7 +255,7 @@ class MininetRunner( object ): ...@@ -255,7 +255,7 @@ class MininetRunner( object ):
if self.options.nat: if self.options.nat:
nat = mn.addNAT() nat = mn.addNAT()
mn.configHosts() nat.configDefault()
if self.options.pre: if self.options.pre:
CLI( mn, script=self.options.pre ) CLI( mn, script=self.options.pre )
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
from mininet.util import irange from mininet.util import irange
class InternetTopo(Topo): class InternetTopo(Topo):
"Single switch connected to n hosts." "TODO: Single switch connected to n hosts."
def __init__(self, n=2, h=1, **opts): def __init__(self, n=2, h=1, **opts):
Topo.__init__(self, **opts) Topo.__init__(self, **opts)
...@@ -57,7 +57,7 @@ def __init__(self, n=2, h=1, **opts): ...@@ -57,7 +57,7 @@ def __init__(self, n=2, h=1, **opts):
self.addLink(host, switch) self.addLink(host, switch)
def run(): def run():
"Create network and run simple performance test" "TODO: Create network and run simple performance test"
topo = InternetTopo() topo = InternetTopo()
net = Mininet(topo=topo) net = Mininet(topo=topo)
net.start() net.start()
......
...@@ -36,6 +36,8 @@ ...@@ -36,6 +36,8 @@
arbitrary OpenFlow-compatible controller, and which is not arbitrary OpenFlow-compatible controller, and which is not
created or managed by mininet. created or managed by mininet.
TODO: NAT
Future enhancements: Future enhancements:
- Possibly make Node, Switch and Controller more abstract so that - Possibly make Node, Switch and Controller more abstract so that
...@@ -1309,4 +1311,3 @@ def terminate( self ): ...@@ -1309,4 +1311,3 @@ def terminate( self ):
self.cmd( 'sysctl net.ipv4.ip_forward=0' ) self.cmd( 'sysctl net.ipv4.ip_forward=0' )
super( NAT, self ).terminate() super( NAT, self ).terminate()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment