On Tue, 14 Jan 2014 13:58:20 +0900
Yuichi Ito <[email protected]> wrote:
> ofctl_v1_0 has changed nw_src/dst into ipv4_src/dst or arp_spa/tpa
> automatically like ovs-ofctl.
> since ofctl_v1_2/3 change nw_src/dst only into ipv4_src/dst, it cannot create
> the match conditions which use arp_spa/tpa.
> this patch fixes this problem.
>
>
> before applying this patch (using ofctl_rest):
>
> curl -X POST -d '{"dpid": 1,
> "match": {"dl_type": 2048,
> "nw_src": "192.168.0.0/24"},
> "actions": [{"type": "OUTPUT",
> "port": 2}]}'
> http://localhost:8080/stats/flowentry/add
>
> OFPST_FLOW reply (OF1.3) (xid=0x2):
> cookie=0x0, duration=3.602s, table=0, n_packets=0, n_bytes=0,
> priority=0,ip,nw_src=192.168.0.0/24 actions=output:2
>
> curl -X POST -d '{"dpid": 1,
> "match": {"dl_type": 2054,
> "nw_src": "192.168.0.0/24"},
> "actions": [{"type": "OUTPUT",
> "port": 2}]}'
> http://localhost:8080/stats/flowentry/add
>
> no flow entry was installed.
>
>
> after applying this patch (using ofctl_rest):
>
> curl -X POST -d '{"dpid": 1,
> "match": {"dl_type": 2048,
> "nw_src": "192.168.0.0/24"},
> "actions": [{"type": "OUTPUT",
> "port": 2}]}'
> http://localhost:8080/stats/flowentry/add
>
> OFPST_FLOW reply (OF1.3) (xid=0x2):
> cookie=0x0, duration=3.602s, table=0, n_packets=0, n_bytes=0,
> priority=0,ip,nw_src=192.168.0.0/24 actions=output:2
>
> curl -X POST -d '{"dpid": 1,
> "match": {"dl_type": 2054,
> "nw_src": "192.168.0.0/24"},
> "actions": [{"type": "OUTPUT",
> "port": 2}]}'
> http://localhost:8080/stats/flowentry/add
>
> OFPST_FLOW reply (OF1.3) (xid=0x2):
> cookie=0x0, duration=2.555s, table=0, n_packets=0, n_bytes=0,
> priority=0,arp,arp_spa=192.168.0.0/24 actions=output:2
>
> Signed-off-by: Yuichi Ito <[email protected]>
> ---
> ryu/lib/ofctl_v1_2.py | 15 +++++++++++++++
> ryu/lib/ofctl_v1_3.py | 15 +++++++++++++++
> 2 files changed, 30 insertions(+)
Applied, thanks.
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel