-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use local yangmodels/openconfig (if present) instead of github
- Loading branch information
1 parent
794a17c
commit 06d8e85
Showing
9 changed files
with
58 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
# Script to get openconfig, either from local installation, or from remote | ||
# This is an optimization from always getting it from github inside the dockerfile | ||
if [ -d openconfig ]; then | ||
rm -rf openconfig | ||
fi | ||
mkdir -p openconfig | ||
|
||
if [ -d /usr/local/share/openconfig ]; then | ||
cp -R /usr/local/share/openconfig openconfig/ | ||
else | ||
(cd openconfig && git clone https://github.com/openconfig/public) | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
# Script to get yangmodels, either from local installation, or from remote | ||
# This is an optimization from always getting it from github inside the dockerfile | ||
if [ -d yang ]; then | ||
rm -rf yang | ||
fi | ||
mkdir -p yang/standard | ||
if [ -d /usr/local/share/yang/standard ]; then | ||
cp -R /usr/local/share/yang/standard yang/ | ||
else | ||
cd yang | ||
git init | ||
git remote add -f origin https://github.com/YangModels/yang | ||
git config core.sparseCheckout true | ||
echo "standard/" >> .git/info/sparse-checkout | ||
echo "experimental/" >> .git/info/sparse-checkout | ||
git pull origin main | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters