mnoptical.examples.config_lroadmring

config_lroadrming.py: simple LumentumRing control script

using ofcdemo.lumentum_NETCONF_API

Module Contents

Functions

allocChannels(N)

Return channel map (src,dst)->ch for N-node mesh

genConnection(module, inport, outport, channel[, loss])

Return a netconf connection configuration string

genConnections(i, N, chmap)

Return netconf connection list connecting

configRoadms(N, chmap)

Configure LumentumRing ROADMs as a full mesh (NETCONF)

configTerminals(N, chmap)

Connect each transceiver to a dedicated ethernet port (REST)

configSwitches(N)

Program OpenFlow switches with inbound and outbound rules

config(N)

Configure LumentumRing

dumpChmap(N, chmap)

Dump channel map

Attributes

N

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