MCPcopy Create free account
hub / github.com/mininet/mininet / sendCmd

Method sendCmd

mininet/node.py:958–967  ·  view source on GitHub ↗

Send command to Node. cmd: string

( self, *cmd, **kwargs )

Source from the content-addressed store, hash-verified

956 return Node.defaultIntf( self )
957
958 def sendCmd( self, *cmd, **kwargs ):
959 """Send command to Node.
960 cmd: string"""
961 kwargs.setdefault( 'printPid', False )
962 if not self.execed:
963 return Node.sendCmd( self, *cmd, **kwargs )
964 else:
965 error( '*** Error: %s has execed and cannot accept commands' %
966 self.name )
967 return None
968
969 def connected( self ):
970 "Is the switch connected to a controller? (override this method)"

Callers

nothing calls this directly

Calls 1

sendCmdMethod · 0.45

Tested by

no test coverage detected