Details
-
Bug
-
Status: Resolved
-
Resolution: Duplicate
-
None
-
None
-
None
-
Operating System: All
Platform: All
-
8526
Description
While VTN Testing, We have identified that for some actions the flow entries are installed correctly on the OpenFlow switch. But, the operational datastore does not reflect the correct action for the flow entry. It has been noted for a few actions specifically
a. action: set vlan pcp
Flow Entry on Switch
cookie=0x7f5600000000007b, duration=0.193s, table=0, n_packets=0, n_bytes=0, send_flow_rem priority=13,ip,in_port=1,dl_vlan=200,dl_src=6e:30:ce:63:16:4b,dl_dst=26:a1:54:78:73:70,nw_src=10.0.0.1,nw_dst=10.0.0.5 actions=set_field:6->vlan_pcp,output:3
Operational DS contents for the switch
- Added as attachment txt file
Similar problems seen when using flow entries for setting vlan id, set-dl-
src-action, set-dl-dst, set-nw-src, set-nw-tos, set-tp-src, set-tp-dst.
- Please see other attachment where entries are collected from every switch as well as the operational DS contens.
b. POST /restconf/operations/sal-flow:add-flow
Body:
{
"input": {
"node": "/opendaylight-inventory:nodes/opendaylight-inventory:node[opendaylight-inventory:id=\"openflow:1\"]",
"table_id": 0,
"priority": 10,
"idle-timeout": 0,
"hard-timeout": 0,
"match": {
"ip-match":
,
"ethernet-match": {
"ethernet-type":
}
}
"instructions": {
"instruction": [
{
"order": 0,
"apply-actions": {
"action": [
{
"set-vlan-id-action":
,
"order": 0
},
{
"order": 1,
"set-vlan-pcp-action":
},
{
"order": 2,
"set-dl-src-action":
},
{
"set-dl-dst-action":
,
"order": 3
},
{
"set-nw-src-action":
,
"order": 4
},
{
"order": 5,
"set-nw-dst-action":
},
{
"order": 6,
"set-nw-tos-action":
},
{
"order": 7,
"set-tp-src-action":
},
{
"order": 8,
"set-tp-dst-action":
}
]
}
}
]
}
}
}
The flow is installed correctly.
-
-
- s1 ------------------------------------------------------------------------
NXST_FLOW reply (xid=0x4):
cookie=0x0, duration=54.583s, table=0, n_packets=0, n_bytes=0, idle_age=54, \ priority=10,tcp \ actions=mod_vlan_vid:10,mod_vlan_pcp:5,\
mod_dl_src:00:aa:bb:cc:dd:ee,mod_dl_dst:00:11:22:33:44:55,\
mod_nw_src:10.20.30.40,mod_nw_dst:192.168.1.2,\
mod_nw_tos:252,mod_tp_src:32000,mod_tp_dst:333
- s1 ------------------------------------------------------------------------
-
However, action information for the flow entry in operational DS is wrong due to the bug.
- set-nw-dst-action doesn't have the value of MAC address.
- Other action information doesn't exist in the operational DS.
GET /restconf/operational/opendaylight-inventory:nodes/node/openflow:1/table/0
Result:
{
"flow-node-inventory:table": [
{
"id": 0,
"flow": [
{
"id": "#UF$TABLE*0-5",
"priority": 10,
"table_id": 0,
"opendaylight-flow-statistics:flow-statistics": {
"duration":
,
"byte-count": 0,
"packet-count": 0
},
"idle-timeout": 0,
"match": {
"ip-match":
,
"ethernet-match": {
"ethernet-type":
}
},
"hard-timeout": 0,
"cookie": 0,
"instructions": {
"instruction": [
{
"order": 0,
"apply-actions": {
"action": [
{
"order": 0,
"set-nw-dst-action": {}
}
]
}
}
]
}
}
],
"opendaylight-flow-table-statistics:flow-table-statistics":
}
]
}
Attachments
Issue Links
- duplicates
-
OPNFLWPLUG-894 Mismatch between Operational Datastore and the actual Flow Entry
- Resolved