mnoptical.examples.singleroadm
¶
singleroadm.py:
Simple optical network with three terminals connected to a single ROADM in a “Y” topology. H1 can talk to either H2 or H3, depending on how the ROADM is configured.
Module Contents¶
Classes¶
h1 - s1 - t1 -- r1 -- t2 - s2 - h2 |
Functions¶
|
Plot network graph to outfile |
|
Run config script and simple test |
Attributes¶
- class mnoptical.examples.singleroadm.SingleROADMTopo¶
Bases:
mininet.topo.Topo
- h1 - s1 - t1 – r1 – t2 - s2 - h2
t3 - s3 - h3
Note that t1–r1 and r2–t2 are 50km spans: (boost->,amp2<-) –25km– amp1 –25km– (amp2->,boost<-)
- build()¶
Build single ROADM topology
- mnoptical.examples.singleroadm.plotNet(net, outfile='singleroadm.png', directed=False, layout='circo', colorMap=None, linksPerPair=5)¶
Plot network graph to outfile linksPerPair: max # of links between a pair of nodes to plot, or
None for no limit (default: 5)
- mnoptical.examples.singleroadm.test(net)¶
Run config script and simple test
- mnoptical.examples.singleroadm.topo¶