[CONTROLLER-127] refs should be URLs Created: 22/Jan/14  Updated: 25/Jul/23  Resolved: 30/Jan/14

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

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

Operating System: Mac OS
Platform: PC


External issue ID: 339
Priority: High

 Description   

Currently refs are serialized in a form like:

xmlns="urn:opendaylight:model:topology:inventory">/(urn:opendaylight:inventory?revision=2013-08-19)nodes/(urn:opendaylight:inventory?revision=2013-08-19)node[

{(urn:opendaylight:inventory?revision=2013-08-19)id=openflow:2}

]

Which is next to useless to the caller. They should be serialized as URLs that point to the referenced entity so they can be used by the caller to retrieve the referenced node.



 Comments   
Comment by Ed Warnicke [ 23/Jan/14 ]

This can be seen with URL:

http://localhost:18080/restconf/operational/network-topology:network-topology/topology/flow:1

When running

sudo mn --topo tree,2 --controller remote,ip=127.0.0.1:6653 --switch ovsk,protocols=OpenFlow13

Comment by Ed Warnicke [ 23/Jan/14 ]

Example part of the model:

augment "/topo:network-topology/topo:topology/topo:node" {
ext:augment-identifier "inventory-node";
leaf inventory-node-ref

{ type inv:node-ref; }

}

From module opendaylight-topology-inventory {

Comment by Martin Sunal [ 30/Jan/14 ]

fixed in https://git.opendaylight.org/gerrit/#/c/4976/
It does not return URL pointing to the referenced item but it returns data in format described in http://tools.ietf.org/html/rfc6020#section-9.13.3

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