Hi Raphael,
I tested your suggestion but I got the same problem, links
are not retuned to controller, check tests made with rest_topology :
oftutorial@openflowvm:~$ sudo ./ufscar-topo.py
[sudo] password for oftutorial:
*** Creating (reference) controller
Unable to contact the remote controller at 127.0.0.1:6634
*** Creating switches
*** Creating hosts
*** Creating links
*** Starting network
*** Configuring hosts
h1 h2 h3 h4 h5
*** Running CLI
*** Starting CLI:
mininet> net
h1 h1-eth0:s2-eth1
h2 h2-eth0:s2-eth2
h3 h3-eth0:s4-eth1
h4 h4-eth0:s4-eth2
h5 h5-eth0:s5-eth2
s1 lo: s1-eth1:s2-eth3 s1-eth2:s4-eth3
s2 lo: s2-eth1:h1-eth0 s2-eth2:h2-eth0 s2-eth3:s1-eth1 s2-eth4:s3-eth1
s3 lo: s3-eth1:s2-eth4 s3-eth2:s4-eth4
s4 lo: s4-eth1:h3-eth0 s4-eth2:h4-eth0 s4-eth3:s1-eth2 s4-eth4:s3-eth2
s4-eth5:s5-eth1
s5 lo: s5-eth1:s4-eth5 s5-eth2:h5-eth0
c2
c1
mininet>
===========================
oftutorial@openflowvm:~$ ryu-manager --verbose --observe-links
ryu.topology.switches ryu.app.rest_topology
loading app ryu.topology.switches
loading app ryu.app.rest_topology
loading app ryu.controller.ofp_handler
creating context wsgi
instantiating app ryu.app.rest_topology
instantiating app ryu.topology.switches
instantiating app ryu.controller.ofp_handler
BRICK switches
CONSUMES EventLinkRequest
CONSUMES EventOFPPacketIn
CONSUMES EventSwitchRequest
CONSUMES EventOFPStateChange
CONSUMES EventOFPMultipartReply
CONSUMES EventOFPPortStatus
BRICK ofp_event
PROVIDES EventOFPPacketIn TO {'switches': set(['main'])}
PROVIDES EventOFPStateChange TO {'switches': set(['main', 'dead'])}
PROVIDES EventOFPMultipartReply TO {'switches': set(['main'])}
PROVIDES EventOFPPortStatus TO {'switches': set(['main'])}
CONSUMES EventOFPSwitchFeatures
CONSUMES EventOFPEchoRequest
CONSUMES EventOFPPortDescStatsReply
CONSUMES EventOFPHello
CONSUMES EventOFPErrorMsg
BRICK TopologyAPI
(24712) wsgi starting up on http://0.0.0.0:8080/
connected socket:<eventlet.greenio.GreenSocket object at 0x225bd90>
address:('127.0.0.1', 39498)
hello ev <ryu.controller.ofp_event.EventOFPHello object at 0x226c5d0>
move onto config mode
connected socket:<eventlet.greenio.GreenSocket object at 0x225bf50>
address:('127.0.0.1', 39499)
hello ev <ryu.controller.ofp_event.EventOFPHello object at 0x226c950>
move onto config mode
connected socket:<eventlet.greenio.GreenSocket object at 0x226c050>
address:('127.0.0.1', 39500)
hello ev <ryu.controller.ofp_event.EventOFPHello object at 0x226ccd0>
move onto config mode
connected socket:<eventlet.greenio.GreenSocket object at 0x226c110>
address:('127.0.0.1', 39501)
hello ev <ryu.controller.ofp_event.EventOFPHello object at 0x2270090>
move onto config mode
connected socket:<eventlet.greenio.GreenSocket object at 0x226c1d0>
address:('127.0.0.1', 39502)
hello ev <ryu.controller.ofp_event.EventOFPHello object at 0x2270410>
move onto config mode
switch features ev version: 0x4 msg_type 0x6 xid 0x5c492b19
OFPSwitchFeatures(auxiliary_id=0,capabilities=79,datapath_id=1,n_buffers=256,n_tables=64)
switch features ev version: 0x4 msg_type 0x6 xid 0xc1a4415a
OFPSwitchFeatures(auxiliary_id=0,capabilities=79,datapath_id=2,n_buffers=256,n_tables=64)
switch features ev version: 0x4 msg_type 0x6 xid 0x1f530e18
OFPSwitchFeatures(auxiliary_id=0,capabilities=79,datapath_id=3,n_buffers=256,n_tables=64)
switch features ev version: 0x4 msg_type 0x6 xid 0xba0f86bc
OFPSwitchFeatures(auxiliary_id=0,capabilities=79,datapath_id=5,n_buffers=256,n_tables=64)
switch features ev version: 0x4 msg_type 0x6 xid 0x28765078
OFPSwitchFeatures(auxiliary_id=0,capabilities=79,datapath_id=4,n_buffers=256,n_tables=64)
move onto main mode
EVENT ofp_event->switches EventOFPStateChange
move onto main mode
EVENT ofp_event->switches EventOFPStateChange
move onto main mode
EVENT ofp_event->switches EventOFPStateChange
move onto main mode
EVENT ofp_event->switches EventOFPStateChange
move onto main mode
EVENT ofp_event->switches EventOFPStateChange
<ryu.controller.controller.Datapath object at 0x226c190>
register Switch<dpid=4, Port<dpid=4, port_no=1, LIVE> Port<dpid=4, port_no=2,
LIVE> Port<dpid=4, port_no=3, LIVE> Port<dpid=4, port_no=4, LIVE> Port<dpid=4,
port_no=5, LIVE> >
<ryu.controller.controller.Datapath object at 0x225bf10>
register Switch<dpid=2, Port<dpid=2, port_no=1, LIVE> Port<dpid=2, port_no=2,
LIVE> Port<dpid=2, port_no=3, LIVE> Port<dpid=2, port_no=4, LIVE> >
<ryu.controller.controller.Datapath object at 0x226c0d0>
register Switch<dpid=5, Port<dpid=5, port_no=1, LIVE> Port<dpid=5, port_no=2,
LIVE> >
<ryu.controller.controller.Datapath object at 0x225b9d0>
register Switch<dpid=1, Port<dpid=1, port_no=1, LIVE> Port<dpid=1, port_no=2,
LIVE> >
<ryu.controller.controller.Datapath object at 0x225bfd0>
register Switch<dpid=3, Port<dpid=3, port_no=1, LIVE> Port<dpid=3, port_no=2,
LIVE> >
EVENT TopologyAPI->switches EventLinkRequest
127.0.0.1 - - [22/Oct/2013 02:28:12] "GET /v1.0/topology/links HTTP/1.1" 200
109 0.010628
EVENT TopologyAPI->switches EventSwitchRequest
127.0.0.1 - - [22/Oct/2013 02:28:17] "GET /v1.0/topology/switches HTTP/1.1" 200
1875 0.007100
===========================
oftutorial@openflowvm:~$ curl http://127.0.0.1:8080/v1.0/topology/links
[]
oftutorial@openflowvm:~curl http://127.0.0.1:8080/v1.0/topology/switches
[{"ports": [{"hw_addr": "8a:42:4c:6a:53:c4", "name": "s1-eth1", "port_no":
"00000001", "dpid": "0000000000000001"}, {"hw_addr": "4a:76:82:8e:c3:a5",
"name": "s1-eth2", "port_no": "00000002", "dpid": "0000000000000001"}], "dpid":
"0000000000000001"}, {"ports": [{"hw_addr": "fa:60:b3:94:ac:d6", "name":
"s2-eth1", "port_no": "00000001", "dpid": "0000000000000002"}, {"hw_addr":
"9a:43:72:f9:be:f7", "name": "s2-eth2", "port_no": "00000002", "dpid":
"0000000000000002"}, {"hw_addr": "ca:b4:99:eb:67:f9", "name": "s2-eth3",
"port_no": "00000003", "dpid": "0000000000000002"}, {"hw_addr":
"56:20:aa:b4:62:74", "name": "s2-eth4", "port_no": "00000004", "dpid":
"0000000000000002"}], "dpid": "0000000000000002"}, {"ports": [{"hw_addr":
"7e:60:fd:fd:b7:60", "name": "s3-eth1", "port_no": "00000001", "dpid":
"0000000000000003"}, {"hw_addr": "8a:c6:20:42:18:c7", "name": "s3-eth2",
"port_no": "00000002", "dpid": "0000000000000003"}], "dpid":
"0000000000000003"}, {"ports": [{"hw_addr": "9e:ca:16:da:ed:d0", "name":
"s4-eth1", "port_no": "00000001", "dpid": "0000000000000004"}, {"hw_addr":
"1e:4e:28:1c:06:31", "name": "s4-eth2", "port_no": "00000002", "dpid":
"0000000000000004"}, {"hw_addr": "36:62:80:f2:3e:38", "name": "s4-eth3",
"port_no": "00000003", "dpid": "0000000000000004"}, {"hw_addr":
"f2:38:2b:41:15:ce", "name": "s4-eth4", "port_no": "00000004", "dpid":
"0000000000000004"}, {"hw_addr": "c2:ed:1c:ac:66:b7", "name": "s4-eth5",
"port_no": "00000005", "dpid": "0000000000000004"}], "dpid":
"0000000000000004"}, {"ports": [{"hw_addr": "fa:c6:76:18:30:78", "name":
"s5-eth1", "port_no": "00000001", "dpid": "0000000000000005"}, {"hw_addr":
"3a:e5:cd:db:41:0b", "name": "s5-eth2", "port_no": "00000002", "dpid":
"0000000000000005"}], "dpid": "0000000000000005"}]oftutorial@openflowvm:~$
oftutorial@openflowvm:~$
Did I miss anything here?
Thanks,
Alexis Saito.
Em 18/10/2013, às 13:07, Raphael Vicente Rosa escreveu:
> Hi Alexis,
> Here follows switches with OF1.3.
> This code could be used to patch switches.
> Raphael
>
> ------------------------------
>
> Message: 3
> Date: Thu, 17 Oct 2013 00:25:24 -0300
> From: Alexis Saito <[email protected]>
> Subject: [Ryu-devel] Link discovery support for OF1.3
> To: [email protected]
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=iso-8859-1
>
> Hi!
>
> I notice link discovery function in ryu.topology.switches is not yet in place.
> I would like to understand what is missing and whether there is an estimation
> to have it.
>
> Thanks!
> Alexis Saito
> Master Student @ Universidade Federal de S?o Carlos
>
>
> ------------------------------
> <switches.py>
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel