While using Mininet release 2.3.1b4
Consider a file custom.py containing the following code :
from mininet.link import Link
class CustomLink(Link):
pass
links = { 'custom_link' : CustomLink }
Running the following command :
sudo mn --custom custom.py --link custom_link
The output is :
*** No default OpenFlow controller found for default switch!
*** Falling back to OVS Bridge
--------------------------------------------------------------------------------
Caught exception. Cleaning up...
Exception: error: custom_link is unknown - please specify one of dict_keys(['default', 'tc', 'tcu', 'ovs'])
--------------------------------------------------------------------------------
...
I think the issue arise from a missing comma between at the end of the line 202 bellow :
|
if name in ( 'topos', 'switches', 'hosts', 'controllers', 'links' |
|
'testnames', 'tests' ): |
While using Mininet release 2.3.1b4
Consider a file
custom.pycontaining the following code :Running the following command :
The output is :
I think the issue arise from a missing comma between at the end of the line 202 bellow :
mininet/bin/mn
Lines 202 to 203 in 6eb8973