[NETCONF-126] netconf connector disconnects from device following failed SAL initialization Created: 13/Jan/16  Updated: 15/Mar/19  Resolved: 22/Jul/16

Status: Resolved
Project: netconf
Component/s: netconf
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Giles Heron Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issue Links:
Duplicate
duplicates NETCONF-232 Exclude flawed models from mount point Resolved
External issue ID: 4959

 Description   

when yangtools hits an error parsing a YANG model for a device then the netconf connector disconnects from the device:

2016-01-13 13:37:45,468 | ERROR | sing-executor-12 | NetconfDevice | 179 - org.opendaylight.controller.sal-netconf-connector - 1.2.4.SNAPSHOT | RemoteDevice

{xrvr-a}

: Initialization in sal failed, disconnecting from device
org.opendaylight.yangtools.yang.parser.util.YangParseException: Error in module 'Cisco-IOS-XR-ipv6-ospfv3-cfg' at line 1150: Can not add 'container exclude-interfaces' to 'container per-prefix' in module 'Cisco-IOS-XR-ipv6-ospfv3-cfg': node with same name already declared at line 1150
at org.opendaylight.yangtools.yang.parser.builder.util.AbstractDocumentedDataNodeContainerBuilder.checkIsPresent(AbstractDocumentedDataNodeContainerBuilder.java:122)[85:org.opendaylight.yangtools.yang-parser-impl:0.7.4.SNAPSHOT]

IMO it'd be better to continue mounting the device but to drop that one failed module.

there are cases where devices list "unavailable capabilities". Why isn't this just one of those?


Generated at Wed Feb 07 20:14:14 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.