[CONTROLLER-588] OpenflowpluginTestCommand Provider is giving Error for new Experimeter Action Created: 30/Jun/14  Updated: 25/Jul/23  Resolved: 02/Jul/14

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

Type: Bug
Reporter: Gaurav Bhagwani Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Windows
Platform: PC


External issue ID: 1261

 Description   

I am trying to run one of the test cases from OpenflowpluginTestCommandProvider, with my test-case for a new Action,
TestCase code is present at :

osgi> addMDFlow openflow:1 f86
gogo: IllegalArgumentException: Failed to normalize data [Node[SimpleNodeTOImpl], qName[example-type], modify[n/a], value = 2, Node[Simp
leNodeTOImpl], qName[order], modify[n/a], value = 0]

F86 - is a use case I have written for new actions , which are defined in this review : https://git.opendaylight.org/gerrit/#/c/7978/



 Comments   
Comment by Prasanna Huddar [ 01/Jul/14 ]

Openflowplugin test provider if just test tool used to test.
The Error is coming from MD-SAL.

Re assigning it to controller

Comment by Tony Tkacik [ 02/Jul/14 ]

Error is in YANG model itself / or your use case,
not MD-SAL or YANGTools, which behaves correctly - dissallowing
writing elements, where they not belong

You are augmenting one place:

augment "/ofaction:action-types/ofaction:action/ofaction:action"

And your augmented case is only valid in data tree action-types/action/action.

In order to make it valid also in configuration and or operational tree
you must also augment

augment "/nodes/node/table/flow/instruction/apply-action" and others.

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