On Mar 6, 2013, at 11:31 PM, senthil arumugam wrote:
>     msg = of.ofp_flow_mod()
>     msg.flags = of.OFPFF_CHECK_OVERLAP
> 
>     msg.command = of.OFPFC_ADD
>     msg.match.nw_src = IPAddr(vn_context["src_ip"])
>    # msg.match.nw_src = IPAddr("192.167.10.10")
>    # msg.match.nw_dst = IPAddr("192.167.20.10")
>     msg.match.nw_dst = IPAddr(vn_context["dst_ip"])
>     msg.match.nw_proto = vn_context["proto"]
>     msg.match.tp_dst = vn_context["tcp_dst"]
> 
>     msg.actions.append(of.ofp_action_output(port = of.OFPP_NORMAL))

Your first problem is that you need to specify dl_type = 0x0800 if you want to 
match IP addresses and TCP/UDP ports.

-- Murphy

Reply via email to