[NETCONF-57] Extend sal-netconf-connector base schema context to include ietf-netconf-notifications Created: 06/Aug/15 Updated: 15/Mar/19 Resolved: 12/Feb/16 |
|
| Status: | Resolved |
| Project: | netconf |
| Component/s: | netconf |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Tomas Cere | Assignee: | Andrej Mak |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 4100 |
| Priority: | Normal |
| Description |
|
sal-netconf-connector has a base schema context that has base netconf schemas in case a device does not provide these, but no ietf-netconf-notificatons. This would be a nice addition, since we already encountered devices that do not provide this schema. |
| Comments |
| Comment by Rashmi Tomer [ 21/Oct/15 ] |
|
Hi, I was going through this bug to fix same. Are you looking for the addition of all notifications as defined in "ietf-netconf-notifications" module, in the existing augmentation of odl-sal-netconf-connector-cfg.yang ? Thanks |
| Comment by Tomas Cere [ 21/Oct/15 ] |
|
Hi, base schema context is built here: https://github.com/opendaylight/netconf/blob/c84df3c3b3ccd14022c4e452eedcd9c54c8c928e/opendaylight/netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/NetconfDevice.java#L78-L84 you should be able to just add it in the same way as ietf-netconf, you would just use the generated $YangModuleInfoImpl for the ietf-netconf-notifications binding. Tomas |
| Comment by Rashmi Tomer [ 30/Oct/15 ] |
|
Hi, I have pushed in the patch in. Here is the link : Thanks, |
| Comment by Maros Marsalek [ 02/Nov/15 ] |
|
The fix should be ported to lithium as well. Also I think the schema should only be included if the device exposes standard notification capability. |
| Comment by Rashmi Tomer [ 24/Dec/15 ] |
|
Patch 3 submitted on the link below, so that the schema should only be included if the device exposes standard notification capability. https://git.opendaylight.org/gerrit/#/c/28935/ I have created another context INIT_SCHEMA_CTX_WITH_IETF_NOTIFICATION for above scenario and it will be loaded only when the device have isNotificationsSupported true, when onRemoteSessionUp is invoked. Please review it and let me know if the approach is fine or suggest me to make it better. |
| Comment by Tomas Cere [ 12/Feb/16 ] |