[CONTROLLER-796] Restconf issue in ODL with remote Netconf device Created: 09/Sep/14 Updated: 19/Oct/17 Resolved: 17/Sep/14 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | restconf |
| Affects Version/s: | Helium |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Ankit agarwal | Assignee: | Unassigned |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Linux |
||
| Attachments: |
|
| External issue ID: | 1767 |
| Description |
|
I am connecting to Remote Netconf Device and trying to make changes in configuration using ODL. My Netconf device does not expose schema so have added yang schemas in ODL local and connector xml file as yang module capability. When I try to use below Restconf url getting some exceptions, where m10schemanew is identifier for my device PUT method and input: exception stack trace : Added in attached first issue.txt file in second point Even though both the above url used to work in older version of ODL. Please help me out to resolve this issue. |
| Comments |
| Comment by Ankit agarwal [ 09/Sep/14 ] |
|
Attachment first issue .txt has been added with description: Exception Stack Trace for both Issues |
| Comment by Tony Tkacik [ 10/Sep/14 ] |
|
Could you please investigate how correct Netconf request for your device look like? ODL sended get request like this: <rpc message-id="m-6" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> Where filter <configuration xmlns="http://xml.juniper.net/xnm/1.1/xnm"/> This means your model configuration has top level container configuration. Netconf device reported back <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:junos="http://xml.juniper.net/junos/14.2I0/junos" message-id="m-6"> So it seems Since I do not know implementation of Netconf device neither YANG model, COuld you try to do only GET http://localhost:8080/restconf/operational/opendaylight-inventory:nodes/node/m10schemanew/yang-ext:mount/ |
| Comment by Ankit agarwal [ 10/Sep/14 ] |
|
Correct netconf request for my device is as follows, <rpc message-id="m-0" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> Yes my device has top level container configuration and I have added yang schema source in cache/schema folder and in connector xml as yang-module-capability. I already did try this operational url and logs for the same are there in attached file with first point Exception Stack trace for first issue Same device is working fine with older version of ODL but latest one has issues |
| Comment by Ankit agarwal [ 10/Sep/14 ] |
|
Correction in above information is as follows Correct netconf request for my device is as follows, <rpc message-id="m-0" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> |
| Comment by Tony Tkacik [ 12/Sep/14 ] |
|
Does request <rpc message-id="m-0" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> Works for you? Because examples you showed are one level nested (equivalent of http://localhost:8080/restconf/config/opendaylight-inventory:nodes/node/m10schemanew/yang-ext:mount/configuration:configuration/system ). |
| Comment by Ankit agarwal [ 12/Sep/14 ] |
|
Hi Tony, Thanks for time. |