[OPNFLWPLUG-193] of-flow: instruction/clear-actions details missing in operational data store Created: 12/Jun/14  Updated: 27/Sep/21  Resolved: 21/Jun/14

Status: Resolved
Project: OpenFlowPlugin
Component/s: General
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Peter Gubka Assignee: Anil Vishnoi
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: PC


Attachments: File f219.xml     File f219odb.xml    
External issue ID: 1192

 Description   

odl:
version.properties
org.opendaylight.controller.version = 0.1
org.opendaylight.controller.build.scm.version = 9d7a3392097e4c4a648327f77d7ca1a6aaf1b410
org.opendaylight.controller.build.user = jenkins-controller
org.opendaylight.controller.build.workspace = **********
org.opendaylight.controller.build.timestamp = 1402529841853
org.opendaylight.controller.build.machine = **********

test: mininet 2.1.0 + ovs 2.0.0

steps:
1) PUT xml /restconf/config/opendaylight-inventory:nodes/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id}
(xml file f219.xml in attachment)

2) GET its operational state (for full details see f219odb.xml in attachment)
3) GET its config

4) seen difference
config:
<instruction>
<order>0</order>
<clear-actions>
<action>
<output-action>
<output-node-connector>INPORT</output-node-connector>
<max-length>60</max-length>
</output-action>
<order>0</order>
</action>
</clear-actions>
</instruction>

operational:
<instructions>
<instruction>
<clear-actions/>
<order>0</order>
</instruction>
</instructions>

Tag <clear-actions/> is empty



 Comments   
Comment by Peter Gubka [ 12/Jun/14 ]

Attachment f219.xml has been added with description: flow to be configured

Comment by Peter Gubka [ 12/Jun/14 ]

Attachment f219odb.xml has been added with description: operational details of the flow

Comment by Anil Vishnoi [ 21/Jun/14 ]

Hi Peter,

I am able to recreate this bug in my setup, but i think this bug goes to the same category as OPNFLWPLUG-188 and 1184. When i dump the flow in mininet, this is what i get

mininet> sh ovs-ofctl dump-flows s1 -O OpenFlow13
OFPST_FLOW reply (OF1.3) (xid=0x2):
cookie=0xa, duration=15.844s, table=2, n_packets=0, n_bytes=0, priority=219,dl_vlan=10,dl_vlan_pcp=3 actions=clear_actions

So if you see clear_actions don't have any sub actions and this behavior is correct as per specs as well. This is what specs says
"For the Clear-Actions instruction, the structure does not contain any actions.".

So stats reported in operation data store is correct, but i believe issue mainly is what we install and what finally get installed on the switch. As we discussed previously it needs some level of sanity check at plugin level.

Thanks
Anil

Generated at Wed Feb 07 20:31:48 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.