mnoptical.examples.roadm_with_amps

This script shows how to create Terminals by passing Transceiver objects to their constructor method (lines 64-67); it also shows how to create ROADMs by passing boost and preamp Amplifier objects to their constructor method (lines 72-74)

Simple linear topology: h1 - s1 - t1 – r1 – t2 - s2 - h2

Transmitting 1 channel from t1 to t2

Module Contents

Classes

SingleROADMTopo

h1 - s1 - t1 -- r1 -- t2 - s2 - h2

Functions

add_amp([node_name, type, gain_dB])

Create an Amplifier object to add to a ROADM node

test(net)

Run config script and simple test

Attributes

topo

mnoptical.examples.roadm_with_amps.add_amp(node_name=None, type=None, gain_dB=None)

Create an Amplifier object to add to a ROADM node :param node_name: string :param type: string (‘boost’ or ‘preamp’ :param gain_dB: int or float

class mnoptical.examples.roadm_with_amps.SingleROADMTopo

Bases: mininet.topo.Topo

h1 - s1 - t1 – r1 – t2 - s2 - h2

build()

Build single ROADM topology

mnoptical.examples.roadm_with_amps.test(net)

Run config script and simple test

mnoptical.examples.roadm_with_amps.topo