[pox-dev] Installing rule
Murphy McCauley
murphy.mccauley at gmail.com
Tue Jul 23 18:24:50 PDT 2013
To match on IP fields, you must specify that the dl_type is IP.
A "drop" action is simply an empty action list.
-- Murphy
On Jul 23, 2013, at 5:13 PM, nibble nibble wrote:
> Hi,
>
> I am trying to install a rule via the following command:
>
> fm = of.ofp_flow_mod()
> fm.match.in_port = packet_in.in_port
> fm.match.nw_src = IPAddr(ip.srcip)
> fm.idle_timeout = 33
> fm.hard_timeout = 44
>
> for connection in core.openflow._connections.values():
> #connection.send(fm)
>
> I want the matching rule to have source ip address of incoming packet (and also port).
>
> But this is the rule which is installed in switches(it does not include source ip, nw_src):
> cookie=0, duration_sec=13s, duration_nsec=119000000s, table_id=0, priority=32768, n_packets=6, n_bytes=252, idle_timeout=33,hard_timeout=44,actions=
>
> I also do not know how to add action "DROP".
>
> Any help is appreciated.
> Nibble
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.noxrepo.org/pipermail/pox-dev-noxrepo.org/attachments/20130723/838e0201/attachment-0002.htm>
More information about the pox-dev
mailing list