[YANG error when poking on EOS configuration](https://github.com/clicon/clixon-controller/issues/26)

This commit is contained in:
Olof hagsand 2023-08-21 10:54:48 +02:00
parent d1b8dcdf1f
commit 0e81e8137b
6 changed files with 151 additions and 319 deletions

View file

@ -147,6 +147,7 @@ fi
# for some reason valgrind tests fail below?
if [ ${valgrindtest} -eq 0 ]; then # Error dont cleanup mem OK
# XXX there may be inconsistent YANGs in this dir
YANGDIR=$YANG_INSTALLDIR
if [ $BE -ne 0 ]; then
@ -157,7 +158,6 @@ new "wait backend"
wait_backend
new "Loop over all yangs in $YANGDIR"
for f in ${YANGDIR}/*.yang; do
b=$(basename $f)
id=$(echo "$b" | sed 's/.yang//' | sed 's/@.*//')