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

Method start

examples/miniedit.py:124–133  ·  view source on GitHub ↗

Start and set management IP address

( self, controllers )

Source from the content-addressed store, hash-verified

122 self.switchIP = ip
123
124 def start( self, controllers ):
125 "Start and set management IP address"
126 # Call superclass constructor
127 UserSwitch.start( self, controllers )
128 # Set Switch IP address
129 if self.switchIP is not None:
130 if not self.inNamespace:
131 self.cmd( 'ifconfig', self, self.switchIP )
132 else:
133 self.cmd( 'ifconfig lo', self.switchIP )
134
135class LegacyRouter( Node ):
136 "Simple IP router"

Callers

nothing calls this directly

Calls 2

startMethod · 0.45
cmdMethod · 0.45

Tested by

no test coverage detected