From 2cb17590c26f96bd26ba991a41b2b925f3add252 Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Thu, 25 Jun 2015 15:42:22 -0700 Subject: [PATCH] Remove blank line I'm not sure whether we really need to turn off ip_forward before flushing iptables, but it might possibly be useful to avoid certain unexpected behavior. --- mininet/nodelib.py | 1 - 1 file changed, 1 deletion(-) diff --git a/mininet/nodelib.py b/mininet/nodelib.py index 2c445a3..682b608 100644 --- a/mininet/nodelib.py +++ b/mininet/nodelib.py @@ -94,7 +94,6 @@ class NAT( Node ): if self.flush: self.cmd( 'sysctl net.ipv4.ip_forward=0' ) - self.cmd( 'iptables -F' ) self.cmd( 'iptables -t nat -F' ) # Create default entries for unmatched traffic