Hello,
I am making a ryu app which has actions such as push pbb and pop pbb. I am
continuously getting the following errors: OFPET_BAD_ACTION = type 2, /*
Error in action description. */
OFPBAC_BAD_TYPE = code 0, /* Unknown or unsupported action type.
I tried very hard to get rid of that. However, nothing works. My
push_pbb_rule function is like this:
def push_pbb_rule(self,datapath,ip_proto,in_port,outPort,priority,sid):
LOG.debug("--- add_flow PushPbb")
ofproto = datapath.ofproto
parser= datapath.ofproto_parser
#print parser
actions =[]
match = parser.OFPMatch(in_port=in_port,eth_type=ether.ETH_TYPE_IP)
if(sid!=None):
actions = [parser.OFPActionPushVlan(ether.ETH_TYPE_8021Q),
parser.OFPActionPushPbb(ether.ETH_TYPE_8021AH),
parser.OFPActionSetField(pbb_isid=sid),parser.OFPActionOutput(outPort)]
#openflow_v1_4, you need to write like this:
parser.OFPActionSetField(pbb_isid=sid)
else:
actions = [parser.OFPActionPushVlan(ether.ETH_TYPE_8021Q),
parser.OFPActionPushPbb(ether.ETH_TYPE_8021AH),
parser.OFPActionOutput(outPort)]
self.add_flow(datapath,10, match, actions)
Do any one know why I am getting type -2 and code 0 error?? what can be the
bug in code?. Please help. Thanks.
On Tue, Apr 14, 2015 at 7:05 PM, Vishlesh Patel <[email protected]>
wrote:
> Hello,
>
> I am making a ryu app which has actions such as push pbb and pop pbb. I am
> continuously getting the following errors: OFPET_BAD_ACTION = type 2, /*
> Error in action description. */
> OFPBAC_BAD_TYPE = code 0, /* Unknown or unsupported action type.
>
> I tried very hard to get rid of that. However, nothing works. My
> push_pbb_rule function is like this:
>
> def push_pbb_rule(self,datapath,ip_proto,in_port,outPort,priority,sid):
> LOG.debug("--- add_flow PushPbb")
>
> ofproto = datapath.ofproto
> parser= datapath.ofproto_parser
> #print parser
> actions =[]
> match = parser.OFPMatch(in_port=in_port,eth_type=ether.ETH_TYPE_IP)
>
> if(sid!=None):
> #f =
> parser.OFPMatchField.make(datapath.ofproto.OXM_OF_PBB_ISID,sid)
> actions = [parser.OFPActionPushVlan(ether.ETH_TYPE_8021Q),
> parser.OFPActionPushPbb(ether.ETH_TYPE_8021AH),
>
> parser.OFPActionSetField(pbb_isid=sid),parser.OFPActionOutput(outPort)]
> #openflow_v1_4, you need to write like this:
> parser.OFPActionSetField(pbb_isid=sid)
> else:
> actions = [parser.OFPActionPushVlan(ether.ETH_TYPE_8021Q),
> parser.OFPActionPushPbb(ether.ETH_TYPE_8021AH),
> parser.OFPActionOutput(outPort)]
> self.add_flow(datapath,10, match, actions)
> Do you have the Table of error , codes and types?
>
> Thanks,
> Vishlesh Patel
> M.S. Computer Engineering
> NYU Polytechnic School of Engineering
>
> On Tue, Apr 14, 2015 at 12:21 AM, Vishlesh Patel <
> [email protected]> wrote:
>
>> However I have action:
>>
>> match = parser.OFPMatch(in_port=in_port,eth_type=ether.ETH_TYPE_IP)
>> Actions = [parser.OFPActionPushPbb(ether.ETH_TYPE_8021AH),
>> parser.OFPActionOutput(out_port)]
>>
>> What's causing that error?
>>
>> Thanks.
>>
>> On Tue, Apr 14, 2015 at 12:16 AM, Minoru TAKAHASHI <
>> [email protected]> wrote:
>>
>>> Hi,
>>>
>>> Please don't drop mailing list.
>>>
>>> On 2015年04月14日 12:45, Vishlesh Patel wrote:
>>> > Thank you very much for the reply. It helped me to get rid of
>>> Ofperrormsg code =9 and type -4. Unfortunately, I am finding hard for
>>> "A.4.4 Error Message" of "OpenFlow specification 1.3.4". But didn't able
>>> to. I really in need of that table to debug my code.
>>> >
>>>
>>> Please check the following.
>>>
>>> https://www.opennetworking.org/images/stories/downloads/sdn-resources/onf-specifications/openflow/openflow-switch-v1.3.4.pdf#108
>>>
>>> > Right now, I am getting new OFPErrorMsg with code=0 type=2. can you
>>> please provide me the table by just forwarding it to me or can provide me
>>> the information for OFPErrorMsg with code=0 type=2.
>>> >
>>>
>>> They means the following.
>>>
>>> OFPET_BAD_ACTION = 2, /* Error in action description. */
>>> OFPBAC_BAD_TYPE = 0, /* Unknown or unsupported action type. */
>>>
>>> thanks
>>>
>>> > Thanks a lot.
>>> >
>>> >
>>> >
>>> >
>>> > On Mon, Apr 13, 2015 at 11:09 PM, Minoru TAKAHASHI <
>>> [email protected] <mailto:[email protected]>> wrote:
>>> >
>>> > Hi,
>>> >
>>> > > Do any one knows what does that mean by code 9 and type 4
>>> openflow error?
>>> >
>>> > They means the following.
>>> >
>>> > OFPET_BAD_MATCH = 4, /* Error in match. */
>>> > OFPBMC_BAD_PREREQ = 9, /* A prerequisite was not met. */
>>> >
>>> > You should check "Table 12: Header match fields details" in
>>> "OpenFlow specification 1.3.4".
>>> >
>>> > > Do you have the Table of error , codes and types?
>>> >
>>> > Please refer to the "A.4.4 Error Message" of "OpenFlow
>>> specification 1.3.4".
>>> > It is available for download at Open Networking
>>> > Foundation(https://www.opennetworking.org/).
>>> >
>>> > thanks
>>> >
>>> > On 2015年04月14日 11:55, Vishlesh Patel wrote:
>>> > > Hello,
>>> > >
>>> > > I am making a ryu app which has actions such as push pbb and pop
>>> pbb. OpenFlow v1.3 does not supoort that actions so I upgraded the ovs to
>>> version 2.3.1 which supports Openflow v1.4 and also upgraded mininet to
>>> 2.2.1. However, still I am getting OFPErrorMsg code=9, type=4 while doing
>>> push and pop pbb action.
>>> > >
>>> > > Do any one knows what does that mean by code 9 and type 4
>>> openflow error?
>>> > >
>>> > > Do you have the Table of error , codes and types?
>>> > >
>>> > > Thanks,
>>> > > Vishlesh Patel
>>> > > M.S. Computer Engineering
>>> > > NYU Polytechnic School of Engineering
>>> > >
>>> > >
>>> > >
>>> ------------------------------------------------------------------------------
>>> > > BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
>>> > > Develop your own process in accordance with the BPMN 2 standard
>>> > > Learn Process modeling best practices with Bonita BPM through
>>> live exercises
>>> > > http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual-
>>> event?utm_
>>> > >
>>> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
>>> > >
>>> > >
>>> > >
>>> > > _______________________________________________
>>> > > Ryu-devel mailing list
>>> > > [email protected] <mailto:
>>> [email protected]>
>>> > > https://lists.sourceforge.net/lists/listinfo/ryu-devel
>>> > >
>>> >
>>> >
>>>
>>
>>
>
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel