docker build
This commit is contained in:
parent
5a45eca301
commit
6366fc631e
6 changed files with 178 additions and 3 deletions
9
docker/start.sh
Executable file
9
docker/start.sh
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
# Script reads yang spec from stdin then start clicon_cli
|
||||
read -d $'\cd' -p "input yang spec(end with ^d). Or just ^d for default spec> " spec
|
||||
if [ "$spec" != "" ]; then
|
||||
echo "module datamodel{" > /usr/local/share/clicon_yang/yang/clicon_yang.yang
|
||||
echo $spec >> /usr/local/share/clicon_yang/yang/clicon_yang.yang
|
||||
echo "}" >> /usr/local/share/clicon_yang/yang/clicon_yang.yang
|
||||
fi
|
||||
clicon_cli -cf /usr/local/etc/clicon_yang.conf
|
||||
Loading…
Add table
Add a link
Reference in a new issue