[NETCONF-500] Oxygen: How should odl-restconf-nb-rfc8040 be used? Created: 16/Jan/18  Updated: 06/Sep/19  Resolved: 06/Sep/19

Status: Resolved
Project: netconf
Component/s: restconf-nb
Affects Version/s: None
Fix Version/s: Neon SR3, Magnesium, Sodium SR1

Type: Bug Priority: Medium
Reporter: Vratko Polak Assignee: Mario Abraham
Resolution: Done Votes: 0
Labels: pt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

When trying to check whether Draft18 bugs from Nitrogen are also present on Oxygen snapshot builds, I have found that every restconf URL I tried returns 404.

I have installed features odl-netconf-topology, odl-restconf-nb-rfc8040 and odl-mdsal-apidocs,
Looking into web.xml [0] I thought

$ curl -u admin:admin '127.0.0.1:8181/restconf/data/network-topology:network-topology' ;echo

would work, but it does not. I figured out how to use apidocs 

$ curl -u admin:admin '127.0.0.1:8181/apidoc/18/apis/network-topology(2013-10-21)' | less

Which lead me to

$ curl -u admin:admin '127.0.0.1:8181/restconf/18/data/network-topology:network-topology' ;echo

which also does not work. I have tried several URL permutations, I have also tried using PUT (in case topology-netconf does not exist for some reason) and various content query parameters.

I have even looked at netconf user guide [1], but that only talks about configuring netconf and uses draft02 URLs.

Is there some point I am missing (and is it documented anywhere)? Or is there a bug causing rfc8040 restconf to not start properly?

[0] https://github.com/opendaylight/netconf/blob/master/restconf/restconf-nb-rfc8040/src/main/resources/WEB-INF/web.xml
[1] http://docs.opendaylight.org/en/latest/user-guide/netconf-user-guide.html



 Comments   
Comment by Evan Zeller [ 20/Jan/18 ]

vrpolak Looks like rfc8040 is under the "rests/" endpoint (see Web-ContextPath in restconf-nb-rfc8040/pom.xml)

Comment by Vratko Polak [ 22/Jan/18 ]

Thanks, it did not occur to me to examine manifest (or pom).

I can confirm "rests" (instead of "restconf") works, for example:

$ curl -u admin:admin '127.0.0.1:8181/rests/data/network-topology:network-topology' ;echo

So this is now just a documentation bug.

Comment by Mario Abraham [ 15/Aug/19 ]

Updated user-guide.rst: https://git.opendaylight.org/gerrit/c/netconf/+/83611

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