[OPNFLWPLUG-106] 2 Match and 2 Instructions via RESTCONF Created: 03/Apr/14  Updated: 27/Sep/21  Resolved: 02/May/14

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

Type: Bug
Reporter: Christopher O'Shea Assignee: Vaclav Demcak
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: PC


Attachments: File f1.xml    
Issue Links:
Blocks
is blocked by CONTROLLER-208 Verify downstream projects to be work... Resolved
External issue ID: 660
Priority: Normal

 Description   

Install a flow via RESTCONF with the following command

curl -v -X PUT -H "Content-Type: application/xml" -H "username: admin" -H "password: admin" -d @f1.xml http://127.0.0.1:8080/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/2/flow/124

When viewing the flow via RESTCONF

I see duplicated Match field and Instructions in the XML/JSON file.

{
"flow-node-inventory:flow": [
{
"flow-node-inventory:strict": false,
"flow-node-inventory:instructions": {
"flow-node-inventory:instruction": [
{
"flow-node-inventory:order": 0,
"flow-node-inventory:apply-actions": {
"flow-node-inventory:action": [
{
"flow-node-inventory:order": 0,
"flow-node-inventory:dec-nw-ttl": {}
}
]
}
}
]
},
"flow-node-inventory:table_id": 2,
"flow-node-inventory:id": "124",
"flow-node-inventory:cookie_mask": 255,
"flow-node-inventory:installHw": false,
"flow-node-inventory:match": {
"flow-node-inventory:ethernet-match": {
"flow-node-inventory:ethernet-type":

{ "flow-node-inventory:type": 2048 }

},
"flow-node-inventory:ipv4-destination": "10.0.1.0/24"
},
"flow-node-inventory:hard-timeout": 12,
"flow-node-inventory:flags": "FlowModFlags [_cHECKOVERLAP=false, _rESETCOUNTS=false, _nOPKTCOUNTS=false, _nOBYTCOUNTS=false, _sENDFLOWREM=false]",
"flow-node-inventory:cookie": 1,
"flow-node-inventory:idle-timeout": 34,
"flow-node-inventory:flow-name": "FooXf1",
"flow-node-inventory:priority": 2,
"flow-node-inventory:barrier": false,
"flow-node-inventory:instructions": {
"flow-node-inventory:instruction": [
{
"flow-node-inventory:order": 0,
"flow-node-inventory:apply-actions": {
"flow-node-inventory:action": [
{
"flow-node-inventory:order": 0,
"flow-node-inventory:dec-nw-ttl": {}
}
]
}
}
]
},
"flow-node-inventory:match": {
"flow-node-inventory:ethernet-match": {
"flow-node-inventory:ethernet-type":

{ "flow-node-inventory:type": 2048 }

},
"flow-node-inventory:ipv4-destination": "10.0.1.0/24"
}
}
]
}



 Comments   
Comment by Christopher O'Shea [ 03/Apr/14 ]

Attachment f1.xml has been added with description: XML PUT file

Comment by Abhijit Kumbhare [ 14/Apr/14 ]

This should be fixed in the stable release. Vaclav thinks this should be fixed with the new data store.

Comment by Vaclav Demcak [ 02/May/14 ]

New tree-based data store is made as default and I haven't seen described behavior anymore.

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