Ejemplo n.º 1
0
Archivo: base.py Proyecto: krman/thesis
def launch(objective=None, preinstall="{}"):
    discovery.launch()
    spanning_tree.launch(no_flood=True, hold_down=True)
    statistics.launch()
    topology.launch()
    multicommodity.launch(objective=objective, preinstall=preinstall)

    core.registerNew(Controller)
Ejemplo n.º 2
0
def launch(home):
    readPolicy(home)
    # Send full packets to controller
    core.openflow.miss_send_len = 0xffff
    discovery.launch(explicit_drop='False')
    webcore.launch()
    webservice.launch()
    core.registerNew(FW)
    core.WebServer.set_handler("/FW/", FWRequestHandler)
Ejemplo n.º 3
0
def start_spanning_tree():
    global yet_to_do
    if yet_to_do:
        print "Searching for forwarding loops with spanning tree..."
        #pox.openflow.discovery
        discov.launch()
        #pox.openflow.spanning_tree --no-flood --hold-down
        spanning_tree.launch()
        yet_to_do = False
Ejemplo n.º 4
0
def launch ():
  from pox.openflow.discovery import launch
  launch()
  def start_launch ():
    core.openflow.addListenerByName("ConnectionUp", _handle_ConnectionUp)
    core.openflow.addListenerByName("PacketIn", handle_pkt)
    core.openflow.addListenerByName("SwitchDescReceived", handle_switch_desc)
    core.openflow.addListenerByName("PortStatsReceived", handle_PortStatsReceived)
    print "Latency monitor"
    log.debug("Latency monitor running")
  core.call_when_ready(start_launch, "openflow_discovery") 
Ejemplo n.º 5
0
def launch ():
  from pox.openflow.discovery import launch
  launch()
  def start_launch ():
    core.registerNew(l2_multi)
    core.openflow.addListenerByName("SwitchDescReceived", handle_switch_desc)
    core.openflow.addListenerByName("QueueStatsReceived", handle_QueueStatsReceived)
    print "Proto-x"
    log.debug("Latency monitor running")
    GetTopologyParams()

  core.call_when_ready(start_launch, "openflow_discovery")
Ejemplo n.º 6
0
def launch ():
  from pox.openflow.discovery import launch
  launch()
  def start_launch ():
    core.registerNew(l2_multi)
    core.openflow.addListenerByName("SwitchDescReceived", handle_switch_desc)
    core.openflow.addListenerByName("QueueStatsReceived", handle_QueueStatsReceived)
    print "Latency monitor"
    log.debug("Latency monitor running")
    GetTopologyParams()

  core.call_when_ready(start_launch, "openflow_discovery")
Ejemplo n.º 7
0
def launch():
    from pox.openflow.discovery import launch
    launch()

    core.openflow.addListenerByName("ConnectionUp", _handle_ConnectionUp)
    core.openflow_discovery.addListenerByName("LinkEvent", _handle_linkevent)
    core.openflow.addListenerByName("FeaturesReceived", _handle_features)
    core.openflow.addListenerByName("PortStatsReceived",_handle_portstats)
    core.openflow.addListenerByName("FlowStatsReceived",_handle_flowstats)
    core.openflow.addListenerByName("AggregateFlowStatsReceived", _handle_aggregate)

    Timer(10, _on_timer, recurring=True)
Ejemplo n.º 8
0
def launch():
    from pox.openflow.discovery import launch
    launch()

    from pox.openflow.spanning_tree import launch
    launch()

    core.openflow.addListenerByName("ConnectionUp", _handle_ConnectionUp)
    core.openflow.addListenerByName("PacketIn", _handle_PacketIn)
    core.openflow_discovery.addListenerByName("LinkEvent", link_event)
    core.openflow.addListenerByName("AggregateFlowStatsReceived", _handle_aggregate)
    Timer(time, _on_timer, recurring=True)
def launch():
    from pox.openflow.discovery import launch
    launch()

    from pox.openflow.spanning_tree import launch
    launch()

    core.openflow.addListenerByName("ConnectionUp", _handle_ConnectionUp)
    core.openflow.addListenerByName("PacketIn", _handle_PacketIn)
    core.openflow_discovery.addListenerByName("LinkEvent", link_event)
    core.openflow.addListenerByName("AggregateFlowStatsReceived",
                                    _handle_aggregate)
    Timer(time, _on_timer, recurring=True)
Ejemplo n.º 10
0
def launch():
    from pox.openflow.discovery import launch
    launch()

    def start_launch():
        core.registerNew(l2_multi)
        core.openflow.addListenerByName("SwitchDescReceived",
                                        handle_switch_desc)
        core.openflow.addListenerByName("PortStatsReceived",
                                        _handle_portstats_received)
        print "Qos Based Optimal Routing using OpenFlow"
        GetTopologyParams()

    core.call_when_ready(start_launch, "openflow_discovery")
Ejemplo n.º 11
0
def launch():
    from pox.openflow.discovery import launch
    launch()

    def start_launch():
        core.openflow.addListenerByName("ConnectionUp", _handle_ConnectionUp)
        core.openflow.addListenerByName("PacketIn", handle_pkt)
        core.openflow.addListenerByName("SwitchDescReceived",
                                        handle_switch_desc)
        core.openflow.addListenerByName("PortStatsReceived",
                                        handle_PortStatsReceived)
        print "Latency monitor"
        log.debug("Latency monitor running")

    core.call_when_ready(start_launch, "openflow_discovery")
def launch():
    core.registerNew(PolicyController)
    discovery.launch()
Ejemplo n.º 13
0
def launch(time='1'):

    from pox.openflow.discovery import launch
    launch()

    from pox.host_tracker import launch
    launch()

    from pox.messenger import launch
    launch()

    from pox.messenger.tcp_transport import launch
    launch()

    from upper_hpc import launch
    launch()

    from traffic import launch
    launch(time=time)

    from l2_hpc import launch
    launch()

    from pox.samples.pretty_log import launch
    launch()

    from pox.log.level import launch
    launch(WARNING=True)
Ejemplo n.º 14
0
def launch(filename='results'):
    discovery.launch()
    spanning_tree.launch(no_flood=True, hold_down=True)
    topology.launch()

    core.registerNew(Controller, filename=filename)