Since you are using the rfc8040 implementation of restconf, you need to use 
requests that conform to that rfc.

>From the examples you provided it seems like you are trying to use new 
>restconf implementation with requests for old(draft2) impl.

I have couple of netconf examples in a postman collection here:

https://www.getpostman.com/collections/3ce547d9d9b81dc340d0


For anything more advanced I'd suggest looking at 
https://tools.ietf.org/html/rfc8040 as there were many changes between the two 
versions.


Tomas

________________________________
From: Ajay Deep Singh <ajay.deep.si...@ericsson.com>
Sent: Tuesday, May 28, 2019 2:06:05 AM
To: netconf-...@lists.opendaylight.org; controller-dev@lists.opendaylight.org; 
mdsal-...@lists.opendaylight.org
Cc: Emmett Cox; Mariusz Sobucki
Subject: [netconf-dev] Help regarding Yang 1.1 actions on RestConf.


Hi Everyone,



I am facing  issue over Restconf for testing new code added by me to support 
Yang 1.1 Action please can someone help me out here.



I can find Old restconf implementation is mapped to /restconf, and new restconf 
implementation is mapped to /rests/data.



So I tried adding my simulated Node to Odl using below URI it didn’t work can 
someone highlight what am missing here, I have installed relevant features of 
restconf, netconf, mdsal still not even single end point in visible over Rest 
Api doc having 
http://{{odl_ip}}:8181/rests/data/<http://%7b%7bodl_ip%7d%7d:8181/rests/data/> 
in request URL as in pic below.


For example, mounted device using new RESTCONF with PUT operation in this way:
PUT 
:http://127.0.1:8181/rests/data/network-topology:network-topology/topology/topology-netconf/node/pnf-simulator
Adding KeyStore :
POST  : http://localhost:8181/rests/data/netconf-keystore:add-keystore-entry
Adding Private Key:
POST : http://localhost:8181/rests/data/netconf-keystore:add-private-key

None of the above Rest request were successful any guidance will be really 
helpful.



[cid:image002.jpg@01D514F1.856AA3D0]



Thanks for your time.

Regards,

Ajay
_______________________________________________
controller-dev mailing list
controller-dev@lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/controller-dev

Reply via email to