SNMP frontend: changed default mibyang dir to /share/mib-yangs to be same as repo

Test: new prel test_snmp_ifmib.sh
This commit is contained in:
Olof hagsand 2022-05-17 20:23:15 +02:00
parent 14faf2b3f0
commit eb18a60d6c
4 changed files with 126 additions and 6 deletions

View file

@ -302,9 +302,9 @@ if test "$enable_netsnmp" = "yes"; then
# However, it is required by SNMP tests.
# To generate: for i in /usr/share/snmp/mibs/*; do smidump -f yang $i > `basename -s .txt $i`.yang; done
AC_ARG_WITH(mib-generated-yang-dir,
[AS_HELP_STRING([--with-mib-generated-yang-dir=DIR],[Directory of generated YANG specs (default: $prefix/share/mibyang)])],
[AS_HELP_STRING([--with-mib-generated-yang-dir=DIR],[Directory of generated YANG specs (default: $prefix/share/mib-yangs)])],
[MIB_GENERATED_YANG_DIR="$withval"],
[MIB_GENERATED_YANG_DIR="${prefix}/share/mibyang"]
[MIB_GENERATED_YANG_DIR="${prefix}/share/mib-yangs"]
)
AC_MSG_RESULT(Generated YANGs from MIB files are expected to be in ${MIB_GENERATED_YANG_DIR})
fi