Skip to content

Commit

Permalink
Merge pull request #1016 from ygorelik/master
Browse files Browse the repository at this point in the history
Merging YDK-0.8.5 development branch to CiscoDevNet
  • Loading branch information
111pontes committed Jul 21, 2020
2 parents 23d503b + cddf6e2 commit 11fe46d
Show file tree
Hide file tree
Showing 139 changed files with 5,000 additions and 1,992 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ protocol.log
myenv
py2env
py3env
venv/
gittmp*/
.DS_Store
gen-api/
Expand All @@ -39,3 +38,5 @@ sdk/python/gnmi/build
sdk/python/gnmi/dist
sdk/python/gnmi/ydk_service_gnmi.egg-info
venv
temp
bundles
26 changes: 13 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@ matrix:
# - 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
# - 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
# - 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
allow_failures:
Expand Down
37 changes: 34 additions & 3 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,41 @@
### 2020-07-30 version 0.8.5

#### New features and enhancements
* Develop utility function to clone Entity instance ([#967](https://github.com/CiscoDevNet/ydk-gen/issues/967))
* Go CodecService fails to encode leaf-list data ([#968](https://github.com/CiscoDevNet/ydk-gen/issues/968))
* Developed script install_ydk, which allows to install YDK from source in one CLI command

#### Resolved GitHub issues
* gNMI set RPC fails when JSON payload is formatted string
* Enhance generator to indicate how a YANG modules was processed ([#894](https://github.com/CiscoDevNet/ydk-gen/issues/894))
* Restconf in YDK should support HTTPS (partialy resolved) ([#917](https://github.com/CiscoDevNet/ydk-gen/issues/917))
* Go fails to process filters on enum and identity leaves and leaf-lists ([#969](https://github.com/CiscoDevNet/ydk-gen/issues/969))
* YDK fails create bundle package when package name contains '.' ([#978](https://github.com/CiscoDevNet/ydk-gen/issues/978))
* python bundle generator must escape 'async' as variable name ([#980](https://github.com/CiscoDevNet/ydk-gen/issues/980))
* YDK fails instantiate some of the generated bundle classes ([#983](https://github.com/CiscoDevNet/ydk-gen/issues/983))
* Python generated bundle class fails instantiate when model contains leaf 'logger' ([#996](https://github.com/CiscoDevNet/ydk-gen/issues/996))
* C++ YList class fails to process key values when its name contains '-' character ([#997](https://github.com/CiscoDevNet/ydk-gen/issues/997))
* create_datanode in Path API returns incorrect object and sets incorrect value ([#1003](https://github.com/CiscoDevNet/ydk-gen/issues/1003))
* create_datanode rejects absolute paths with a leading "/" as defined in RFC 7950 ([#1005](https://github.com/CiscoDevNet/ydk-gen/issues/1005))
* Path API create_datanode rejects valid value ([#1006](https://github.com/CiscoDevNet/ydk-gen/issues/1006))

#### Bundle improvements
* Updated cisco-ios-xe bundle to support Cisco IOS XE 16.9.3 due to bug in Python generated code
* Updated cisco-ios-xr bundle to support Cisco IOS XR 6.6.3
* Updated openconfig bundle to support YANG models of revision "2019-06-21"

#### Documentation improvements
* Bundle profile description is not accurate ([#971](https://github.com/CiscoDevNet/ydk-gen/issues/971))
* Undocumented method: ydk.path.SchemaNode.get_keys() ([#1012](https://github.com/CiscoDevNet/ydk-gen/issues/1012))
* ydk.path.DataNode.get_value() is listed as .get() in the documentation ([#1013](https://github.com/CiscoDevNet/ydk-gen/issues/1013))

### 2019-10-15 version 0.8.4

#### New features and enhancements
* Expanded meta data in Python bundles by adding flags `has_must` and `has_when` ([#927](https://github.com/CiscoDevNet/ydk-gen/issues/927))
* Added utility function to compare two entities and build diff ([#925](https://github.com/CiscoDevNet/ydk-gen/issues/925))
* Adjusted C++ code to work with gcc compiler version 4.8.5 (default for CentOS-7.x)

#### Resolved GitHub issues
* 'ietf-netconf-monitoring:get-schema' returns schema with escape sequences ([#614](https://github.com/CiscoDevNet/ydk-gen/issues/614))
* NETCONF provider should raise more appropriate exceptions ([#774](https://github.com/CiscoDevNet/ydk-gen/issues/774))
Expand All @@ -18,7 +49,7 @@
* No way to retrieve numeric value of enums in cpp generated code ([#944](https://github.com/CiscoDevNet/ydk-gen/issues/944))
* XmlSubtreeCodec fails decode payload with augmented component ([#956](https://github.com/CiscoDevNet/ydk-gen/issues/956))
* Debian package for C++ bundles getting installed to wrong location ([#962](https://github.com/CiscoDevNet/ydk-gen/issues/962))

#### Documentation improvements
Added documentation for XmlSubtreeCodec and JsonSubtreeCodec.

Expand All @@ -32,7 +63,7 @@
#### Bundle improvements
* Updated cisco-ios-xr bundle to support Cisco IOS XR 6.6.2
* Updated openconfig bundle to introduce support for additional models.

#### Resolved GitHub issues
* cgo compile error ([#781](https://github.com/CiscoDevNet/ydk-gen/issues/781))
* YDK netconf read fails when <data> tag has namespace prefix ([#799](https://github.com/CiscoDevNet/ydk-gen/issues/799))
Expand Down
18 changes: 10 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:xenial
FROM ubuntu:bionic

MAINTAINER http://ydk.io

Expand All @@ -10,14 +10,16 @@ WORKDIR /root/ydk-gen

RUN /bin/bash -c './test/dependencies_ubuntu.sh && ./test/dependencies_linux_gnmi.sh'

RUN ./generate.py -i --cpp --core
RUN ./generate.py -i --cpp --service profiles/services/gnmi-0.4.0_post2.json

RUN pip install -r requirements.txt
RUN pip3 install -r requirements.txt

RUN python generate.py -i --core
RUN python3 generate.py -i --core
RUN python3 generate.py -i --core --cpp
RUN python3 generate.py -i --service profiles/services/gnmi-0.4.0.json --cpp

RUN python generate.py -i --service profiles/services/gnmi-0.4.0.json
RUN python3 generate.py -i --core
RUN python3 generate.py -i --service profiles/services/gnmi-0.4.0.json
RUN pip3 install ydk-models-openconfig

RUN export GOROOT=/usr/local/go && export PATH=$GOROOT/bin:$PATH
RUN export GOPATH=/root/golang
RUN python3 generate.py -i --core --go
RUN python3 generate.py -i --service profiles/services/gnmi-0.4.0.json --go
Loading

0 comments on commit 11fe46d

Please sign in to comment.