Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to latest ydk-gen of Cisco #8

Merged
merged 234 commits into from
Jul 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
234 commits
Select commit Hold shift + click to select a range
42f4cbd
Merge pull request #3 from ygorelik/0.8.3
ygorelik Jun 14, 2019
95122c2
Merge remote-tracking branch 'origin' into 0.8.4
Jun 23, 2019
d7fefca
Merge branch '0.8.4' of https://github.com/ygorelik/ydk-gen into 0.8.4
Jun 23, 2019
fb9c5ab
Merge branch '0.8.4' of https://github.com/ygorelik/ydk-gen into 0.8.4
Jul 18, 2019
6c9decb
Merge branch '0.8.4' of https://github.com/ygorelik/ydk-gen into 0.8.4
Aug 9, 2019
d760844
Fixed bug in extracting module name from namespace
ygorelik Oct 25, 2019
de5bf17
Merge branch '0.8.4' of https://github.com/ygorelik/ydk-gen into 0.8.4
Oct 26, 2019
e029085
Merge pull request #6 from ygorelik/0.8.4
ygorelik Oct 30, 2019
446a14e
Added distribution packages in GitHub
ygorelik Oct 30, 2019
bf5ddc8
Added distribution packages for Ubuntu/xenial on GitHub
ygorelik Oct 30, 2019
b085c08
Merge branch '0.8.4.post1' of https://github.com/ygorelik/ydk-gen int…
ygorelik Oct 30, 2019
46e656d
Added distribution packages for Centos to GitHub
Oct 22, 2019
4b00600
Added distributables for darwin to GitHub
ygorelik Oct 30, 2019
a0bf284
In Entity class Added method to clone current entity instance
ygorelik Nov 14, 2019
09f0bf0
Merge remote-tracking branch 'upstream/master' into 0.8.4.post1
ygorelik Nov 14, 2019
821de04
Merge remote-tracking branch 'origin/0.8.4.post1' into 0.8.4.post1
ygorelik Nov 14, 2019
9995e9e
In Entity class Added method to clone current entity instance
ygorelik Nov 14, 2019
0ac3d1a
Added shortcut operator to set yfilter value in YLeaf and YLeafList i…
ygorelik Nov 14, 2019
256f3d0
Fixing Travis test for gNMI
ygorelik Nov 14, 2019
9111b22
Implemented Entity clone in Go (enh. #967)
ygorelik Nov 19, 2019
9975a04
Fixing Travis test
ygorelik Nov 20, 2019
c71336f
Resolved issue #968
ygorelik Nov 24, 2019
00afa44
Merge branch '0.8.4.post1' of https://github.com/ygorelik/ydk-gen int…
Nov 26, 2019
c422769
Addressed few Codacy issues
ygorelik Nov 28, 2019
0121fdb
Merge pull request #7 from ygorelik/0.8.4.post1
ygorelik Nov 30, 2019
42505cd
Addressed documentation issue #971
ygorelik Dec 6, 2019
06f0977
Fixed bug in gNMI set RPC processing
ygorelik Dec 10, 2019
b2ea216
Merge branch '0.8.4.post1' of https://github.com/ygorelik/ydk-gen int…
Dec 11, 2019
a6dc1da
Corrected documentation of YDK raised exceptions
ygorelik Dec 14, 2019
af672f2
Resolved issue #978, implemented enhancement 894
ygorelik Dec 20, 2019
f3b8fd1
Resolved issue #980
ygorelik Dec 20, 2019
f1a087c
Fixing Travis test for MacOSX
ygorelik Dec 21, 2019
4a986ec
Merge branch '0.8.4.post1' of https://github.com/ygorelik/ydk-gen int…
Jan 3, 2020
4bee560
Resolved GitHub issue #983
ygorelik Jan 9, 2020
b46ff0f
Updated bundle for XR-6.6.2 (post1)
ygorelik Apr 16, 2020
3f537e3
Upgraded GitPython package to version 2.1.15 due to Travis failure
ygorelik Apr 17, 2020
d96d5d8
Upgraded openconfig bundle to version dated 2019-06-21
ygorelik May 16, 2020
f41227d
Resolved github issue #996
ygorelik May 16, 2020
f9b7a0a
Resolved github issue #996
ygorelik May 16, 2020
05f2527
Corrected error message
ygorelik May 25, 2020
a2799a5
Fixed bug in previous commit
ygorelik May 26, 2020
259c120
Fixed GitHub issue #997
ygorelik May 26, 2020
bf4d8cc
Resolved GitHub issue #969
ygorelik Jun 2, 2020
ef8291c
Bumped version to 0.8.5
ygorelik Jun 2, 2020
a9e51f2
Initial development of install_ydk script
ygorelik Jun 10, 2020
4aec4bb
Merge branch '0.8.4.post1' of https://github.com/ygorelik/ydk-gen int…
ygorelik Jun 10, 2020
3cf5417
Made corrections for Travis run
ygorelik Jun 10, 2020
e3e07e5
Fixing Travis run
ygorelik Jun 10, 2020
89038e5
Adjusted YDK installation script for CentOS
Jun 11, 2020
e718bf2
Added support for ubuntu:focal (20.04 LTS)
Jun 13, 2020
3476c4d
Added deployment packages for ubuntu:xenial
ygorelik Jun 13, 2020
edc61be
Fixing Travis run for xenial
ygorelik Jun 13, 2020
c682af7
Corrected Dockerfile to include golang packages
ygorelik Jun 15, 2020
0541bfd
Merge branch '0.8.4.post1' of https://github.com/ygorelik/ydk-gen int…
ygorelik Jun 15, 2020
119ecd7
Bumped YDK version to 0.8.5
ygorelik Jun 16, 2020
1d62797
Added documentation for missing 'initialize' method
ygorelik Jun 18, 2020
b422783
Added unit test for XmlSubtreeCodec on user defined repository
ygorelik Jun 18, 2020
b39f02c
Adressed some issues related to installation on CentOS
ygorelik Jun 18, 2020
3e3fdd8
Added deployment core packages for CentOS-7
ygorelik Jun 18, 2020
598b113
Added disclaimer on 0.8.5 modified files
ygorelik Jun 19, 2020
160b6d8
Corrected debug statement
ygorelik Jun 28, 2020
72bd2d7
Added test cases for reading on single container
ygorelik Jun 28, 2020
41c4b51
Corrected license comment
ygorelik Jun 28, 2020
9be3197
Resolved GitHub issues #1003, #1005, #1006
ygorelik Jul 3, 2020
11ddd1c
Merge branch '0.8.5' of https://github.com/ygorelik/ydk-gen into 0.8.5
ygorelik Jul 3, 2020
acf8ec1
Updated YDK core deployment packages for Ubuntu xenial and bionic
ygorelik Jul 4, 2020
2871eb2
Merge branch '0.8.5' of https://github.com/ygorelik/ydk-gen into 0.8.5
ygorelik Jul 6, 2020
ac48a1a
Updated YDK core and gNMI libraries for CentOS-7
ygorelik Jul 6, 2020
e8ea22f
Update CONTRIBUTIONS.md with license details
111pontes Jul 7, 2020
a1de2ad
Merge pull request #1008 from 111pontes/contrib
111pontes Jul 7, 2020
486f068
Update .gitignore
111pontes Jul 7, 2020
cd52764
Merge pull request #1009 from 111pontes/master
111pontes Jul 7, 2020
a07af94
Added YDK core and gNMI deployment packages for OSX
ygorelik Jul 13, 2020
35313aa
Merge branch '0.8.5' of https://github.com/ygorelik/ydk-gen into 0.8.5
ygorelik Jul 13, 2020
e989df6
Added new options in install_ydk script
ygorelik Jul 13, 2020
7fd13ac
Merge branch '0.8.5' of https://github.com/ygorelik/ydk-gen into 0.8.5
ygorelik Jul 13, 2020
0ef7bad
Update YDK version for XR 6.6.3 bundle
111pontes Jul 13, 2020
23d503b
Merge pull request #1014 from 111pontes/xr-6.6.3.post1
111pontes Jul 13, 2020
7d33d4f
Added C++ test cases for path::Codec with no service provider
ygorelik Jul 13, 2020
102b60a
Added use case for deleting entire list
ygorelik Jul 13, 2020
237c9be
Added capability for Restconf to work with HTTPS protocol (initial co…
ygorelik Jul 13, 2020
e411c71
Some documentation changes for YDK-0.8.5
ygorelik Jul 13, 2020
aa59850
Partially addressed issue #917 (HTTPS support for Restconf)
ygorelik Jul 16, 2020
b05bcbd
Resolved GitHub issues #1012 ans #1013
ygorelik Jul 16, 2020
27be1c2
Corrected documentation pertaining release 0.8.5
ygorelik Jul 16, 2020
1b43a3e
Merge CiscoDevNet into ygorelik/master
ygorelik Jul 18, 2020
cdba86f
Merge branch 'master' into 0.8.5
ygorelik Jul 18, 2020
49d6b28
Merge pull request #8 from ygorelik/0.8.5
ygorelik Jul 18, 2020
6c48156
Removed binary artifacts
ygorelik Jul 18, 2020
79480ca
Fixing Travis test
ygorelik Jul 18, 2020
9f98fcc
Fixing Travis test
ygorelik Jul 19, 2020
3e2dca8
Changed bundle backward compatibility test to YDK-0.7.3
ygorelik Jul 19, 2020
2acb50c
Fixing bundle backward compatibility test
ygorelik Jul 19, 2020
afe7c67
Enabled Travis test on CentOS-7 docker
ygorelik Jul 19, 2020
3f1d49a
Restored artifacts to 0.8.5
ygorelik Jul 20, 2020
1ffc491
Lowered version of go testify version
ygorelik Jul 20, 2020
cddf6e2
Lowered version of go testify version
ygorelik Jul 20, 2020
5ba92b1
Updated artifacts for OSX
ygorelik Jul 20, 2020
b93fed1
Updated artifacts for ubuntu:xenial
ygorelik Jul 20, 2020
23b8af1
Updated artifacts for CentOS-7
ygorelik Jul 20, 2020
11fe46d
Merge pull request #1016 from ygorelik/master
111pontes Jul 21, 2020
b45ef5e
Update travis testing for Ubuntu
111pontes Jul 21, 2020
2d0c87c
Merge pull request #1018 from 111pontes/travis-update
111pontes Jul 22, 2020
aa5a0d9
Merge branch '0.8.5' of https://github.com/ygorelik/ydk-gen into orig…
Aug 10, 2020
3618cb8
Fixed few bugs in C++ code
Aug 11, 2020
f237147
Merge pull request #9 from ygorelik/origin/0.8.5
ygorelik Aug 22, 2020
2a3ed8d
Resolved issue #1021
ygorelik Aug 26, 2020
8fe455a
added github based online documentation
ygorelik Sep 13, 2020
73b1e52
Added support for Centos 8 #1019
ygorelik Sep 19, 2020
99a2dc6
Resolved issue #1024
ygorelik Sep 19, 2020
d8f85fe
Added support for Centos 8 #1019
ygorelik Sep 19, 2020
7096e30
Fixing Travis test for Centos 8
ygorelik Sep 19, 2020
b4d3f1b
Fixing Travis test for Centos 8
ygorelik Sep 19, 2020
3240905
Fixing Travis test for Centos 8
ygorelik Sep 22, 2020
014771a
Fixing Travis test for Centos 8
ygorelik Sep 22, 2020
7fddbe8
Fixing Travis test for Centos 8
ygorelik Sep 22, 2020
6bed4d1
Added support for Ubuntu:focal
Sep 25, 2020
d23b61b
Fixing Travis test for Ubuntu:focal
ygorelik Sep 25, 2020
ff2de33
Fixing Travis tests for ubuntu:focal
ygorelik Sep 27, 2020
9347316
Fixing Travis tests for ubuntu:focal
ygorelik Sep 28, 2020
e0c9e61
Fixing Travis test for ubuntu:focal
ygorelik Sep 29, 2020
a0837c2
Fixing Travis test for ubuntu:focal
ygorelik Sep 30, 2020
3cdd55d
Fixing Travis test for ubuntu:focal
ygorelik Sep 30, 2020
e0bc83c
Fixing Travis test for ubuntu:focal
ygorelik Sep 30, 2020
4ded8d1
Fixing Travis test for ubuntu:focal
ygorelik Sep 30, 2020
2f2344c
Improving unit tests for Mac OS Mojave
ygorelik Oct 12, 2020
b22f928
Improving unit tests for Mac OS Mojave
ygorelik Oct 12, 2020
4258d0b
Added unit test for issue #1026
ygorelik Oct 31, 2020
248836f
Added test case after fixing #1026 in Libyang
ygorelik Nov 2, 2020
2c53f5d
Corrected YDK service classes initialization issue for python
ygorelik Nov 3, 2020
7108c23
Resolved issues #1026 and #1032
ygorelik Nov 13, 2020
bc8ca7a
Merge branch 'master' into 0.8.5
ygorelik Nov 13, 2020
ad71284
Merge pull request #10 from ygorelik/0.8.5
ygorelik Nov 13, 2020
3cb378a
Updated 0.8.5 documentation
ygorelik Nov 13, 2020
8a556c8
Resolved issue #1036
ygorelik Dec 12, 2020
b1a8a1c
Resolved issue #1035
ygorelik Dec 12, 2020
0fb26e5
Correcting Travis tests
ygorelik Dec 15, 2020
cfc7b8b
Fixing Travis tests
ygorelik Dec 15, 2020
7ab9612
Fixing deviation tests
ygorelik Dec 18, 2020
a056b39
Fixed confd setting for deviation tests
ygorelik Dec 23, 2020
a31dcae
Addressed memory leak issue in Executor Service unit tests
ygorelik Jan 8, 2021
f044f36
Implemented enhancement #1007
ygorelik Jan 11, 2021
7038846
Bumped version to 0.8.5.post1
ygorelik Jan 11, 2021
a9ecdbd
Additional code changes for enhancement #1007
ygorelik Jan 11, 2021
fb1581e
Added installation of flex and bison for CentOS platform
ygorelik Jan 12, 2021
a1452d1
Inforced use of pybind11 v2.2.2
ygorelik Jan 16, 2021
f93264f
Corrected test scripts to work with confd version 7.3
ygorelik Jan 27, 2021
aaf2113
Improved test scripts
ygorelik Feb 18, 2021
ad0e57a
Fixed bug in the bundle generator
ygorelik Apr 15, 2021
a11c317
Fixed decoding of leaf-list in XMLSubtreeCodec
ygorelik Apr 15, 2021
4886d81
Bumped build version to 2
ygorelik Apr 23, 2021
5d673dc
Added unit test case for issue #1045
ygorelik Apr 23, 2021
07b3edd
Corrected installation of curl and libcurl for ubuntu:focal
Apr 28, 2021
b497093
Corrected documentation for release 0.8.5.2
ygorelik May 1, 2021
afa0c89
Corrected documentation for release 0.8.5.2
ygorelik May 1, 2021
0a223ed
Resolved issue #1049
ygorelik May 6, 2021
5299b11
Fixed memory leak issue
ygorelik Jun 1, 2021
65c9cd9
Added unit test for issue #635
ygorelik Aug 4, 2021
1dd1503
Merge branch 'master' of https://github.com/ygorelik/ydk-gen
ygorelik Aug 4, 2021
46900df
Fixing issue 053
ygorelik Aug 7, 2021
ac4c694
Created Go wrapper for NetconfSession, added Path API unit tests, #779
ygorelik Aug 7, 2021
3407ed8
Created Go wrappdded Path API unit tests, #779
ygorelik Aug 7, 2021
c91f91a
Resolved GitHub issue #1053
ygorelik Aug 9, 2021
52d18b4
Enabled all CRUD tests related to deleting of list and leaf-list
ygorelik Aug 11, 2021
0c2a8ff
Added unit tests and documentation for Path API in Go
ygorelik Aug 12, 2021
7ac01be
Bumped version to 0.8.5.3 (0.8.5.post3 for python)
ygorelik Aug 13, 2021
5a81ed0
Generated docs. Changed Puthon package version to 0.8.5.3.
ygorelik Aug 16, 2021
25b09a4
Corrected Copyright statement
ygorelik Aug 16, 2021
39cc8e6
Merge branch 'master' of https://github.com/ygorelik/ydk-gen
ygorelik Aug 16, 2021
461c14d
Added support for RestconfSession in Go
ygorelik Aug 20, 2021
0427fb4
Merge branch 'master' of https://github.com/ygorelik/ydk-gen
ygorelik Aug 20, 2021
dca4e84
Added C++ documentation related to resolution of enhancement #779
ygorelik Aug 20, 2021
31f94ee
Corrected documentation related to enhancement #779
ygorelik Aug 20, 2021
995a965
Upgraded pyang version to 2.5.0
ygorelik Aug 31, 2021
c1b66eb
Upgraded pyang version to 2.5.0
ygorelik Aug 31, 2021
468c8fa
Dropped Python2 support in the code
ygorelik Sep 1, 2021
2b3f52e
Dropped Python2 support in the code (2)
ygorelik Sep 2, 2021
a215d11
Added bundle profiles to support newer versions of IETF OpenConfig an…
ygorelik Sep 3, 2021
6967c79
Added bundle profiles for IOS XR version 7.0.1 and 7.0.2
ygorelik Sep 23, 2021
91c782a
Added bundle profiles for IOS XR version 7.0.1 and 7.0.2
ygorelik Sep 23, 2021
e0b0d11
Added SSH support for NetconfServiceProvider in Go
ygorelik Sep 24, 2021
84825d8
Added SSH support for NetconfServiceProvider in Go
ygorelik Sep 26, 2021
fbd6a41
Added explicit setting of OnDemand flag in NetconfServiceProvider
ygorelik Sep 26, 2021
fbe1742
Fixed setting of OnDemand flag in NetconfSession in Go
ygorelik Sep 27, 2021
da25374
Solves nil pointer dereference
viardant Sep 28, 2021
f5d6810
Updated release documentation
ygorelik Sep 28, 2021
431f021
Bumped version to 0.8.6
ygorelik Sep 30, 2021
80cdfff
Implements requested changes
viardant Sep 30, 2021
0b74fea
Update types.go
ygorelik Sep 30, 2021
8f2ea64
Merge pull request #11 from viardant/patch-1
ygorelik Sep 30, 2021
ed232ff
Bumped version to 0.8.6.2
ygorelik Oct 7, 2021
94d24f1
Improving installation script
ygorelik Oct 24, 2021
65104ff
Improved installation script to allow use Python system installation
ygorelik Oct 27, 2021
8eff7a6
Fixed few profiles for ietf and cisco-ios-xr bundles
ygorelik Oct 31, 2021
2ba7e92
Fixed few profiles for ietf and cisco-ios-xr bundles
ygorelik Oct 31, 2021
76d858f
Merge branch 'master' of https://github.com/ygorelik/ydk-gen
ygorelik Oct 31, 2021
dce3d57
Reverted version to 0.8.6
ygorelik Oct 31, 2021
6923467
Reverted changes to comply with Python 3.5 syntax
ygorelik Oct 31, 2021
f4030a1
Restored damaged ydktest profile
ygorelik Oct 31, 2021
d0b34ef
Cleaned up older profiles
ygorelik Oct 31, 2021
f94869e
Changed script parameter '--no-py-venv' to '--no-venv'
ygorelik Nov 2, 2021
852cc3d
Fixed unit test script
ygorelik Nov 5, 2021
20f0a0d
Resolved issue #1034
ygorelik Nov 8, 2021
2abef42
Corrected documentation after fixing issue #1034
ygorelik Nov 9, 2021
08f2f88
Corrected unit tests for #1047 and #1048
ygorelik Nov 9, 2021
2c94f79
Merged with branch 0.8.6.2
ygorelik Nov 11, 2021
1973770
Corrected YDK core version requirement
ygorelik Nov 11, 2021
8bcc48a
Corrected YDK core version to 0.8.6.2
ygorelik Nov 11, 2021
178b90a
Addressed segmentation fault error
ygorelik Nov 21, 2021
b67935f
Corrected Codecy issues
ygorelik Jan 10, 2022
db3c651
Minor doc corrections
ygorelik Jan 10, 2022
db8b5e9
Made adjustments for installation on mac osx 11.6
Jan 28, 2022
d24f953
Added YDK demo. Mentioned added support for MacOS Big Sur
Feb 12, 2022
62e4cf6
Provided patch to ensure definition of constant SIGSTKSZ
Feb 22, 2022
3fbf33a
Patched catch.hpp for Linux distributions that do not define SIGSTKSZ
ygorelik Feb 26, 2022
6e787cf
Patched catch.hpp for Linux distributions that do not define SIGSTKSZ
ygorelik Feb 26, 2022
6d83298
Addressing GitHub issue #1059
ygorelik Mar 25, 2022
b9ed1f1
Addressing GitHub issue #1059
ygorelik Mar 25, 2022
9f3ce71
added demo profile and bundles for Cisco IOS XR
ygorelik Mar 25, 2022
5b00a03
Merge branch '0.8.6.2' of https://github.com/ygorelik/ydk-gen into 0.…
ygorelik Mar 25, 2022
e4594ae
Fixed unit test in Go for the issue 1059
ygorelik Mar 25, 2022
660851b
Renewed documentation for release 0.8.6.2
ygorelik Mar 25, 2022
8ba1520
Resolved issue #1059
ygorelik Mar 25, 2022
30884cf
Resolved issue #1056
ygorelik Mar 28, 2022
af82226
Merge pull request #13 from ygorelik/0.8.6.2
ygorelik Apr 1, 2022
e2171d6
Merge pull request #1060 from ygorelik/master
ygorelik Apr 1, 2022
1dba16f
Revert "ydkgen: run autopep8 on all ydkgen py files"
shmuelhazan Jul 10, 2022
e8189b0
Merge remote-tracking branch 'origin/master' into siklu-master
shmuelhazan Jul 10, 2022
a53b7a3
fixup
shmuelhazan Jul 10, 2022
0ea3afe
Close YList class with parenthethis
shmuelnatan Jul 11, 2022
3daf000
Remove one EncodingFormat from the two enums
shmuelnatan Jul 11, 2022
61369f8
Remove unused Entity* in resolve_leaf_value_namespace function in xml…
shmuelnatan Jul 11, 2022
d8c19df
Remove Entity from call to resolve_leaf_value_namespace function in x…
shmuelnatan Jul 11, 2022
0efa3ba
Remove errors.hpp.
shmuelnatan Jul 11, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.vscode
.idea/*
*.log
.settings/
Expand All @@ -15,10 +16,6 @@ coverage.xml
debug.log
netconf.log
protocol.log
myenv
py2env
py3env
venv/
gittmp*/
.DS_Store
gen-api/
Expand All @@ -31,11 +28,14 @@ sdk/cpp/gnmi/tests/main.cpp
sdk/python/core/ydk/models/ydktest
test/gnmi_client
yang/nxos*
yang-git
profiles/test/ydk-nxos*
confd*
grpc
protobuf-3.5.0
sdk/python/gnmi/build
sdk/python/gnmi/dist
sdk/python/gnmi/ydk_service_gnmi.egg-info
venv
.history
temp
50 changes: 23 additions & 27 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,27 @@ language: python

matrix:
include:
# - os: linux
# dist: trusty
# group: edge
- os: osx
osx_image: xcode8.3
language: generic
go: 1.9
- os: osx
env: GNMI=true
osx_image: xcode8.3
language: generic
go: 1.9
# - env: DOCKER=true OS_TYPE=centos OS_VERSION=centos7 PYTHON_VERSION=2.7
# - env: DOCKER=true OS_TYPE=centos OS_VERSION=centos7 PYTHON_VERSION=2.7 GNMI=true
- env: DOCKER=true OS_TYPE=centos OS_VERSION=centos7 PYTHON_VERSION=3.6
- env: DOCKER=true OS_TYPE=centos OS_VERSION=centos7 PYTHON_VERSION=3.6 GNMI=true
# - env: DOCKER=true OS_TYPE=ubuntu OS_VERSION=xenial PYTHON_VERSION=2.7
# - env: DOCKER=true OS_TYPE=ubuntu OS_VERSION=xenial PYTHON_VERSION=2.7 GNMI=true
- env: DOCKER=true OS_TYPE=ubuntu OS_VERSION=xenial PYTHON_VERSION=3.5
- env: DOCKER=true OS_TYPE=ubuntu OS_VERSION=xenial PYTHON_VERSION=3.5 GNMI=true
- env: DOCKER=true OS_TYPE=ubuntu OS_VERSION=bionic PYTHON_VERSION=2.7
- env: DOCKER=true OS_TYPE=ubuntu OS_VERSION=bionic PYTHON_VERSION=2.7 GNMI=true
# - os: osx
# osx_image: xcode8.3
# language: generic
# go: 1.13
# - os: osx
# env: GNMI=true
# osx_image: xcode8.3
# language: generic
# go: 1.13
# - env: DOCKER=true OS_TYPE=centos OS_VERSION=centos7 PYTHON_VERSION=3.6
# - env: DOCKER=true OS_TYPE=centos OS_VERSION=centos7 PYTHON_VERSION=3.6 GNMI=true
# - env: DOCKER=true OS_TYPE=centos OS_VERSION=centos8 PYTHON_VERSION=3.6
# - env: DOCKER=true OS_TYPE=centos OS_VERSION=centos8 PYTHON_VERSION=3.6 GNMI=true
# - env: DOCKER=true OS_TYPE=ubuntu OS_VERSION=xenial PYTHON_VERSION=3.5
# - env: DOCKER=true OS_TYPE=ubuntu OS_VERSION=xenial PYTHON_VERSION=3.5 GNMI=true
# - env: DOCKER=true OS_TYPE=ubuntu OS_VERSION=bionic PYTHON_VERSION=2.7
# - env: DOCKER=true OS_TYPE=ubuntu OS_VERSION=bionic PYTHON_VERSION=2.7 GNMI=true
- env: DOCKER=true OS_TYPE=ubuntu OS_VERSION=bionic PYTHON_VERSION=3
- env: DOCKER=true OS_TYPE=ubuntu OS_VERSION=bionic PYTHON_VERSION=3 GNMI=true
# - env: DOCKER=true OS_TYPE=ubuntu OS_VERSION=bionic PYTHON_VERSION=3 GNMI=true
# - env: DOCKER=true OS_TYPE=ubuntu OS_VERSION=focal PYTHON_VERSION=3
# - env: DOCKER=true OS_TYPE=ubuntu OS_VERSION=focal PYTHON_VERSION=3 GNMI=true
allow_failures:
- os: osx

Expand All @@ -39,14 +36,13 @@ before_install:
- if [[ "$DOCKER" != "true" ]] && [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install curl doxygen xml2 ; fi
- if [[ "$DOCKER" != "true" ]] && [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./test/dependencies_osx.sh ; fi
- if [[ "$DOCKER" != "true" ]] && [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$GNMI" == "true" ]]; then ./test/dependencies_osx_gnmi.sh ; fi
- if [[ "$DOCKER" != "true" ]] && [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./test/dependencies_trusty.sh ; fi
- if [[ "$DOCKER" == "true" ]]; then docker pull ${OS_TYPE}:${OS_VERSION} ; fi
- if [[ "$DOCKER" == "true" ]]; then docker pull ${OS_TYPE}:${OS_VERSION} ; fi

script:
- if [[ "$DOCKER" != "true" ]] && [[ "$GNMI" != "true" ]]; then ./test/tests.sh ; fi
- if [[ "$DOCKER" != "true" ]] && [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$GNMI" == "true" ]]; then ./test/gnmi_tests.sh ; fi
- if [[ "$DOCKER" == "true" ]] && [[ "$OS_TYPE" == "centos" ]] && [[ "$GNMI" != "true" ]]; then docker run -v `pwd`:/ydk-gen ${OS_TYPE}:${OS_VERSION} bash -c "cd /ydk-gen && ./test/dependencies_centos.sh && ./test/tests.sh -p ${PYTHON_VERSION} && ./test/test_package_centos.sh -p ${PYTHON_VERSION}" ; fi
- if [[ "$DOCKER" == "true" ]] && [[ "$OS_TYPE" == "centos" ]] && [[ "$GNMI" == "true" ]]; then docker run -v `pwd`:/ydk-gen ${OS_TYPE}:${OS_VERSION} bash -c "cd /ydk-gen && ./test/dependencies_centos.sh && ./test/dependencies_linux_gnmi.sh && ./test/gnmi_tests.sh -p ${PYTHON_VERSION}"; fi
- if [[ "$DOCKER" == "true" ]] && [[ "$OS_TYPE" == "centos" ]] && [[ "$GNMI" != "true" ]]; then docker run -v `pwd`:/ydk-gen ${OS_TYPE}:${OS_VERSION} bash -c "yum install git sudo -y && cd /ydk-gen && ./test/dependencies_centos.sh && ./test/tests.sh -p ${PYTHON_VERSION} && ./test/test_package_centos.sh -p ${PYTHON_VERSION}" ; fi
- if [[ "$DOCKER" == "true" ]] && [[ "$OS_TYPE" == "centos" ]] && [[ "$GNMI" == "true" ]]; then docker run -v `pwd`:/ydk-gen ${OS_TYPE}:${OS_VERSION} bash -c "yum install git sudo -y && cd /ydk-gen && ./test/dependencies_centos.sh && ./test/dependencies_linux_gnmi.sh && ./test/gnmi_tests.sh -p ${PYTHON_VERSION}"; fi
- if [[ "$DOCKER" == "true" ]] && [[ "$OS_TYPE" == "ubuntu" ]] && [[ "$GNMI" != "true" ]]; then docker run -v `pwd`:/ydk-gen ${OS_TYPE}:${OS_VERSION} bash -c "cd /ydk-gen && ./test/dependencies_ubuntu.sh && ./test/tests.sh -p ${PYTHON_VERSION} && ./test/test_package_ubuntu.sh -p ${PYTHON_VERSION}" ; fi
- if [[ "$DOCKER" == "true" ]] && [[ "$OS_TYPE" == "ubuntu" ]] && [[ "$GNMI" == "true" ]]; then docker run -v `pwd`:/ydk-gen ${OS_TYPE}:${OS_VERSION} bash -c "cd /ydk-gen && ./test/dependencies_ubuntu.sh && ./test/dependencies_linux_gnmi.sh && ./test/gnmi_tests.sh -p ${PYTHON_VERSION}"; fi

Expand Down
Binary file added 3d_party/darwin/confd-basic-7.3.darwin.x86_64.zip
Binary file not shown.
157 changes: 157 additions & 0 deletions 3d_party/go/goinstall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
#!/bin/bash
# shellcheck disable=SC2016
set -e

VERSION="1.15.1"

[ -z "$GOROOT" ] && GOROOT="$HOME/.go"
[ -z "$GOPATH" ] && GOPATH="$HOME/go"

OS="$(uname -s)"
ARCH="$(uname -m)"

case $OS in
"Linux")
case $ARCH in
"x86_64")
ARCH=amd64
;;
"aarch64")
ARCH=arm64
;;
"armv6")
ARCH=armv6l
;;
"armv8")
ARCH=arm64
;;
.*386.*)
ARCH=386
;;
esac
PLATFORM="linux-$ARCH"
;;
"Darwin")
PLATFORM="darwin-amd64"
;;
esac

print_help() {
echo "Usage: bash goinstall.sh OPTIONS"
echo -e "\nOPTIONS:"
echo -e " --remove\tRemove currently installed version"
echo -e " --version\tSpecify a version number to install"
}

if [ -z "$PLATFORM" ]; then
echo "Your operating system is not supported by the script."
exit 1
fi

if [ -n "$($SHELL -c 'echo $ZSH_VERSION')" ]; then
shell_profile="$HOME/.zshrc"
elif [ -n "$($SHELL -c 'echo $BASH_VERSION')" ]; then
shell_profile="$HOME/.bashrc"
elif [ -n "$($SHELL -c 'echo $FISH_VERSION')" ]; then
shell="fish"
if [ -d "$XDG_CONFIG_HOME" ]; then
shell_profile="$XDG_CONFIG_HOME/fish/config.fish"
else
shell_profile="$HOME/.config/fish/config.fish"
fi
fi

if [ "$1" == "--remove" ]; then
rm -rf "$GOROOT"
if [ "$OS" == "Darwin" ]; then
if [ "$shell" == "fish" ]; then
sed -i "" '/# GoLang/d' "$shell_profile"
sed -i "" '/set GOROOT/d' "$shell_profile"
sed -i "" '/set GOPATH/d' "$shell_profile"
sed -i "" '/set PATH $GOPATH\/bin $GOROOT\/bin $PATH/d' "$shell_profile"
else
sed -i "" '/# GoLang/d' "$shell_profile"
sed -i "" '/export GOROOT/d' "$shell_profile"
sed -i "" '/$GOROOT\/bin/d' "$shell_profile"
sed -i "" '/export GOPATH/d' "$shell_profile"
sed -i "" '/$GOPATH\/bin/d' "$shell_profile"
fi
else
if [ "$shell" == "fish" ]; then
sed -i '/# GoLang/d' "$shell_profile"
sed -i '/set GOROOT/d' "$shell_profile"
sed -i '/set GOPATH/d' "$shell_profile"
sed -i '/set PATH $GOPATH\/bin $GOROOT\/bin $PATH/d' "$shell_profile"
else
sed -i '/# GoLang/d' "$shell_profile"
sed -i '/export GOROOT/d' "$shell_profile"
sed -i '/$GOROOT\/bin/d' "$shell_profile"
sed -i '/export GOPATH/d' "$shell_profile"
sed -i '/$GOPATH\/bin/d' "$shell_profile"
fi
fi
echo "Go removed."
exit 0
elif [ "$1" == "--help" ]; then
print_help
exit 0
elif [ "$1" == "--version" ]; then
if [ -z "$2" ]; then # Check if --version has a second positional parameter
echo "Please provide a version number for: $1"
else
VERSION=$2
fi
elif [ ! -z "$1" ]; then
echo "Unrecognized option: $1"
exit 1
fi

if [ -d "$GOROOT" ]; then
echo "The Go install directory ($GOROOT) already exists. Exiting."
exit 1
fi

PACKAGE_NAME="go$VERSION.$PLATFORM.tar.gz"
TEMP_DIRECTORY=$(mktemp -d)

echo "Downloading $PACKAGE_NAME ..."
if hash wget 2>/dev/null; then
wget https://storage.googleapis.com/golang/$PACKAGE_NAME -O "$TEMP_DIRECTORY/go.tar.gz"
else
curl -o "$TEMP_DIRECTORY/go.tar.gz" https://storage.googleapis.com/golang/$PACKAGE_NAME
fi

if [ $? -ne 0 ]; then
echo "Download failed! Exiting."
exit 1
fi

echo "Extracting File..."
mkdir -p "$GOROOT"

tar -C "$GOROOT" --strip-components=1 -xzf "$TEMP_DIRECTORY/go.tar.gz"

echo "Configuring shell profile in: $shell_profile"
touch "$shell_profile"
if [ "$shell" == "fish" ]; then
{
echo '# GoLang'
echo "set GOROOT '${GOROOT}'"
echo "set GOPATH '$GOPATH'"
echo 'set PATH $GOPATH/bin $GOROOT/bin $PATH'
} >> "$shell_profile"
else
{
echo '# GoLang'
echo "export GOROOT=${GOROOT}"
echo 'export PATH=$GOROOT/bin:$PATH'
echo "export GOPATH=$GOPATH"
echo 'export PATH=$GOPATH/bin:$PATH'
} >> "$shell_profile"
fi

mkdir -p "${GOPATH}/"{src,pkg,bin}
echo -e "\nGo $VERSION was installed into $GOROOT.\nMake sure to relogin into your shell or run:"
echo -e "\n\tsource $shell_profile\n\nto update your environment variables."
echo "Tip: Opening a new terminal window usually just works. :)"
rm -f "$TEMP_DIRECTORY/go.tar.gz"
Loading