[CONTROLLER-429] RESTConf API Explorer: Generate URL for augmented nodes Created: 29/Apr/14  Updated: 14/Nov/17  Due: 13/Aug/14  Resolved: 11/Aug/14

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

Type: Improvement
Reporter: Abhishek Kumar Assignee: Jozef Gloncak
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


Issue Links:
Blocks
blocks CONTROLLER-288 Milestone: Runtime generation of REST... Resolved

 Description   

URLs for augmentation are not being generated.



 Comments   
Comment by Jozef Gloncak [ 13/Jun/14 ]

I started ODL distribution localy and connected to http://localhost:8080/apidoc/explore.

I navigated to section for
opendaylight-inventory,2013-08-19 which contained (except other) also following links for operations GET, POST, PUT, DELETE:

  • /config/opendaylight-inventory:nodes/node/ {id}/connected
    - /config/opendaylight-inventory:nodes/node/{id}

    /current-capability

  • /config/opendaylight-inventory:nodes/node/ {id}/initial-capability
    - /config/opendaylight-inventory:nodes/node/{id}

    /pass-through

Nodes connected, current-capability, initial-capability, pass-through are added to module opendaylight-inventory via augment in module netconf-node-inventory.

I can't see problem as was specified by you.

Can you be more concrete?

Comment by Devin Avery [ 13/Jun/14 ]

If this came from one of my suggestions then I was suggesting that we indicate which attributes / containers etc were provided by a base yang file, and which are those that were provided by an augmentation. That way a user could look at inventory/nodes and see what (and possibly where) all of the extra stuff (metrics, tables, flows etc) come from.

Comment by Jozef Gloncak [ 03/Jul/14 ]

Does it mean that the target of this enhancement is only to distinguish generated links for augmentation and for other YANG elements?

Comment by Jozef Gloncak [ 15/Jul/14 ]

patch set proposed
https://git.opendaylight.org/gerrit/#/c/9014/

new behavior:
All nodes and their child contains also information about module from
which they comes from (module_name:node_name)

Comment by Jozef Gloncak [ 15/Jul/14 ]

patch set 3

new behavior:
if node has the same namespace and revision as top level module (isn't added via augmentation) then it is written without module: prefix.

Comment by Jozef Gloncak [ 15/Jul/14 ]

it wasn't possible to build patch set. It seems that error is in other project.

Comment by Jozef Gloncak [ 31/Jul/14 ]

patch set 5 (rebased)
https://git.opendaylight.org/gerrit/#/c/9014/

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