[NETCONF-250] Allow over-ride of non-module capabilities Created: 05/Aug/16 Updated: 15/Mar/19 Resolved: 06/Mar/17 |
|
| Status: | Resolved |
| Project: | netconf |
| Component/s: | netconf |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | ||
| Reporter: | Brian Freeman | Assignee: | Miroslav Kovac |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Attachments: |
|
| Description |
|
We have encountered a device that does not advertise either :writable-running or :candidate capabilities even though it support writable-running. It would be useful to be able to specify the capability to use in the node configuration using something similar to yang-additional-capabilities to add or over ride the capabilities announced by the device. This is a situation where manual netconf can work around the bad hello capabilities exchange but the ODL netconf adaptor can not. Perhaps something like: <netconf-additional-capability> |
| Comments |
| Comment by Om Prakash [ 02/Sep/16 ] |
| Comment by Amandeep Singh Rattenpal [ 23/Sep/16 ] |
|
Hi All, I have investigate the Netconf device discovery and followed the below steps: 1. https://wiki.opendaylight.org/view/OpenDaylight_Controller:Config:Examples:Netconf 2.Inserted the patch into netconf project https://git.opendaylight.org/gerrit/#/c/44897/ 3. Installed feature: feature:install odl-restconf-all odl-mdsal-all odl-netconf-mdsal odl-netconf-connector-all Result: Failed to exchange yang with Cisco Switch. 4. From ODL controller got following logs: 2016-09-22 14:31:33,812 | INFO | config-pusher | ConfigPusherImpl | 136 - org.opendaylight.controller.config-persister-impl - 0.6.0.SNAPSHOT | Successfully pushed configuration snapshot 99-netconf-connector.xml(odl-netconf-connector-all,odl-netconf-connector-all) 2016-09-22 14:31:35,239 | WARN | sing-executor-10 | NetconfDevice | 305 - org.opendaylight.netconf.sal-netconf-connector - 1.5.0.SNAPSHOT | RemoteDevice{gaurav} : Attempting to build schema context from required sources java.lang.IllegalStateException: RemoteDevice{gaurav} : No more sources for schema context : Session terminated Session closed What should be the next step ? |
| Comment by Om Prakash [ 23/Sep/16 ] |
|
it seems that device don't support get-schema , so you need to side load those yang file of capability reported by the device in hello message. |
| Comment by Jakub Morvay [ 23/Sep/16 ] |
|
Yeah, I think Om is right. Please see https://wiki.opendaylight.org/view/OpenDaylight_Controller:Config:Examples:Netconf#Connecting_to_a_device_not_supporting_netconf_monitoring for more info. But anyway how is this related to this bug? |
| Comment by Amandeep Singh Rattenpal [ 27/Sep/16 ] |
|
Initially, We have encountered a device that does not advertise either :writable-running or :candidate capabilities even though it support writable-running. So we merged the updated patch to netconf project manually in our local system, after doing that we are getting this error. That's why my query related to this bug. |
| Comment by Jakub Morvay [ 27/Sep/16 ] |
|
Ok AmanDeep, If it is not confidential, can you please post here your device's configuration? Also, have you merged latest patchset? |
| Comment by Amandeep Singh Rattenpal [ 28/Sep/16 ] |
|
**Configurations ** <modules xmlns="urn:opendaylight:params:xml:ns:yang:controller:config"> </yang-module-capabilities>
|
| Comment by Jakub Morvay [ 29/Sep/16 ] |
|
Have you also put the ietf-inet-types model's yang schema into the ODL cache/schema folder? |
| Comment by Amandeep Singh Rattenpal [ 10/Oct/16 ] |
|
Yes we have included ietf-inet-types@2010-09-24.yang & ietf-inet-types@2013-07-15.yang. Moreover, The capabilities also added into 99-Configurations file. |
| Comment by Amandeep Singh Rattenpal [ 10/Oct/16 ] |
|
After adding the NonModuleCapabilities getting repository issues. Solved the repository issues and added the 99-netconf-connector.xml file into karaf target. Now, getting exception after installing netconf-connector-all feature. Please find the attached logs and other configuration files. |
| Comment by Amandeep Singh Rattenpal [ 10/Oct/16 ] |
|
Attachment Investigation.zip has been added with description: logs and configuration files |
| Comment by Jakub Morvay [ 12/Oct/16 ] |
|
Amandeep can you please try this with the newest patchset? I have fixed possible null pointer exception.. What exactly are these repository issues you are talking about and how have you fixed them? |
| Comment by Amandeep Singh Rattenpal [ 13/Oct/16 ] |
|
Repository issues are with netconf project. I was not able to build the project after adding non module capabilities. Initially, i skipped the test cases and build the project then with test cases. After changing in yang and build the project online able to solve the issues. Moreover, i will include the new patch and get back to you. Basically i am getting semantic errors after including 99-netconf-connector.xml. please look into that do i need to add more capabilities.? |
| Comment by Om Prakash [ 22/Jan/17 ] |
|
Hi Jakub, Please let me know if I need to do more on this defect . |
| Comment by Miroslav Kovac [ 21/Feb/17 ] |