Details
-
Bug
-
Status: Resolved
-
Resolution: Done
-
None
-
None
-
None
-
Operating System: Linux
Platform: PC
-
660
-
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: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:ipv4-destination": "10.0.1.0/24"
}
}
]
}
Attachments
Issue Links
- is blocked by
-
CONTROLLER-208 Verify downstream projects to be working with new datastore prototype
- Resolved