mnoptical.rest
¶
rest.py: Simple REST-based SDN control plane for mininet-optical
Module Contents¶
Classes¶
Handler with quiet logging |
|
Simple REST server |
Functions¶
|
Return current network object |
|
Return list of nodes |
|
Return list of monitors |
|
Return information for monitor |
Return optical links |
|
|
Return list of links |
|
Return specifier dict(node1, port1, node2, port2) for link |
Return links between ROADMs (only) |
|
Return links from terminals to ROADMs (only) |
|
Return links to/from packet switches/routers |
|
|
Look up node from query |
|
Handle a node query |
|
Handle a node query |
|
Reset/clear a node's flow rules |
|
Configure (or install/remove) connection in optical node |
Configure (or install/remove) connection in optical node |
|
|
Return a node's ports |
|
Return an object's configuration and other information |
|
Set an object's configuration |
|
Return rules for node |
|
Return cleanme for node |
|
|
|
Demo support: tell Mininet to adjust the gain for am amplifier |
Demo support: tell Mininet to adjust the ripple function for am amplifier |
- mnoptical.rest.net()¶
Return current network object
- mnoptical.rest.nodes()¶
Return list of nodes
- mnoptical.rest.monitors()¶
Return list of monitors
- mnoptical.rest.monitor()¶
Return information for monitor
- mnoptical.rest.opticalLinks()¶
Return optical links
- mnoptical.rest.links()¶
Return list of links
- mnoptical.rest.linkspec(link)¶
Return specifier dict(node1, port1, node2, port2) for link
- mnoptical.rest.interRoadmLinks()¶
Return links between ROADMs (only)
- mnoptical.rest.terminalLinks()¶
Return links from terminals to ROADMs (only)
- mnoptical.rest.routerLinks()¶
Return links to/from packet switches/routers
- mnoptical.rest.lookUpNode(node)¶
Look up node from query
- mnoptical.rest.nodeHandler(handlerName)¶
Handle a node query
- mnoptical.rest.monitorHandler(handlerName)¶
Handle a node query
- mnoptical.rest.reset()¶
Reset/clear a node’s flow rules
- mnoptical.rest.connect()¶
Configure (or install/remove) connection in optical node
- mnoptical.rest.disconnect()¶
Configure (or install/remove) connection in optical node
- mnoptical.rest.ports()¶
Return a node’s ports
- mnoptical.rest.info()¶
Return an object’s configuration and other information
- mnoptical.rest.config()¶
Set an object’s configuration
- mnoptical.rest.rules()¶
Return rules for node
- mnoptical.rest.cleanme()¶
Return cleanme for node
- mnoptical.rest.turn_on()¶
- mnoptical.rest.setgain()¶
Demo support: tell Mininet to adjust the gain for am amplifier
- mnoptical.rest.set_ripple()¶
Demo support: tell Mininet to adjust the ripple function for am amplifier