mnoptical.examples.lroadmring
¶
lroadmring.py: ring test topology for LROADM
Module Contents¶
Classes¶
Simple ring topology using Lumentum-link ROADM model |
|
Unidrectional ring topology using Lumentum-like ROADM model |
Functions¶
|
Run config script and simple test |
Attributes¶
- mnoptical.examples.lroadmring.username = 'admin'¶
- mnoptical.examples.lroadmring.password = 'admin'¶
- mnoptical.examples.lroadmring.sslkeyfile = 'testcerts/fakeserver.key'¶
- class mnoptical.examples.lroadmring.LumentumBase(*args, **kwargs)¶
Bases:
mininet.topo.Topo
Simple ring topology using Lumentum-link ROADM model nodes: hN<->sN<->tN<->rN (host/switch/terminal/roadm) Note WDM links are unidirectional and ethernet links are bidirectional.
- ethbase = 0¶
- hostport = 200¶
- txbase = 100¶
- rxbase = 200¶
- listenPortBase = 6653¶
- wdmLink(src, dst, port1, port2, spans=(1 * m,), **params)¶
Add a (default unidirectional) WDM link
- static nodeNames(i)¶
Return host, switch, terminal, roadm names for node i
- addNetworkNodes(i, power=0 * dBm)¶
Add a host-switch-terminal-ROADM nodes, named hN, sN, tN, rN
- addNodeLinks(i)¶
Add internal links for network node i
- class mnoptical.examples.lroadmring.LumentumRing(*args, **kwargs)¶
Bases:
LumentumBase
Unidrectional ring topology using Lumentum-like ROADM model nodes: hN<->sN<->tN<->rN… (host/switch/terminal/roadm) Note WDM links are unidirectional and ethernet links are bidirectional.
- build(N=4, txcount=16)¶
Build lumentum ring
- mnoptical.examples.lroadmring.test(net)¶
Run config script and simple test
- mnoptical.examples.lroadmring.topo¶