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

Commit db2fedd

Browse files
author
Abhi Keshav
authored
0.5.5 release (#27)
1 parent cfbd61d commit db2fedd

File tree

1,101 files changed

+2908907
-265927
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,101 files changed

+2908907
-265927
lines changed

CHANGES.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
### 2017-06-06 version 0.5.5
2+
3+
* Fixed bundle `setup.py` to match ydk `core` dependency in bundle profile ([#433](https://github.com/CiscoDevNet/ydk-gen/issues/443))
4+
* Updated `lxml` dependency for ydk `core` package ([#427](https://github.com/CiscoDevNet/ydk-gen/issues/427))
5+
* Improved reading of data using `ExecutorService` ([#332](https://github.com/CiscoDevNet/ydk-gen/issues/332)) and `CRUDService` ([#457](https://github.com/CiscoDevNet/ydk-gen/issues/457))
6+
* Fixed encoding key elements of yang `list`s ([#363](https://github.com/CiscoDevNet/ydk-gen/issues/363)) and operational data ([#452](https://github.com/CiscoDevNet/ydk-gen/issues/452), [#455](https://github.com/CiscoDevNet/ydk-gen/issues/455))
7+
* Added [`cisco-ios-xe` bundle](https://github.com/CiscoDevNet/ydk-gen/blob/master/profiles/bundles/cisco-ios-xe_16_5_1.json) to support Cisco IOS XE 16.5.1 release
8+
9+
#### Documentation
10+
* Improved getting-started guides for YDK-Py and YDK-Cpp ([#418](https://github.com/CiscoDevNet/ydk-gen/pull/418), [#419](https://github.com/CiscoDevNet/ydk-gen/pull/419))
11+
* Made table of contents for bundle documentation be sorted alphabetically ([#446](https://github.com/CiscoDevNet/ydk-gen/pull/418), [#419](https://github.com/CiscoDevNet/ydk-gen/pull/446))
12+
* Improved documentation of `rpc` classes ([#435](https://github.com/CiscoDevNet/ydk-gen/issues/435))
13+
114
### 2017-03-17 version 0.5.4
215

316
* Improved logging to indicate message directionality ([#388](https://github.com/CiscoDevNet/ydk-gen/pull/388))

README.rst

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ It is required to install Xcode command line tools, `homebrew <http://brew.sh>`_
3535

3636
Windows
3737
~~~~~~~
38-
You must install the following requirements:
38+
You must install the following requirements::
3939
* `Python Releases for Windows <https://www.python.org/downloads/windows/>`_
4040
* `Visual C++ Build Tools <http://landinghub.visualstudio.com/visual-cpp-build-tools>`_
4141

@@ -67,26 +67,26 @@ If you prefer not to use the YDK packages in the Python package index, you need
6767
core$ python setup.py sdist
6868
core$ pip install dist/ydk*.gz
6969

70-
Once you have installed the ``ydk`` core package, you can install one more model bundles. Note that some bundles have dependencies on other bundles. Those dependencies are already captured in the bundle package. Make sure you install the desired bundles in the order below. To install the IETF bundle, execute::
70+
Once you have installed the ``ydk`` core package, you can install one more model bundles. Note that some bundles have dependencies on other bundles. Those dependencies are already captured in the bundle package. Make sure you install the desired bundles in the order below. To install the ``ietf`` bundle, execute::
7171

7272
core$ cd ../ietf
7373
ietf$ python setup.py sdist
7474
ietf$ pip install dist/ydk*.gz
7575

76-
To install the OpenConfig bundle, execute::
76+
To install the ``openconfig`` bundle, execute::
7777

7878
ietf$ cd ../openconfig
7979
openconfig$ python setup.py sdist
8080
openconfig$ pip install dist/ydk*.gz
8181

82-
To install the cisco-ios-xr bundle, execute::
82+
To install the ``cisco-ios-xr`` bundle, execute::
8383

8484
openconfig$ cd ../cisco-ios-xr
8585
cisco-ios-xr$ python setup.py sdist
8686
cisco-ios-xr$ pip install dist/ydk*.gz
8787
cisco-ios-xr$ cd ..
8888

89-
Using a Virtual environment
89+
Using a Virtual Environment
9090
~~~~~~~~~~~~~~~~~~~~~~~~~~~
9191
You may want to perform the installation under a Python virtual environment (`virtualenv <https://pypi.python.org/pypi/virtualenv/>`_/`virtualenvwrapper <https://pypi.python.org/pypi/virtualenvwrapper>`_). A virtual environment allows you to install multiple versions of YDK if needed. In addition, it prevents any potential conflicts between package dependencies in your system.
9292

@@ -108,12 +108,11 @@ At this point, you can perform the quick install or the installation from source
108108

109109
Documentation and Support
110110
--------------------------
111-
- Samples can be found under the ``core/samples`` directory
112-
- API documentation can be found at http://ydk.cisco.com/py/docs
113-
- Hundreds of samples can be found at https://github.com/CiscoDevNet/ydk-py-samples
114-
- For queries related to usage of the API, please join the YDK community at https://communities.cisco.com/community/developer/ydk
115-
111+
- Read the `API documentation <http://ydk.cisco.com/py/docs>`_ for details on how to use the API and specific models
112+
- Samples can be found under the `samples directory <https://github.com/CiscoDevNet/ydk-py/tree/master/core/samples>`_
113+
- Hundreds of additional samples can be found in the `YDK-PY samples repository <https://github.com/CiscoDevNet/ydk-py-samples>`_
114+
- Join the `YDK community <https://communities.cisco.com/community/developer/ydk>`_ to connect with other users and with the makers of YDK
116115

117116
Release Notes
118117
--------------
119-
The current YDK release version is 0.5.4 (beta). YDK-Py is licensed under the Apache 2.0 License.
118+
The current YDK release version is 0.5.5 (beta). YDK-Py is licensed under the Apache 2.0 License.

cisco-ios-xe/MANIFEST.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include README.md
2+
include setup.py
3+
global-include CMakeLists.txt *.cmake
4+
include python.cpp

cisco-ios-xe/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
2+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
3+
**Table of Contents**
4+
5+
- [YDK bundle](#ydk-bundle)
6+
- [Installation](#installation)
7+
8+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
9+
10+
<a href="https://github.com/CiscoDevNet/ydk-gen"><img src="https://cloud.githubusercontent.com/assets/17089095/14834057/2e1fe270-0bb7-11e6-9e94-73dd7d71e87d.png" height="240" width="240" ></a>
11+
12+
# YDK bundle
13+
14+
YDK bundle is a package of python API's that are modeled in YANG.
15+
16+
# Installation
17+
18+
Create a source distribution for the bundle:
19+
```
20+
$ python setup.py sdist
21+
```
22+
23+
Install the bundle:
24+
```
25+
$ pip install dist/ydk-*.tar.gz
26+
```
27+

cisco-ios-xe/[email protected]

1.42 MB
Binary file not shown.

cisco-ios-xe/setup.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[bdist_wheel]
2+
# This flag says that the code is written to work on both Python 2 and Python
3+
# 3. If at all possible, it is good practice to do this. If you cannot, you
4+
# will need to generate wheels for each Python version that you support.
5+
universal=1

cisco-ios-xe/setup.py

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# ----------------------------------------------------------------
2+
# Copyright 2016 Cisco Systems
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
# ------------------------------------------------------------------
16+
17+
18+
"""Setup for YDK
19+
20+
21+
"""
22+
from os import path
23+
from setuptools import setup, find_packages
24+
25+
HERE = path.abspath(path.dirname(__file__))
26+
27+
INSTALL_REQUIREMENTS = ['enum34==1.1.3',
28+
'lxml>=3.4.4',
29+
'ncclient>=0.4.7',
30+
'ydk>=0.5.4']
31+
32+
NMSP_PKG_NAME = "ydk-models-cisco-ios-xe"
33+
NMSP_PKG_VERSION = "16.5.1"
34+
NMSP_PKG_DEPENDENCIES = ['ydk-models-ietf>=0.1.2']
35+
36+
37+
if NMSP_PKG_DEPENDENCIES != "$DEPENDENCY$":
38+
INSTALL_REQUIREMENTS.extend(NMSP_PKG_DEPENDENCIES)
39+
40+
NMSP_PACKAGES = ['ydk', 'ydk.models']
41+
YDK_PACKAGES = find_packages(exclude=['contrib', 'docs*', 'tests*',
42+
'ncclient', 'samples'])
43+
44+
45+
DESCRIPTION = "YDK bundle for Cisco IOS XR models"
46+
LONG_DESCRIPTION = "This YANG Development Kit (YDK) bundle provides APIs for Cisco IOS XE YANG models. YDK facilitates the use of YANG data models by expressing the model semantics in an API and abstracting protocol/encoding details. YDK is composed of a core package that defines services and providers, plus one or more module bundles. This YDK bundle for Cisco IOS XE models uses the YDK core package and additional model bundles."
47+
48+
setup(
49+
name=NMSP_PKG_NAME,
50+
version=NMSP_PKG_VERSION,
51+
description=DESCRIPTION,
52+
long_description=LONG_DESCRIPTION,
53+
url='https://github.com/CiscoDevNet/ydk-py',
54+
author='Cisco Systems',
55+
author_email='[email protected]',
56+
license='Apache 2.0',
57+
classifiers=[
58+
'Development Status :: 3 - Alpha',
59+
'Intended Audience :: Developers',
60+
'Intended Audience :: Education',
61+
'Intended Audience :: Information Technology',
62+
'Intended Audience :: Science/Research',
63+
'Intended Audience :: System Administrators',
64+
'Topic :: Software Development :: Build Tools',
65+
'Topic :: Software Development :: Libraries',
66+
'License :: OSI Approved :: Apache Software License',
67+
'Programming Language :: Python :: 2.7',
68+
'Programming Language :: Python :: 3',
69+
'Programming Language :: Python :: 3.2',
70+
'Programming Language :: Python :: 3.3',
71+
'Programming Language :: Python :: 3.4',
72+
'Programming Language :: Python :: 3.5',
73+
'Programming Language :: C++'
74+
],
75+
keywords='yang, C++11, python bindings',
76+
packages=YDK_PACKAGES,
77+
namespace_packages=NMSP_PACKAGES,
78+
install_requires=INSTALL_REQUIREMENTS
79+
)

cisco-ios-xe/ydk/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import pkg_resources
2+
pkg_resources.declare_namespace(__name__)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import pkg_resources
2+
pkg_resources.declare_namespace(__name__)
Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
2+
from enum import Enum
3+
from ydk._core._dm_meta_info import _MetaInfoClassMember, _MetaInfoClass, _MetaInfoEnum
4+
from ydk.types import Empty, YList, DELETE, Decimal64, FixedBitsDict
5+
from ydk._core._dm_meta_info import ATTRIBUTE, REFERENCE_CLASS, REFERENCE_LIST, REFERENCE_LEAFLIST, REFERENCE_IDENTITY_CLASS, REFERENCE_ENUM_CLASS, REFERENCE_BITS, REFERENCE_UNION
6+
from ydk.providers._importer import _yang_ns
7+
8+
9+
_deviation_table = {
10+
'Native.Interface.Fastethernet.Switchport.PortSecurity.Maximum.max_addresses' : {
11+
'deviation_typ' : 'replace',
12+
'keyword_value' : [
13+
('type',
14+
_MetaInfoClassMember('max-addresses', ATTRIBUTE, 'int' , None, None,
15+
[('1', '4096')], [],
16+
''' ''',
17+
'max_addresses',
18+
'Cisco-IOS-XE-switch', False),
19+
),
20+
]
21+
},
22+
'Native.Interface.Gigabitethernet.Switchport.PortSecurity.Maximum.max_addresses' : {
23+
'deviation_typ' : 'replace',
24+
'keyword_value' : [
25+
('type',
26+
_MetaInfoClassMember('max-addresses', ATTRIBUTE, 'int' , None, None,
27+
[('1', '4096')], [],
28+
''' ''',
29+
'max_addresses',
30+
'Cisco-IOS-XE-switch', False),
31+
),
32+
]
33+
},
34+
'Native.Interface.PortChannel.Switchport.PortSecurity.Maximum.max_addresses' : {
35+
'deviation_typ' : 'replace',
36+
'keyword_value' : [
37+
('type',
38+
_MetaInfoClassMember('max-addresses', ATTRIBUTE, 'int' , None, None,
39+
[('1', '4096')], [],
40+
''' ''',
41+
'max_addresses',
42+
'Cisco-IOS-XE-switch', False),
43+
),
44+
]
45+
},
46+
'Native.Interface.PortChannelSubinterface.PortChannel.Switchport.PortSecurity.Maximum.max_addresses' : {
47+
'deviation_typ' : 'replace',
48+
'keyword_value' : [
49+
('type',
50+
_MetaInfoClassMember('max-addresses', ATTRIBUTE, 'int' , None, None,
51+
[('1', '4096')], [],
52+
''' ''',
53+
'max_addresses',
54+
'Cisco-IOS-XE-switch', False),
55+
),
56+
]
57+
},
58+
'Native.Interface.Tengigabitethernet.Switchport.PortSecurity.Maximum.max_addresses' : {
59+
'deviation_typ' : 'replace',
60+
'keyword_value' : [
61+
('type',
62+
_MetaInfoClassMember('max-addresses', ATTRIBUTE, 'int' , None, None,
63+
[('1', '4096')], [],
64+
''' ''',
65+
'max_addresses',
66+
'Cisco-IOS-XE-switch', False),
67+
),
68+
]
69+
},
70+
'Native.Line.Vty.first' : {
71+
'deviation_typ' : 'replace',
72+
'keyword_value' : [
73+
('type',
74+
_MetaInfoClassMember('first', ATTRIBUTE, 'int' , None, None,
75+
[('0', '97')], [],
76+
''' ''',
77+
'first',
78+
'Cisco-IOS-XE-native', False),
79+
),
80+
]
81+
},
82+
'Native.Line.Vty.last' : {
83+
'deviation_typ' : 'replace',
84+
'keyword_value' : [
85+
('type',
86+
_MetaInfoClassMember('last', ATTRIBUTE, 'int' , None, None,
87+
[('1', '97')], [],
88+
''' ''',
89+
'last',
90+
'Cisco-IOS-XE-native', False),
91+
),
92+
]
93+
},
94+
'Native.Policy.ClassMap.Match.AccessGroup.index' : {
95+
'deviation_typ' : 'replace',
96+
'keyword_value' : [
97+
('type',
98+
_MetaInfoClassMember('index', ATTRIBUTE, 'int' , None, None,
99+
[('1', '2799')], [],
100+
''' ''',
101+
'index',
102+
'Cisco-IOS-XE-policy', False),
103+
),
104+
]
105+
},
106+
'Native.Policy.PolicyMap.Class_.ActionList.action_param.bandwidth_case.Bandwidth.bits' : {
107+
'deviation_typ' : 'replace',
108+
'keyword_value' : [
109+
('type',
110+
_MetaInfoClassMember('bits', ATTRIBUTE, 'int' , None, None,
111+
[('100', '40000000')], [],
112+
''' ''',
113+
'bits',
114+
'Cisco-IOS-XE-policy', False),
115+
),
116+
]
117+
},
118+
'Native.Policy.PolicyMap.Class_.ActionList.action_param.priority_case.Priority.priority_type.kilo_bits.kilo_bits' : {
119+
'deviation_typ' : 'replace',
120+
'keyword_value' : [
121+
('type',
122+
_MetaInfoClassMember('kilo-bits', ATTRIBUTE, 'int' , None, None,
123+
[('8', '40000000')], [],
124+
''' ''',
125+
'kilo_bits',
126+
'Cisco-IOS-XE-policy', False),
127+
),
128+
]
129+
},
130+
}

0 commit comments

Comments
 (0)