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&ethPort=1&wdmPort=2&channel=1” curl “$t2/connect?node=t2&ethPort=1&wdmPort=2&channel=1” curl “$t1/turn_on?node=t1” curl “$t2/turn_on?node=t2”

Module Contents¶

Classes¶

SimpleLinkTopo

Simple link topology:

Functions¶

test(net)

Run config script and simple test

Attributes¶

topo

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¶

Mininet-Optical

Navigation

  • Welcome to Mininet-Optical
  • Installation and Walkthrough
  • Architecture Overview
  • API Overview
  • Tutorial
  • Visualization
  • API Reference
    • mnoptical

Related Topics

  • Documentation overview
    • API Reference
      • mnoptical
        • mnoptical.examples
          • Previous: mnoptical.examples.sigcommtutorial
          • Next: mnoptical.examples.singlelink

Quick search

©2022, Mininet-Optical Project. | Powered by Sphinx 7.0.1 & Alabaster 0.7.13 | Page source