hi,
No, this action is reversible.
For seeing the packet_in caused by ACTION again in controller, just do this
in the code:
packet_in_mask = 3
Thank you,
...................................................
mehran shetabi
PhD student
Computer Engineering Department
IUST
-----Original Message-----
From: Shinpei Muraoka <shinpei.mura...@gmail.com>
To: mshet...@iust.ac.ir, ryu-devel@lists.sourceforge.net
Date: Fri, 27 May 2016 11:19:43 +0900
Subject: Re: [Ryu-devel] OFPR_ACTION bitmask of the “Set asynchronous
configuration message”
Hi,
Sorry reply is late.
I think, example of the Ryu document is bug.
Please try to shift the value to be set in the mask as follows.
def send_set_async(self, datapath):
ofp = datapath.ofproto
ofp_parser = datapath.ofproto_parser
packet_in_mask = (1 << ofp.OFPR_ACTION)
port_status_mask = ((1 << ofp.OFPPR_ADD) |
(1 << ofp.OFPPR_DELETE) |
(1 << ofp.OFPPR_MODIFY))
flow_removed_mask = ((1 << ofp.OFPRR_IDLE_TIMEOUT) |
(1 << ofp.OFPRR_HARD_TIMEOUT) |
(1 << ofp.OFPRR_DELETE))
req = ofp_parser.OFPSetAsync(datapath,
[packet_in_mask, 0],
[port_status_mask, 1],
[flow_removed_mask, 1])
datapath.send_msg(req)
Thanks,
On 2016年05月25日 22:04, mehran shetabi wrote:
> Hi,
> In RYU, I used OFPSetAsync message to mask packet_in caused by ACTION as
> mentioned in RYU doc. This is the code:
> def send_set_async(self, datapath):
> ofp = datapath.ofproto
> ofp_parser = datapath.ofproto_parser
> packet_in_mask = ofp.OFPR_ACTION
> port_status_mask = (ofp.OFPPR_ADD | ofp.OFPPR_DELETE |
> ofp.OFPPR_MODIFY)
> flow_removed_mask = (ofp.OFPRR_IDLE_TIMEOUT |
> ofp.OFPRR_HARD_TIMEOUT |
> ofp.OFPRR_DELETE)
> req = ofp_parser.OFPSetAsync(datapath,
> [packet_in_mask, 0],
> [port_status_mask, 1],
> [flow_removed_mask, 1])
> datapath.send_msg(req)
> Is this action irreversible? I mean; I want to see the packet_in caused
> by ACTION again in my controller. How can I do this?
> Thank you,
> ...................................................
> mehran shetabi
> PhD student
> Computer Engineering Department
> IUST
>
> -----Original Message-----
> From: Shinpei Muraoka <shinpei.mura...@gmail.com>
> To: mshet...@iust.ac.ir, ryu-devel@lists.sourceforge.net
> Date: Mon, 23 May 2016 11:19:19 +0900
> Subject: Re: [Ryu-devel] OFPR_ACTION bitmask of the “Set
> asynchronous configuration message”
>
> Hi,
>
> > Which action it means? How can I use it for filtering packet_in
> messages
> > to my ryu controller?
>
> Please refer to the 7.4.1 Packet-In Message in OpenFlow Switch
> Specification(Version 1.5.0).
> I hope that all of this information will be helpful for you.
>
> Thanks,
>
> On 2016年05月21日 05:47, mehran shetabi wrote:
> > Hi,
> > In RYU doc, there is OFPR_ACTION bitmask in the section “Set
> > asynchronous configuration message” as you can see at the link
> >
>
http://ryu.readthedocs.io/en/latest/ofproto_v1_3_ref.html#ryu.ofproto.ofproto_v1_3_parser.OFPSetAsync
[http://ryu.readthedocs.io/en/latest/ofproto_v1_3_ref.html#ryu.ofproto.ofproto_v1_3_parser.OFPSetAsync]
>
> >
> > Which action it means? How can I use it for filtering packet_in
> messages
> > to my ryu controller?
> > Thank you,
> > ...................................................
> > mehran shetabi
> > PhD student
> > Computer Engineering Department
> > IUST
> >
> >
> >
>
------------------------------------------------------------------------------
> > Mobile security can be enabling, not merely restricting.
> Employees who
> > bring their own devices (BYOD) to work are irked by the
> imposition of MDM
> > restrictions. Mobile Device Manager Plus allows you to control
> only the
> > apps on BYO-devices by containerizing them, leaving personal data
> untouched!
> > https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
[https://ad.doubleclick.net/ddm/clk/304595813;131938128;j]
> >
> >
> >
> > _______________________________________________
> > Ryu-devel mailing list
> > Ryu-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/ryu-devel
[https://lists.sourceforge.net/lists/listinfo/ryu-devel]
> >
>
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel