Hi,
I design 2 scenarios in mininet,
(1) host1 connect to port1 with tag vlan5, host2 connect to   port2 with
tag vlan 6 . Then host1 ping host2 .
(2) host1 connect to  port 1 with no-vlan, host2 connect to  port2 with tag
vlan 6. Then host1 ping host2 .

I am running RYU :
#./bin/ryu-manager --verbose --observe-links ryu.topology.switches
ryu.app.rest_topology ryu.app.ofctl_re
st ryu.app.simple_switch
~/ryu/ryu/gui$ ./controller.py

in these two scenarios, I add static flow entry   but they don't work,
Either in case(1) or in case(2), host1 and host2 all cann't ping each
other.  Could you help me checkout what's wrong with my static flow entry?
(1)
curl -X POST -d '{"dpid": "0000000000000001",
"priority":"32768","actions":[{"type":"OUTPUT","port":"1"},
{"type":"SET_VLAN_VID","vlan_vid":"5"}], "match":{"in_port":"2",
"dl_vlan":"6"}}' http://127.0.0.1:8080/stats/flowentry/add

curl -X POST -d '{"dpid": "0000000000000001",
"priority":"32768","actions":[{"type":"OUTPUT","port":"2"},
{"type":"SET_VLAN_VID","vlan_vid":"6"}], "match":{"in_port":"1",
"dl_vlan":"5"}}' http://127.0.0.1:8080/stats/flowentry/add

(2)
curl -X POST -d '{"dpid": "0000000000000001",
"priority":"32500","actions":[{"type":"OUTPUT","port":"2"},
{"type":"SET_VLAN_VID","vlan_vid":"6"}], "match":{"in_port":"1"}}'
http://127.0.0.1:8080/stats/flowentry/add

curl -X POST -d '{"dpid": "0000000000000001",
"priority":"32768","actions":[{"type":"OUTPUT","port":"1"},
{"type":"STRIP_VLAN","ethertype":33024}], "match":{"in_port":"2",
"dl_vlan":"6"}}' http://127.0.0.1:8080/stats/flowentry/add
------------------------------------------------------------------------------
Slashdot TV.  Videos for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to