Details
-
Bug
-
Status: Resolved
-
Resolution: Done
-
None
-
None
-
None
-
Operating System: Linux
Platform: PC
-
3082
Description
Restoring Group and Meters test has exposed similar issue as https://bugs.opendaylight.org/show_bug.cgi?id=2862, this is flow ID is unknown for a flow containing a group or a meter. Same as 2862, this was working in stable/helium.
Steps to reproduce:
1) start CPqD
2) Create a group:
PUT http://127.0.0.1:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:1/group/1
group xmlns="urn:opendaylight:flow:inventory">
<group-id>1</group-id>
<buckets>
<bucket>
<bucket-id>1</bucket-id>
<weight>1</weight>
<action>
<order>1</order>
<output-action>
<output-node-connector>openflow:1:1</output-node-connector>
</output-action>
</action>
</bucket>
<bucket>
<bucket-id>2</bucket-id>
<weight>1</weight>
<action>
<order>1</order>
<output-action>
<output-node-connector>openflow:1:2</output-node-connector>
</output-action>
</action>
</bucket>
</buckets>
<group-type>group-select</group-type>
<barrier>false</barrier>
<group-name>Foo</group-name>
</group>
3) Create a flow with the group:
PUT http://127.0.0.1:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/0/flow/1
<flow xmlns="urn:opendaylight:flow:inventory">
<strict>false</strict>
<hard-timeout>0</hard-timeout>
<idle-timeout>0</idle-timeout>
<instructions>
<instruction>
<order>0</order>
<apply-actions>
<action>
<group-action>
<group-id>1</group-id>
</group-action>
<order>1</order>
</action>
</apply-actions>
</instruction>
</instructions>
<table_id>0</table_id>
<id>1</id>
<match>
<ethernet-match>
<ethernet-type>
<type>2048</type>
</ethernet-type>
</ethernet-match>
<ipv4-destination>10.0.10.1/32</ipv4-destination>
</match>
<flow-name>forward</flow-name>
<priority>2</priority>
</flow>
3) Check operational:
GET http://127.0.0.1:8181/restconf/operational/opendaylight-inventory:nodes/node/openflow:1/table/0
ANSWER:
"flow": [
{
"id": "#UF$TABLE*0-1",
"flags": "",
"match": {
"ipv4-destination": "10.0.10.1/32",
"ethernet-match": {
"ethernet-type": {
"type": 2048
}
}
},
"priority": 2,
"instructions": {
"instruction": [
{
"order": 0,
"apply-actions": {
"action": [
{
"order": 0,
"group-action": {
"group-id": 1
}
}
]
}
}
]
},
"idle-timeout": 0,
"opendaylight-flow-statistics:flow-statistics": {
"duration": {
"nanosecond": 790000,
"second": 595
},
"byte-count": 0,
"packet-count": 0
},
"table_id": 0,
"hard-timeout": 0,
"cookie": 0
}
],