Jan Kundrát | 6bb1adf | 2017-05-17 17:15:07 +0200 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | |
| 3 | set -eux -o pipefail |
| 4 | shopt -s failglob |
| 5 | |
| 6 | for DIR in /etc/yang-setup/*; do |
| 7 | ${DIR}/install-yang.sh |
| 8 | done |
| 9 | |
| 10 | sysrepoctl --install --search-dir /usr/share/cla-sysrepo/yang --yang /usr/share/cla-sysrepo/yang/czechlight-roadm-v2.yang |
| 11 | sysrepocfg --datastore=startup --import=/usr/share/cla-sysrepo/yang/czechlight-roadm-v2.startup.xml czechlight-roadm-v2 |
| 12 | |
| 13 | echo 'cla-sysrepod --properties-log-level=5 --sr-bridge-log-level=5 --sysrepo-log-level=3 --driver=CL-ROADMv2 --port=/dev/ttyUSB0' >> ~/.ash_history |