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

Function DefaultController

mininet/node.py:1608–1613  ·  view source on GitHub ↗

Find a controller that is available and instantiate it

( name, controllers=DefaultControllers, **kwargs )

Source from the content-addressed store, hash-verified

1606 return None
1607
1608def DefaultController( name, controllers=DefaultControllers, **kwargs ):
1609 "Find a controller that is available and instantiate it"
1610 controller = findController( controllers )
1611 if not controller:
1612 raise Exception( 'Could not find a default OpenFlow controller' )
1613 return controller( name, **kwargs )
1614
1615def NullController( *_args, **_kwargs ):
1616 "Nonexistent controller - simply returns None"

Callers

nothing calls this directly

Calls 1

findControllerFunction · 0.85

Tested by

no test coverage detected