mnoptical.ofcdemo.hwtopo

hwtopo.py: hardware-like topology for OFC 2021 demo

Implements LumentumLinear, a topology intended to mimic the hardware testbed topology for the OFC 2021 demo.

Module Contents

Classes

Lumentum

Add default netconf username and password

MUX

A MUX is just the mux part of a roadm

LumentumLinear

Demo-like topology of lumentum-like ROADMs:

Functions

configComb(net[, chbase])

Statically configure Terminal + mux into 'comb source'

Attributes

netconfPortBase

topo

mnoptical.ofcdemo.hwtopo.netconfPortBase = 1830
class mnoptical.ofcdemo.hwtopo.Lumentum(name, *args, netconfPort=None, **kwargs)

Bases: mnoptical.ofcdemo.lroadm.LROADM

Add default netconf username and password

username
password
class mnoptical.ofcdemo.hwtopo.MUX(name, **kwargs)

Bases: mnoptical.dataplane.ROADM

A MUX is just the mux part of a roadm

class mnoptical.ofcdemo.hwtopo.LumentumLinear

Bases: mininet.topo.Topo

Demo-like topology of lumentum-like ROADMs:

L1 === L2-L3 === L4-L5 ==== L6

Also multiplexes transceivers into single add/drop ports to mirror comb source in COSMOS testbed.

addport(i)
dropport(i)

Add a (default unidirectional) WDM link

hostname(i, adjust=False)

Optionally return alternate hostname for host i

build(nodecount=4, power=0 * dBm, txcount=10)

Build demo-like topology

mnoptical.ofcdemo.hwtopo.configComb(net, chbase=1)

Statically configure Terminal + mux into ‘comb source’ to model testbed hardware

mnoptical.ofcdemo.hwtopo.topo