[pox-dev] Installing rule

nibble nibble nibblenibble20 at gmail.com
Tue Jul 23 17:13:33 PDT 2013


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/6a0dc24b/attachment.htm>


More information about the pox-dev mailing list