PANTHEONtech / lighty-netconf-simulator

lighty.io NETCONF device simulators and libraries
Eclipse Public License 1.0
29 stars 17 forks source link

Fix wrong format when creating schema from module #113

Closed Tobianas closed 1 year ago

Tobianas commented 1 year ago

Setting format as SchemaFormat has caused Lighty not to receive schema models from device properly. The cause was that this condition inside netconf used by Lighty was always true due to not using YANG format:

https://github.com/opendaylight/netconf/blob/798a05a2d099fd66040bf3b10635afaec9b3b7d4/netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/NetconfStateSchemas.java#L279

The device sent SchemaFormat format which caused this method to always return Optional.empty().

JIRA: LIGHTY-97

ihrasko commented 1 year ago

Fix: https://github.com/PANTHEONtech/lighty-netconf-simulator/issues/112