[CONTROLLER-85] RESTCONF not passing any values through for Groups (all null) Created: 09/Dec/13  Updated: 25/Jul/23  Resolved: 24/Jan/14

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

Type: Improvement
Reporter: Ed Warnicke Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Mac OS
Platform: PC


Issue Links:
Duplicate
duplicates CONTROLLER-119 Create group fails through RESTCONF Resolved

 Description   

This is against:
https://git.opendaylight.org/gerrit/#/c/3314/10 (controller side)

https://git.opendaylight.org/gerrit/#/c/3451/2 (openflowplugin side)

Build the controller
Build openflowplugin using -nsu

Run distribution/base/target/../run.sh -debug

From POSTMAN:

PUT: http://192.168.195.157:8080/restconf/config/opendaylight-inventory:nodes/node/foo:node:1/group/125

Content-Type: application/xml

Accept: application/xml

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<group
xmlns="urn:opendaylight:flow:inventory">
<group-type>group-select</group-type>
<group-id>125</group-id>
<buckets>
<bucket>
<watch_port>1234</watch_port>
<watch_group>123</watch_group>
<action>
<pop-vlan-action/>
</action>
<bucket-id>12</bucket-id>
<weight>123</weight>
</bucket>
</buckets>
<install>false</install>
<group-name>Foo</group-name>
<barrier>false</barrier>
</group>

What arrives at the RPC is :

2013-12-09 05:02:22.976 PST [pool-20-thread-6] INFO o.o.o.t.OpenflowpluginGroupTestServiceProvider - addGroup - AddGroupInput [_barrier=null, _buckets=null, _containerName=null, _groupId=null, _groupName=null, _groupType=null, _install=null, _node=NodeRef [_value=InstanceIdentifier [path=[org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.Nodes, org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node[key=NodeKey [_id=Uri [_value=foo:node:1]]]]]], _transactionId=null]

Basically, all Group values nulled out.

Additionally, while debugging its clear that the data that comes into the Transaction has all fields nulled as well. So the issue is prior to the data commit.



 Comments   
Comment by Ed Warnicke [ 09/Dec/13 ]

Oops... this is against

https://git.opendaylight.org/gerrit/#/c/3314/11 (controller side)

https://git.opendaylight.org/gerrit/#/c/3451/3 (openflowplugin side)

Comment by Martin Sunal [ 14/Jan/14 ]

In current version all data from request are sent to transaction from restconf.
I had to changed data in request because there should be "order" element in "action" and "install" is removed. Problem will be in another component or it was already resolved. Bug is moved to mdsal

Current data:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<group
xmlns="urn:opendaylight:flow:inventory">
<group-type>group-select</group-type>
<group-id>125</group-id>
<buckets>
<bucket>
<watch_port>1234</watch_port>
<watch_group>123</watch_group>
<action>
<order>1</order>
<pop-vlan-action/>
</action>
<bucket-id>12</bucket-id>
<weight>123</weight>
</bucket>
</buckets>
<group-name>Foo</group-name>
<barrier>false</barrier>
</group>

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