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

Commit

Permalink
0.7.0 (#33)
Browse files Browse the repository at this point in the history
* 0.7.0
  • Loading branch information
Abhi Keshav committed Feb 5, 2018
1 parent 7aa8a94 commit 3a142a9
Show file tree
Hide file tree
Showing 10 changed files with 49 additions and 30 deletions.
16 changes: 16 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
### 2018-01-31 version 0.7.0

#### Python, C++ & Go
##### Introduced Go language YDK support
* Added support for all existing `ydk core` services, providers, types and errors in Go
* Added support for all existing `ydk bundles` including `ietf`, `openconfig`, `cisco-ios-xr` and `cisco-ios-xe` in Go
* [#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)
##### CRUD service improvements
* Fixed handling of reading operational data nodes ([#664](https://github.com/CiscoDevNet/ydk-gen/issues/664))
* Improved formatting of payloads in logging output ([#670](https://github.com/CiscoDevNet/ydk-gen/issues/670))
##### Error handling improvements
* 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))
* 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))
##### Documentation improvements
* Improved documentation for models which augment other models ([#426](https://github.com/CiscoDevNet/ydk-gen/issues/426))

### 2017-12-15 version 0.6.3

#### Python & C++
Expand Down
14 changes: 7 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ Linux
Ubuntu (Debian-based) - The following packages must be present in your system before installing YDK-Py::

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

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

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

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

Windows
~~~~~~~
Currently, YDK-Py from release 0.6.3 onwards is not supported on Windows.
Currently, YDK-Py from release 0.7.0 onwards is not supported on Windows.


Python Requirements
Expand Down Expand Up @@ -127,4 +127,4 @@ Documentation and Support

Release Notes
--------------
The current YDK release version is 0.6.3 (beta). YDK-Py is licensed under the Apache 2.0 License.
The current YDK release version is 0.7.0 (beta). YDK-Py is licensed under the Apache 2.0 License.
4 changes: 2 additions & 2 deletions core/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 2.8.9)
cmake_minimum_required(VERSION 3.0.0)
cmake_policy(SET CMP0048 NEW)
project(path VERSION 0.6.3 LANGUAGES C CXX)
project(path VERSION 0.7.0 LANGUAGES C CXX)
set(CMAKE_MACOSX_RPATH 1)

set(path_DESCRIPTION "Python wrapper around C++ path API using pybind11.")
Expand Down
2 changes: 1 addition & 1 deletion core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# Define and modify version number and package name here,
# Namespace packages are share same prefix: "ydk-models"
NAME = 'ydk'
VERSION = '0.6.3'
VERSION = '0.7.0'
INSTALL_REQUIREMENTS = ['pybind11>=2.1.1']


Expand Down
20 changes: 10 additions & 10 deletions core/ydk/errors/error_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@
inspect.getargspec = inspect.getfullargspec


_ERRORS = {"YCPPError": _YPYError,
"YCPPCoreError": _YPYCoreError,
"YCPPCodecError": _YPYCodecError,
"YCPPClientError": _YPYClientError,
"YCPPIllegalStateError": _YPYIllegalStateError,
"YCPPInvalidArgumentError": _YPYInvalidArgumentError,
"YCPPModelError": _YPYModelError,
"YCPPOperationNotSupportedError": _YPYOperationNotSupportedError,
"YCPPServiceError": _YPYServiceError,
"YCPPServiceProviderError": _YPYServiceProviderError,
_ERRORS = {"YError": _YPYError,
"YCoreError": _YPYCoreError,
"YCodecError": _YPYCodecError,
"YClientError": _YPYClientError,
"YIllegalStateError": _YPYIllegalStateError,
"YInvalidArgumentError": _YPYInvalidArgumentError,
"YModelError": _YPYModelError,
"YOperationNotSupportedError": _YPYOperationNotSupportedError,
"YServiceError": _YPYServiceError,
"YServiceProviderError": _YPYServiceProviderError,
}


Expand Down
12 changes: 7 additions & 5 deletions core/ydk/types/py_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def __str__(self):


class Entity(_Entity):
""" Entity wrapper class overrides get_children method.
""" Entity wrapper class overrides some of the ydk::Entity methods.
"""
def __init__(self):
super(Entity, self).__init__()
Expand Down Expand Up @@ -145,9 +145,14 @@ def get_children(self):
continue
children[name] = value
elif isinstance(value, YList):
count=0
for v in value:
if isinstance(v, Entity):
children[v.get_segment_path()] = v
if v.get_segment_path() not in children:
children[v.get_segment_path()] = v
else:
children['%s%s' % (v.get_segment_path(), count)] = v
count += 1
# store local refs so that pybind11 does not free the object. See https://github.com/pybind/pybind11/issues/673
self._local_refs["ydk::children"] = children
return children
Expand Down Expand Up @@ -294,9 +299,6 @@ def _get_child_by_seg_name(self, segs):
for name in self._children_name_map:
if seg == self._children_name_map[name]:
return self.__dict__[name]
for name in self._local_refs:
if seg == name.lstrip("ydk::seg::"):
return self._local_refs[name]
return None

def _check_monkey_patching_error(self, name, value):
Expand Down
2 changes: 1 addition & 1 deletion dependencies_centos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

yum install centos-release-scl -y > /dev/null
yum install devtoolset-4-gcc* -y > /dev/null
Expand Down
2 changes: 1 addition & 1 deletion dependencies_osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ brew install libssh xml2 curl pybind11 > /dev/null

brew rm -f --ignore-dependencies python python3

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

sudo easy_install pip
3 changes: 2 additions & 1 deletion dependencies_trusty.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ sudo apt-get update > /dev/null
sudo apt-get install cmake gcc-5 g++-5 -y > /dev/null
sudo ln -f -s /usr/bin/g++-5 /usr/bin/c++
sudo ln -f -s /usr/bin/gcc-5 /usr/bin/cc
git clone https://github.com/ciscodevnet/ydk-cpp.git -b 0.6.3
git clone https://github.com/ciscodevnet/ydk-cpp.git -b 0.7.0
mkdir ydk-cpp/core/ydk/build
cd ydk-cpp/core/ydk/build
cmake -DCMAKE_BUILD_TYPE=Release ..
sudo make install
cd -
sudo easy_install pip
sudo pip install pybind11
4 changes: 2 additions & 2 deletions dependencies_xenial.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ apt-get update > /dev/null
apt-get install gcc-5 g++-5 -y > /dev/null
ln -f -s /usr/bin/g++-5 /usr/bin/c++
ln -f -s /usr/bin/gcc-5 /usr/bin/cc
wget https://devhub.cisco.com/artifactory/debian-ydk/0.6.3/libydk_0.6.3-1_amd64.deb
gdebi -n libydk_0.6.3-1_amd64.deb
wget https://devhub.cisco.com/artifactory/debian-ydk/0.7.0/libydk_0.7.0-1_amd64.deb
gdebi -n libydk_0.7.0-1_amd64.deb
sudo easy_install pip

0 comments on commit 3a142a9

Please sign in to comment.