How to send a restconf request to a netconf device using device's yang by apidoc

asked 2015-03-19 02:08:02 -0800

anonymous user

Anonymous

updated 2015-03-19 02:10:09 -0800

I added the netconf device into ODL successfully and in its apidoc, I could fire restconf request which is automatically generated from device's yang files by ODL, to communicate with device by netconf messages. The method of GET and DELETE are successed but the POST and PUT are failed. The following is the POST error message:

2015-03-18 17:18:34,019 | DEBUG | /kkkk/meter-mef/ | ContainerResponse | 107 - com.sun.jersey.jersey-server - 1.17.0 | Mapped exception to response: 400 (Bad Request) org.opendaylight.controller.sal.restconf.impl.RestconfDocumentedException: errors: [error-type: protocol, error-tag: invalid-value, error-message: Data schema node was not found for bandwidth-profile]]

I'm not sure if the payload in the request message is specific or something else.

I'd like to know if there's some guide doc or instructions on this which I could follow. From log, I didn't see which class I could look into on this issue. Could you please show me the class who process the request.

Any suggestions or ideas are really appreciated.

edit retag flag offensive close merge delete