[OPNFLWPLUG-151] addMDFlow command fails to add new flow with latest controller code. Created: 06/May/14  Updated: 27/Sep/21  Resolved: 08/May/14

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

Type: Bug
Reporter: RaviKumar Chiguruvada 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: 957

 Description   

With the latest controller code addMDFlow is not working.

osgi> addMDFlow openflow:1 f5 0
gogo: NullPointerException: List node (urn:opendaylight:flow:inventory?revision=2013-08-19)instruction MUST contain leaf (urn:opendaylight:flow:inventory?revision=2013-08-19)order with value.



 Comments   
Comment by Tony Tkacik [ 06/May/14 ]

Moved to Openflow Plugin - since addMDFlow command is part of Openflow plugin,
and it does not adhere to API contract - did not fill out key for instruction.

Comment by Robert Varga [ 07/May/14 ]

To clarify, this probably comes from opendaylight-flow-types.yang, which defines:

grouping instruction-list {
list instruction {
key "order";
leaf order

{ type int32; }

uses instruction;
}
}

Since the list specifies a key, it is mandatory when an object is being added.

Comment by RaviKumar Chiguruvada [ 08/May/14 ]

Specified keys for the list.
Fixed and pushed the changes in https://git.opendaylight.org/gerrit/#/c/6802/.

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