test yangmodels, filter mpls-ldp yang models due to bug(again)

This commit is contained in:
Olof hagsand 2022-03-28 15:33:14 +02:00
parent fb86285984
commit 8d5694cc1c
2 changed files with 5 additions and 4 deletions

View file

@ -26,7 +26,7 @@ fi
# OPENCONFIG dir has a small number of extra yangs apart from OCDIR # OPENCONFIG dir has a small number of extra yangs apart from OCDIR
OCDIR=$OPENCONFIG/release/models OCDIR=$OPENCONFIG/release/models
files=$(find ${OPENCONFIG} -name "*.yang") files=$(find ${OPENCONFIG} -type f -name "*.yang")
# Count nr of modules (exclude submodule) Assume "module" or "submodule" # Count nr of modules (exclude submodule) Assume "module" or "submodule"
# first word on first line # first word on first line

View file

@ -41,15 +41,16 @@ cat <<EOF > $cfg
EOF EOF
# Standard IETF # Standard IETF
files=$(find ${YANG_STANDARD_DIR}/ietf/RFC -name "*.yang") files=$(find ${YANG_STANDARD_DIR}/ietf/RFC -type f -name "*.yang")
for f in $files; do for f in $files; do
if [ -n "$(head -1 $f|grep '^module')" ]; then if [ -n "$(head -1 $f|grep '^module')" ]; then
# Mask old revision # Mask old revision
if [ $f = ${YANG_STANDARD_DIR}/ietf/RFC/ietf-mpls-ldp@2022-03-14.yang ]; then if [ $f = ${YANG_STANDARD_DIR}/ietf/RFC/ietf-mpls-ldp@2022-03-14.yang -o $f = ${YANG_STANDARD_DIR}/ietf/RFC/ietf-mpls-ldp-extended@2022-03-14.yang ]; then
echo "FOOOOO"
# XXX xpath parse error: new (..) # XXX xpath parse error: new (..)
continue; continue;
fi fi
if [ $f == ${YANG_STANDARD_DIR}/ietf/RFC/ietf-yang-types@2010-09-24.yang ]; then if [ $f = ${YANG_STANDARD_DIR}/ietf/RFC/ietf-yang-types@2010-09-24.yang ]; then
continue; continue;
fi fi
new "$clixon_cli -D $DBG -1f $cfg -y $f show version" new "$clixon_cli -D $DBG -1f $cfg -y $f show version"