commit | 01df848613b3473006e89f6c4460d6ab78bca59d | [log] [tgz] |
---|---|---|
author | Tomáš Pecka <tomas.pecka@fit.cvut.cz> | Wed Jan 13 18:04:19 2021 +0100 |
committer | Jan Kundrát <kundrat@cesnet.cz> | Tue Jan 19 20:05:17 2021 +0100 |
tree | 82f3d6e0731b3c3c9b55490dd26739776a27c5fd | |
parent | 311380736b0e4bdc095c879be79e2baed7ef66d1 [diff] [blame] |
yang: Install ietf-system YANG module velia now implements ietf-system YANG module [1]. Therefore we have to install it in our devices too. [1] https://tools.ietf.org/html/rfc7317 Change-Id: I4c830315bf75fa347111e2b1b1ddd8fe68b9de9e Depends-on: https://cesnet-gerrit-czechlight/c/CzechLight/velia/+/3379 Depends-on: https://cesnet-gerrit-public/c/CzechLight/velia/+/3379 Depends-on: https://gerrit.cesnet.cz/c/CzechLight/velia/+/3379
diff --git a/package/cla-sysrepo/czechlight-install-yang.sh b/package/cla-sysrepo/czechlight-install-yang.sh index 46191db..0cd93f3 100755 --- a/package/cla-sysrepo/czechlight-install-yang.sh +++ b/package/cla-sysrepo/czechlight-install-yang.sh
@@ -90,6 +90,11 @@ sysrepocfg --datastore=startup --format=json --module=czechlight-calibration-device --import="${YANG_DIR}/${CZECHLIGHT}.json" fi +if [[ ! -f ${REPO}/ietf-system@2014-08-06.yang ]]; then + sysrepoctl --search-dirs /usr/share/velia/yang --install /usr/share/velia/yang/ietf-system@2014-08-06.yang + sysrepoctl --change ietf-system --permissions 0664 --apply +fi + if [[ ! -f ${REPO}/czechlight-lldp@2020-11-04.yang ]]; then if compgen -G "${REPO}/czechlight-lldp@*.yang" >/dev/null; then sysrepoctl --search-dirs /usr/share/lldp-systemd-networkd-sysrepo/yang --update /usr/share/lldp-systemd-networkd-sysrepo/yang/czechlight-lldp@2020-11-04.yang