From e0af160213e730ff6f0b9b0d33fed3f22304ce1e Mon Sep 17 00:00:00 2001
From: Brian O'Connor <bocon13@gmail.com>
Date: Wed, 23 Oct 2013 13:48:50 -0700
Subject: [PATCH] small fixes for NAT

---
 bin/mn             | 2 +-
 examples/natnet.py | 4 ++--
 mininet/node.py    | 3 ++-
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/bin/mn b/bin/mn
index 474a3c20..5bab076a 100755
--- a/bin/mn
+++ b/bin/mn
@@ -255,7 +255,7 @@ class MininetRunner( object ):
 
         if self.options.nat:
             nat = mn.addNAT()
-            mn.configHosts()
+            nat.configDefault()
 
         if self.options.pre:
             CLI( mn, script=self.options.pre )
diff --git a/examples/natnet.py b/examples/natnet.py
index cb0c44c6..7f51fd59 100755
--- a/examples/natnet.py
+++ b/examples/natnet.py
@@ -26,7 +26,7 @@
 from mininet.util import irange
 
 class InternetTopo(Topo):
-    "Single switch connected to n hosts."
+    "TODO: Single switch connected to n hosts."
     def __init__(self, n=2, h=1, **opts):
         Topo.__init__(self, **opts)
 
@@ -57,7 +57,7 @@ def __init__(self, n=2, h=1, **opts):
             self.addLink(host, switch)
 
 def run():
-    "Create network and run simple performance test"
+    "TODO: Create network and run simple performance test"
     topo = InternetTopo()
     net = Mininet(topo=topo)
     net.start()
diff --git a/mininet/node.py b/mininet/node.py
index edc6de81..dba383d4 100644
--- a/mininet/node.py
+++ b/mininet/node.py
@@ -36,6 +36,8 @@
     arbitrary OpenFlow-compatible controller, and which is not
     created or managed by mininet.
 
+TODO: NAT
+
 Future enhancements:
 
 - Possibly make Node, Switch and Controller more abstract so that
@@ -1309,4 +1311,3 @@ def terminate( self ):
         self.cmd( 'sysctl net.ipv4.ip_forward=0' )
 
         super( NAT, self ).terminate()
-
-- 
GitLab