Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

Commit 3a142a9

Browse files
author
Abhi Keshav
authored
0.7.0 (#33)
* 0.7.0
1 parent 7aa8a94 commit 3a142a9

10 files changed

+49
-30
lines changed

CHANGES.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
### 2018-01-31 version 0.7.0
2+
3+
#### Python, C++ & Go
4+
##### Introduced Go language YDK support
5+
* Added support for all existing `ydk core` services, providers, types and errors in Go
6+
* Added support for all existing `ydk bundles` including `ietf`, `openconfig`, `cisco-ios-xr` and `cisco-ios-xe` in Go
7+
* [#673](https://github.com/CiscoDevNet/ydk-gen/pull/673), [#663](https://github.com/CiscoDevNet/ydk-gen/pull/), [#660](https://github.com/CiscoDevNet/ydk-gen/pull/660), [#658](https://github.com/CiscoDevNet/ydk-gen/pull/658), [#606](https://github.com/CiscoDevNet/ydk-gen/pull/606), [#605](https://github.com/CiscoDevNet/ydk-gen/pull/605)
8+
##### CRUD service improvements
9+
* Fixed handling of reading operational data nodes ([#664](https://github.com/CiscoDevNet/ydk-gen/issues/664))
10+
* Improved formatting of payloads in logging output ([#670](https://github.com/CiscoDevNet/ydk-gen/issues/670))
11+
##### Error handling improvements
12+
* Fixed naming of errors across C++ and Go to be consistent. Changed YCPPError, YError etc to YError ([#669](https://github.com/CiscoDevNet/ydk-gen/issues/669), [#668](https://github.com/CiscoDevNet/ydk-gen/issues/668))
13+
* Fixed warning in CMake build system to look for CMake version of `3.0.0` or greater ([#655](https://github.com/CiscoDevNet/ydk-gen/issues/655))
14+
##### Documentation improvements
15+
* Improved documentation for models which augment other models ([#426](https://github.com/CiscoDevNet/ydk-gen/issues/426))
16+
117
### 2017-12-15 version 0.6.3
218

319
#### Python & C++

README.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ Linux
2424
Ubuntu (Debian-based) - The following packages must be present in your system before installing YDK-Py::
2525

2626
$ sudo apt-get install gdebi-core python3-dev python-dev libtool-bin
27-
$ wget https://devhub.cisco.com/artifactory/debian-ydk/0.6.3/libydk_0.6.3-1_amd64.deb
28-
$ sudo gdebi libydk_0.6.3-1_amd64.deb
27+
$ wget https://devhub.cisco.com/artifactory/debian-ydk/0.7.0/libydk_0.7.0-1_amd64.deb
28+
$ sudo gdebi libydk_0.7.0-1_amd64.deb
2929

3030
Centos (Fedora-based) - The following packages must be present in your system before installing YDK-Py::
3131

3232
$ sudo yum install epel-release libssh-devel gcc-c++ python-devel
33-
$ sudo yum install https://devhub.cisco.com/artifactory/rpm-ydk/0.6.3/libydk-0.6.3-1.x86_64.rpm
33+
$ sudo yum install https://devhub.cisco.com/artifactory/rpm-ydk/0.7.0/libydk-0.7.0-1.x86_64.rpm
3434

3535
macOS
3636
~~~~~
@@ -41,12 +41,12 @@ You can download the latest python package from `here <https://www.python.org/do
4141
$ xcode-select --install
4242
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
4343
$ brew install pkg-config libssh xml2 libxml2 curl pcre cmake
44-
$ curl -O https://devhub.cisco.com/artifactory/osx-ydk/0.6.3/libydk-0.6.3-Darwin.pkg
45-
$ sudo installer -pkg libydk-0.6.3-Darwin.pkg -target /
44+
$ curl -O https://devhub.cisco.com/artifactory/osx-ydk/0.7.0/libydk-0.7.0-Darwin.tar.gz
45+
$ sudo installer -pkg libydk-0.7.0-Darwin.pkg -target /
4646

4747
Windows
4848
~~~~~~~
49-
Currently, YDK-Py from release 0.6.3 onwards is not supported on Windows.
49+
Currently, YDK-Py from release 0.7.0 onwards is not supported on Windows.
5050

5151

5252
Python Requirements
@@ -127,4 +127,4 @@ Documentation and Support
127127

128128
Release Notes
129129
--------------
130-
The current YDK release version is 0.6.3 (beta). YDK-Py is licensed under the Apache 2.0 License.
130+
The current YDK release version is 0.7.0 (beta). YDK-Py is licensed under the Apache 2.0 License.

core/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
cmake_minimum_required(VERSION 2.8.9)
1+
cmake_minimum_required(VERSION 3.0.0)
22
cmake_policy(SET CMP0048 NEW)
3-
project(path VERSION 0.6.3 LANGUAGES C CXX)
3+
project(path VERSION 0.7.0 LANGUAGES C CXX)
44
set(CMAKE_MACOSX_RPATH 1)
55

66
set(path_DESCRIPTION "Python wrapper around C++ path API using pybind11.")

core/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
# Define and modify version number and package name here,
3333
# Namespace packages are share same prefix: "ydk-models"
3434
NAME = 'ydk'
35-
VERSION = '0.6.3'
35+
VERSION = '0.7.0'
3636
INSTALL_REQUIREMENTS = ['pybind11>=2.1.1']
3737

3838

core/ydk/errors/error_handler.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@
3333
inspect.getargspec = inspect.getfullargspec
3434

3535

36-
_ERRORS = {"YCPPError": _YPYError,
37-
"YCPPCoreError": _YPYCoreError,
38-
"YCPPCodecError": _YPYCodecError,
39-
"YCPPClientError": _YPYClientError,
40-
"YCPPIllegalStateError": _YPYIllegalStateError,
41-
"YCPPInvalidArgumentError": _YPYInvalidArgumentError,
42-
"YCPPModelError": _YPYModelError,
43-
"YCPPOperationNotSupportedError": _YPYOperationNotSupportedError,
44-
"YCPPServiceError": _YPYServiceError,
45-
"YCPPServiceProviderError": _YPYServiceProviderError,
36+
_ERRORS = {"YError": _YPYError,
37+
"YCoreError": _YPYCoreError,
38+
"YCodecError": _YPYCodecError,
39+
"YClientError": _YPYClientError,
40+
"YIllegalStateError": _YPYIllegalStateError,
41+
"YInvalidArgumentError": _YPYInvalidArgumentError,
42+
"YModelError": _YPYModelError,
43+
"YOperationNotSupportedError": _YPYOperationNotSupportedError,
44+
"YServiceError": _YPYServiceError,
45+
"YServiceProviderError": _YPYServiceProviderError,
4646
}
4747

4848

core/ydk/types/py_types.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def __str__(self):
113113

114114

115115
class Entity(_Entity):
116-
""" Entity wrapper class overrides get_children method.
116+
""" Entity wrapper class overrides some of the ydk::Entity methods.
117117
"""
118118
def __init__(self):
119119
super(Entity, self).__init__()
@@ -145,9 +145,14 @@ def get_children(self):
145145
continue
146146
children[name] = value
147147
elif isinstance(value, YList):
148+
count=0
148149
for v in value:
149150
if isinstance(v, Entity):
150-
children[v.get_segment_path()] = v
151+
if v.get_segment_path() not in children:
152+
children[v.get_segment_path()] = v
153+
else:
154+
children['%s%s' % (v.get_segment_path(), count)] = v
155+
count += 1
151156
# store local refs so that pybind11 does not free the object. See https://github.com/pybind/pybind11/issues/673
152157
self._local_refs["ydk::children"] = children
153158
return children
@@ -294,9 +299,6 @@ def _get_child_by_seg_name(self, segs):
294299
for name in self._children_name_map:
295300
if seg == self._children_name_map[name]:
296301
return self.__dict__[name]
297-
for name in self._local_refs:
298-
if seg == name.lstrip("ydk::seg::"):
299-
return self._local_refs[name]
300302
return None
301303

302304
def _check_monkey_patching_error(self, name, value):

dependencies_centos.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
yum install -y epel-release
44
yum install -y libxslt-devel libssh-devel python-devel cmake3 python-pip which make sudo > /dev/null
5-
yum install -y https://devhub.cisco.com/artifactory/rpm-ydk/0.6.3/libydk-0.6.3-1.x86_64.rpm > /dev/null
5+
yum install -y https://devhub.cisco.com/artifactory/rpm-ydk/0.7.0/libydk-0.7.0-1.x86_64.rpm > /dev/null
66

77
yum install centos-release-scl -y > /dev/null
88
yum install devtoolset-4-gcc* -y > /dev/null

dependencies_osx.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ brew install libssh xml2 curl pybind11 > /dev/null
55

66
brew rm -f --ignore-dependencies python python3
77

8-
curl -O https://devhub.cisco.com/artifactory/osx-ydk/0.6.3/libydk-0.6.3-Darwin.pkg
8+
curl -O https://devhub.cisco.com/artifactory/osx-ydk/0.7.0/libydk-0.7.0-Darwin.pkg
99
sudo installer -pkg libydk*pkg -target /
1010

1111
sudo easy_install pip

dependencies_trusty.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ sudo apt-get update > /dev/null
77
sudo apt-get install cmake gcc-5 g++-5 -y > /dev/null
88
sudo ln -f -s /usr/bin/g++-5 /usr/bin/c++
99
sudo ln -f -s /usr/bin/gcc-5 /usr/bin/cc
10-
git clone https://github.com/ciscodevnet/ydk-cpp.git -b 0.6.3
10+
git clone https://github.com/ciscodevnet/ydk-cpp.git -b 0.7.0
1111
mkdir ydk-cpp/core/ydk/build
1212
cd ydk-cpp/core/ydk/build
1313
cmake -DCMAKE_BUILD_TYPE=Release ..
1414
sudo make install
1515
cd -
1616
sudo easy_install pip
17+
sudo pip install pybind11

dependencies_xenial.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ apt-get update > /dev/null
77
apt-get install gcc-5 g++-5 -y > /dev/null
88
ln -f -s /usr/bin/g++-5 /usr/bin/c++
99
ln -f -s /usr/bin/gcc-5 /usr/bin/cc
10-
wget https://devhub.cisco.com/artifactory/debian-ydk/0.6.3/libydk_0.6.3-1_amd64.deb
11-
gdebi -n libydk_0.6.3-1_amd64.deb
10+
wget https://devhub.cisco.com/artifactory/debian-ydk/0.7.0/libydk_0.7.0-1_amd64.deb
11+
gdebi -n libydk_0.7.0-1_amd64.deb
1212
sudo easy_install pip

0 commit comments

Comments
 (0)