vagrant script updates
This commit is contained in:
parent
2a84fb089f
commit
01002ab14a
2 changed files with 13 additions and 6 deletions
|
|
@ -288,7 +288,7 @@ $sshcmd ./clixon.sh $release $wwwuser ${with_restconf}
|
|||
# Tests require yangmodels and openconfig
|
||||
cat<<EOF > $dir/yangmodels.sh
|
||||
cd /usr/local/share
|
||||
mkdir yang
|
||||
test -d yang || mkdir yang
|
||||
cd yang
|
||||
git init
|
||||
git remote add -f origin https://github.com/YangModels/yang
|
||||
|
|
@ -296,11 +296,13 @@ git config core.sparseCheckout true
|
|||
echo "standard/" >> .git/info/sparse-checkout
|
||||
echo "experimental/" >> .git/info/sparse-checkout
|
||||
git pull origin master
|
||||
mkdir /usr/local/share/openconfig
|
||||
cd /usr/local/share/openconfig
|
||||
git clone https://github.com/openconfig/public
|
||||
# Patch yang syntax errors
|
||||
sed -i s/=\ olt\'/=\ \'olt\'/g /usr/local/share/yang/standard/ieee/published/802.3/ieee802-ethernet-pon.yang
|
||||
sed s/=\ olt\'/=\ \'olt\'/g /usr/local/share/yang/standard/ieee/published/802.3/ieee802-ethernet-pon.yang > ieee802-ethernet-pon2.yang
|
||||
mv ieee802-ethernet-pon2.yang /usr/local/share/yang/standard/ieee/published/802.3/ieee802-ethernet-pon.yang
|
||||
# openconfig
|
||||
cd /usr/local/share
|
||||
test -d openconfig || mkdir openconfig
|
||||
git clone https://github.com/openconfig/public
|
||||
EOF
|
||||
chmod 755 $dir/yangmodels.sh
|
||||
$scpcmd $dir/yangmodels.sh vagrant@127.0.0.1:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue