lighty icon indicating copy to clipboard operation
lighty copied to clipboard

Lighty Registration to Netconf Server fails

Open guraybaydur opened this issue 2 years ago • 3 comments

Describe the bug I am using 3gpp yang models link and when I boot up an example netconf server with those yang files, lighty gives errors although the netconf server seems connected.

Branch lighty.io branch 16.x

To Reproduce Steps to reproduce the behavior:

  1. Clone lighty repo
  2. git checkout 16.x
  3. cd lighty
  4. build the project using mvn clean install
  5. go to target directory cd lighty-examples/lighty-community-restconf-netconf-app/target
  6. unzip example application bundle unzip lighty-community-restconf-netconf-app-16.1.0-SNAPSHOT-bin.zip
  7. go to unzipped application directory cd lighty-community-restconf-netconf-app-16.1.0-SNAPSHOT
  8. start controller example controller application java -jar lighty-community-restconf-netconf-app-16.1.0-SNAPSHOT.jar
  9. Register netconf server to lighty using localhost from Postman
  10. See the error

Expected behavior No error logs need to be observed in lighty logs. But encountered errors. Error logs can be seen in https://github.com/guraybaydur/lighty-error-repo/blob/main/lighty_logs

Screenshots errorlighty

image

Environment (please complete the following information):

  • OS: Linux ubuntu 5.13.0-44-generic 49~20.04.1-Ubuntu SMP Wed May 18 18:44:28 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
  • Java Version openjdk version "11.0.15" 2022-04-19
  • Maven version Apache Maven 3.6.3 Maven home: /usr/share/maven Java version: 11.0.15, vendor: Private Build, runtime: /usr/lib/jvm/java-11-openjdk-amd64 Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "5.13.0-44-generic", arch: "amd64", family: "unix"

guraybaydur avatar Jun 03 '22 15:06 guraybaydur

Hi, you have probably hit the: https://jira.opendaylight.org/browse/YANGTOOLS-1436 issue.

ihrasko avatar Jun 07 '22 11:06 ihrasko

Hi, @ihrasko

You are probably right I converted type leafref to type string in a leaf and error for that leaf is gone.

So need to wait for this issue is solved right?

BR Güray

guraybaydur avatar Jun 13 '22 09:06 guraybaydur

Yes, need to wait for the issue to be solved. When available we will bump to fixed version as soon as possible.

ihrasko avatar Jun 14 '22 11:06 ihrasko

Hi @guraybaydur, the fix for https://jira.opendaylight.org/browse/YANGTOOLS-1436 is included in Lighty.io 16.2.0. Enjoy!

ihrasko avatar Sep 22 '22 11:09 ihrasko