clicon / clixon

YANG-based toolchain including NETCONF and RESTCONF interfaces and an interactive CLI
http://www.clicon.org/
Other
216 stars 72 forks source link

No yang files found matching "ietf-ip" in the list of CLICON_YANG_DIRs #458

Open lxuechao opened 11 months ago

lxuechao commented 11 months ago

hello ,

I tried to hold onto it ./test_leafref.sh test script encountered this issue, and I found it in/clixon-6.3.0/example/main/ clixon-example@2020-12-01.yang Found ietf ip in, but executing make example install seems to have not been installed

${YANG_INSTALLDIR} $IETFRFC

I printed the values for these two, which are /usr/local/share/clixon and /usr/local/share/yang/standard/ietf/RFC, respectively

sudo ./test_leafref.sh Running test_leafref.sh Test 1(1) [test params: -f /var/tmp/./test_leafref.sh/conf_yang.xml] Test 2(2) [kill old backend] Test 3(3) [start backend -s init -f /var/tmp/./test_leafref.sh/conf_yang.xml] Oct 23 01:32:25: yang_parse_module: 1123: Yang error: No yang files found matching "ietf-ip" in the list of CLICON_YANG_DIRs when loading example.yang: No such file or directory Oct 23 01:32:25: clixon_backend: 89656 Terminated retval:-1

Error in Test3 [start backend -s init -f /var/tmp/./test_leafref.sh/conf_yang.xml]:

lxuechao commented 11 months ago

I checked and it seems that there is no second directory. Does this have any impact? If so, how do I get this directory? ls /usr/local/share/yang/standard/ietf/RFC ls: cannot access '/usr/local/share/yang/standard/ietf/RFC': No such file or directory

olofhagsand commented 11 months ago

I think the info you are looking for is here: https://github.com/clicon/clixon/blob/master/test/README.md#openconfig-and-yang