pass code check
This commit is contained in:
+1
-1
@@ -38,7 +38,7 @@ if __name__ == '__main__':
|
|||||||
switch = net.switches[ 0 ]
|
switch = net.switches[ 0 ]
|
||||||
info( '*** Adding hardware interface', intfName, 'to switch',
|
info( '*** Adding hardware interface', intfName, 'to switch',
|
||||||
switch.name, '\n' )
|
switch.name, '\n' )
|
||||||
intf = Intf( intfName, node=switch )
|
_intf = Intf( intfName, node=switch )
|
||||||
|
|
||||||
info( '*** Note: you may need to reconfigure the interfaces for '
|
info( '*** Note: you may need to reconfigure the interfaces for '
|
||||||
'the Mininet hosts:\n', net.hosts, '\n' )
|
'the Mininet hosts:\n', net.hosts, '\n' )
|
||||||
|
|||||||
+1
-1
@@ -996,7 +996,7 @@ class Controller( Node ):
|
|||||||
def checkListening( self ):
|
def checkListening( self ):
|
||||||
"Make sure no controllers are running on our port"
|
"Make sure no controllers are running on our port"
|
||||||
# Verify that Telnet is installed first:
|
# Verify that Telnet is installed first:
|
||||||
out, err, returnCode = errRun( "which telnet" )
|
out, _err, returnCode = errRun( "which telnet" )
|
||||||
if 'telnet' not in out or returnCode != 0:
|
if 'telnet' not in out or returnCode != 0:
|
||||||
raise Exception( "Error running telnet to check for listening "
|
raise Exception( "Error running telnet to check for listening "
|
||||||
"controllers; please check that it is "
|
"controllers; please check that it is "
|
||||||
|
|||||||
Reference in New Issue
Block a user