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 | |
Jan Kundrát | 6958006 | 2017-05-23 19:29:29 +0200 | [diff] [blame^] | 13 | systemctl enable czechlight-roadm-v2 |
| 14 | systemctl start czechlight-roadm-v2 |
| 15 | |
| 16 | systemctl enable netopeer2-server |
| 17 | systemctl start netopeer2-server |
| 18 | |
Jan Kundrát | 6bb1adf | 2017-05-17 17:15:07 +0200 | [diff] [blame] | 19 | echo 'cla-sysrepod --properties-log-level=5 --sr-bridge-log-level=5 --sysrepo-log-level=3 --driver=CL-ROADMv2 --port=/dev/ttyUSB0' >> ~/.ash_history |