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

Method __init__

mininet/node.py:1536–1547  ·  view source on GitHub ↗

Init. name: name to give controller. ryuArgs: modules to pass to Ryu (ryu.app.simple_switch) command: command to run Ryu ('ryu run')

( self, name, ryuArgs='ryu.app.simple_switch',
                  command='ryu run', **kwargs )

Source from the content-addressed store, hash-verified

1534class Ryu( Controller ):
1535 "Ryu OpenFlow Controller"
1536 def __init__( self, name, ryuArgs='ryu.app.simple_switch',
1537 command='ryu run', **kwargs ):
1538 """Init.
1539 name: name to give controller.
1540 ryuArgs: modules to pass to Ryu (ryu.app.simple_switch)
1541 command: command to run Ryu ('ryu run')"""
1542 if isinstance( ryuArgs, ( list, tuple ) ):
1543 ryuArgs = ' '.join( ryuArgs )
1544 cargs = kwargs.pop(
1545 'cargs', ryuArgs + ' --ofp-tcp-listen-port %s' )
1546 Controller.__init__( self, name, command=command,
1547 cargs=cargs, **kwargs )
1548
1549
1550class RemoteController( Controller ):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected