[CONTROLLER-103] while removing flow from dataStore md-sal is not filling flags (of type bits) Created: 17/Dec/13  Updated: 25/Jul/23  Resolved: 18/Dec/13

Status: Resolved
Project: controller
Component/s: mdsal
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Michal Rehak Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: PC


External issue ID: 250

 Description   

flow is defined as follows:
model-flow-base:opendaylight-flow-types.yang
...
typedef flow-mod-flags {
type bits

{ bit CHECK_OVERLAP; bit RESET_COUNTS; bit NO_PKT_COUNTS; bit NO_BYT_COUNTS; bit SEND_FLOW_REM; }

}
after creating flow, rest exposes correct content of field 'flags':
<flags>FlowModFlags [_cHECKOVERLAP=false, _rESETCOUNTS=false, _nOPKTCOUNTS=false, _nOBYTCOUNTS=false, _sENDFLOWREM=false]</flags>

While removing this flow, md-sal looks up flow by path and found flow has field 'flags' set to null.



 Comments   
Comment by Tony Tkacik [ 18/Dec/13 ]

Resolved in:

https://git.opendaylight.org/gerrit/3820

The problem was that Bits YANG type was not serialized properly for storage
and RESTCONF.

The correct representation is <flags></flags>

Generated at Wed Feb 07 19:52:11 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.