mnoptical.examples.config_lroadmring
¶
- config_lroadrming.py: simple LumentumRing control script
using ofcdemo.lumentum_NETCONF_API
Module Contents¶
Functions¶
Return channel map (src,dst)->ch for N-node mesh |
|
|
Return a netconf connection configuration string |
|
Return netconf connection list connecting |
|
Configure LumentumRing ROADMs as a full mesh (NETCONF) |
|
Connect each transceiver to a dedicated ethernet port (REST) |
Program OpenFlow switches with inbound and outbound rules |
|
|
Configure LumentumRing |
|
Dump channel map |
Attributes¶
- mnoptical.examples.config_lroadmring.allocChannels(N)¶
Return channel map (src,dst)->ch for N-node mesh
- mnoptical.examples.config_lroadmring.genConnection(module, inport, outport, channel, loss=0.0)¶
Return a netconf connection configuration string
- mnoptical.examples.config_lroadmring.genConnections(i, N, chmap)¶
Return netconf connection list connecting roadm i to the other roadms in 1..N, each via a dedicated channel. This enables full mesh connectivity without channel collisions.
- mnoptical.examples.config_lroadmring.configRoadms(N, chmap)¶
Configure LumentumRing ROADMs as a full mesh (NETCONF)
- mnoptical.examples.config_lroadmring.configTerminals(N, chmap)¶
Connect each transceiver to a dedicated ethernet port (REST)
- mnoptical.examples.config_lroadmring.configSwitches(N)¶
Program OpenFlow switches with inbound and outbound rules
- mnoptical.examples.config_lroadmring.config(N)¶
Configure LumentumRing
- mnoptical.examples.config_lroadmring.dumpChmap(N, chmap)¶
Dump channel map
- mnoptical.examples.config_lroadmring.N = 4¶