blob: 1c48f2df1d9d1117b6f92f09c06a7cf8646c4726 [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
Jan Kundrát69580062017-05-23 19:29:29 +020013systemctl enable czechlight-roadm-v2
14systemctl start czechlight-roadm-v2
15
16systemctl enable netopeer2-server
17systemctl start netopeer2-server
18
Jan Kundrát6bb1adf2017-05-17 17:15:07 +020019echo 'cla-sysrepod --properties-log-level=5 --sr-bridge-log-level=5 --sysrepo-log-level=3 --driver=CL-ROADMv2 --port=/dev/ttyUSB0' >> ~/.ash_history