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

Method setup

mininet/node.py:1354–1364  ·  view source on GitHub ↗

Make sure IVS is installed

( cls )

Source from the content-addressed store, hash-verified

1352
1353 @classmethod
1354 def setup( cls ):
1355 "Make sure IVS is installed"
1356 pathCheck( 'ivs-ctl', 'ivs',
1357 moduleName="Indigo Virtual Switch (projectfloodlight.org)" )
1358 out, err, exitcode = errRun( 'ivs-ctl show' )
1359 if exitcode:
1360 error( out + err +
1361 'ivs-ctl exited with code %d\n' % exitcode +
1362 '*** The openvswitch kernel module might '
1363 'not be loaded. Try modprobe openvswitch.\n' )
1364 exit( 1 )
1365
1366 @classmethod
1367 def batchShutdown( cls, switches ):

Callers

nothing calls this directly

Calls 2

pathCheckFunction · 0.90
errRunFunction · 0.90

Tested by

no test coverage detected