Find a controller that is available and instantiate it
( name, controllers=DefaultControllers, **kwargs )
| 1606 | return None |
| 1607 | |
| 1608 | def 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 | |
| 1615 | def NullController( *_args, **_kwargs ): |
| 1616 | "Nonexistent controller - simply returns None" |
nothing calls this directly
no test coverage detected