mnoptical.examples.simplelink
¶
simplelink.py: simple link between two terminals
This is very close to the simplest fully emulated packet-optical network that we can create.
To configure the optical network using the REST API, open another window and use the following commands at the bash prompt (replacing localhost with the IP address of this system as needed):
mn=localhost:8080; t1=$mn; t2=$mn
curl “$t1/connect?node=t1ðPort=1&wdmPort=2&channel=1” curl “$t2/connect?node=t2ðPort=1&wdmPort=2&channel=1” curl “$t1/turn_on?node=t1” curl “$t2/turn_on?node=t2”
Module Contents¶
Classes¶
Simple link topology: |
Functions¶
|
Run config script and simple test |
Attributes¶
- class mnoptical.examples.simplelink.SimpleLinkTopo¶
Bases:
mininet.topo.Topo
Simple link topology: h1 - t1 - (boost->) –25km– (<-boost) - t2 - h2
- build()¶
Build single link topology
- mnoptical.examples.simplelink.test(net)¶
Run config script and simple test
- mnoptical.examples.simplelink.topo¶