ubuntu 14 code check fixes so travis can pass (#1006)

This commit is contained in:
lantz
2021-01-09 21:15:27 -08:00
committed by GitHub
parent 53975940de
commit d8c30910cb
4 changed files with 4 additions and 8 deletions
+1 -3
View File
@@ -4,7 +4,7 @@
from mininet.log import setLogLevel, info from mininet.log import setLogLevel, info
from mininet.node import UserSwitch, OVSKernelSwitch, Host, Controller from mininet.node import UserSwitch, OVSKernelSwitch, Host
from mininet.topolib import TreeNet from mininet.topolib import TreeNet
@@ -18,8 +18,6 @@ class HostV4( Host ):
self.cmd( 'sysctl -w net.ipv6.conf.' + cfg ) self.cmd( 'sysctl -w net.ipv6.conf.' + cfg )
def treePing64(): def treePing64():
"Run ping test on 64-node tree networks." "Run ping test on 64-node tree networks."
+1 -1
View File
@@ -399,7 +399,7 @@ class CLI( Cmd ):
error( 'invalid command: ' error( 'invalid command: '
'switch <switch name> {start, stop}\n' ) 'switch <switch name> {start, stop}\n' )
def do_wait( self, line ): def do_wait( self, _line ):
"Wait until all switches have connected to a controller" "Wait until all switches have connected to a controller"
self.mn.waitConnected() self.mn.waitConnected()
-2
View File
@@ -136,8 +136,6 @@ class NAT( Node ):
# Instruct the kernel to perform forwarding # Instruct the kernel to perform forwarding
self.cmd( 'sysctl net.ipv4.ip_forward=1' ) self.cmd( 'sysctl net.ipv4.ip_forward=1' )
def terminate( self ): def terminate( self ):
"Stop NAT/forwarding between Mininet and external network" "Stop NAT/forwarding between Mininet and external network"
# Remote NAT rules # Remote NAT rules
+2 -2
View File
@@ -29,8 +29,8 @@ class testWalkthrough( unittest.TestCase ):
prompt = 'mininet>' prompt = 'mininet>'
@staticmethod
def setup( self ): def setup():
"Be paranoid and run cleanup() before each test" "Be paranoid and run cleanup() before each test"
cleanup() cleanup()