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