Hello Fujita,
Which switch are you using? i am using open vSwitch branch version
(mpls-of1.2 from osrg) [in github.com]. This version seems to 1.1+ and
while trying topology using rest APIs I am getting
*cannot send lldp packet. unsupported version. 3.*
*
*
Please help me.
Best Regards,
Nikhilk
On Sun, Mar 31, 2013 at 2:51 PM, FUJITA Tomonori <
[email protected]> wrote:
> On Thu, 28 Mar 2013 18:50:27 +0900
> YAMADA Hideki <[email protected]> wrote:
>
> > 1. run topology/switches and app/rest_topology
> > $ ./bin/ryu-manager --verbose --observe-links ryu/topology/switches.py
> ryu/app/rest_topology.py
> >
> > 2. You can get topology json
> > $ curl http://127.0.0.1:8080/v1.0/topology/links
> > [{"src": {"hw_addr": "06:96:65:51:f8:ff", "name": "s2-eth3", "port_no":
> "00000003", "dpid": "0000000000000002"}, "dst": {"hw_addr":
> "4a:ed:13:ea:b7:e0", "name": "s1-eth1", "port_no": "00000001", "dpid":
> "0000000000000001"}}, {"src": {"hw_addr": "4a:ed:13:ea:b7:e0", "name":
> "s1-eth1", "port_no": "00000001", "dpid": "0000000000000001"}, "dst":
> {"hw_addr": "06:96:65:51:f8:ff", "name": "s2-eth3", "port_no": "00000003",
> "dpid": "0000000000000002"}}, {"src": {"hw_addr": "1e:7b:0b:fc:0a:2f",
> "name": "s1-eth2", "port_no": "00000002", "dpid": "0000000000000001"},
> "dst": {"hw_addr": "4e:62:98:6f:16:57", "name": "s3-eth3", "port_no":
> "00000003", "dpid": "0000000000000003"}}, {"src": {"hw_addr":
> "4e:62:98:6f:16:57", "name": "s3-eth3", "port_no": "00000003", "dpid":
> "0000000000000003"}, "dst": {"hw_addr": "1e:7b:0b:fc:0a:2f", "name":
> "s1-eth2", "port_no": "00000002", "dpid": "0000000000000001"}}]
> >
> > $ curl http://127.0.0.1:8080/v1.0/topology/switches
> > [{"ports": [{"hw_addr": "4a:ed:13:ea:b7:e0", "name": "s1-eth1",
> "port_no": "00000001", "dpid": "0000000000000001"}, {"hw_addr":
> "1e:7b:0b:fc:0a:2f", "name": "s1-eth2", "port_no": "00000002", "dpid":
> "0000000000000001"}], "dpid": "0000000000000001"}, {"ports": [{"hw_addr":
> "be:3b:8d:77:14:a5", "name": "s2-eth1", "port_no": "00000001", "dpid":
> "0000000000000002"}, {"hw_addr": "1e:bf:ec:8b:c2:5b", "name": "s2-eth2",
> "port_no": "00000002", "dpid": "0000000000000002"}, {"hw_addr":
> "06:96:65:51:f8:ff", "name": "s2-eth3", "port_no": "00000003", "dpid":
> "0000000000000002"}], "dpid": "0000000000000002"}, {"ports": [{"hw_addr":
> "52:a2:9a:7a:a8:a1", "name": "s3-eth1", "port_no": "00000001", "dpid":
> "0000000000000003"}, {"hw_addr": "62:25:ff:a5:a1:1a", "name": "s3-eth2",
> "port_no": "00000002", "dpid": "0000000000000003"}, {"hw_addr":
> "4e:62:98:6f:16:57", "name": "s3-eth3", "port_no": "00000003", "dpid":
> "0000000000000003"}], "dpid": "0000000000000003"}]
> >
> > Signed-off-by: YAMADA Hideki <[email protected]>
> > ---
> > ryu/app/rest_topology.py | 99
> ++++++++++++++++++++++++++++++++++++++++++++++
> > ryu/topology/switches.py | 24 ++++++++++-
> > 2 files changed, 120 insertions(+), 3 deletions(-)
> > create mode 100644 ryu/app/rest_topology.py
>
> Applied, but I want to use networkx library for path computation, etc:
>
>
> ------------------------------------------------------------------------------
> Own the Future-Intel(R) Level Up Game Demo Contest 2013
> Rise to greatness in Intel's independent game demo contest. Compete
> for recognition, cash, and the chance to get your game on Steam.
> $5K grand prize plus 10 genre and skill prizes. Submit your demo
> by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete
for recognition, cash, and the chance to get your game on Steam.
$5K grand prize plus 10 genre and skill prizes. Submit your demo
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel