Ask is moving to Stack Overflow and! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode


Issue in getting Netconf device configuration using restconf

asked 2014-09-26 02:43:13 -0800

ankit21a gravatar image

Hi, I am using restconf to access my netconf server , using this url http://localhost:8080/restconf/config/opendaylight-inventory:nodes/node/m10schemanew/yang-ext:mount/configuration:configuration/system/host-name

using this url to get the configuration of my Netconf server but getting exception <errors xmlns="urn:ietf:params:xml:ns:yang:ietf-restconf"> <error> <error-type>protocol</error-type> <error-tag>invalid-value</error-tag> <error-message>URI has bad format. Node "host-name" must be Container or List yang type.</error-message> </error> </errors>

Can anybody help me on this?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-09-26 03:33:33 -0800

Hi, as you can see in the error message the last element in URI must be either list or container. You can find definition of "host-name" in your yang model. Interesting reading -

edit flag offensive delete publish link more


Yes definition is already there in my yang model.I want to check the value of host-name using restconf. and the url you shared in last line does not have anything.

ankit21a ( 2014-10-01 09:26:15 -0800 )edit
Login/Signup to Answer

Question Tools



Asked: 2014-09-26 02:43:13 -0800

Seen: 575 times

Last updated: Sep 26 '14