You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 2, 2023. It is now read-only.
The YANG Development Kit (YDK) is a Software Development Kit that provides API's that are modeled in YANG.
18
18
The main goal of YDK is to reduce the learning curve of YANG data models by expressing the model semantics in an API and abstracting protocol/encoding details.
19
19
YDK is composed of a core package that defines services and providers, plus one or more module bundles that are based on YANG models.
20
20
21
21
Backward Compatibility
22
-
----------------------
22
+
======================
23
23
24
24
The Python YDK-0.8.2 core package is compatible with all model bundles generated previously with ydk-gen releases starting from 0.7.3.
25
25
Please see `the release notes <https://github.com/CiscoDevNet/ydk-py/releases/tag/0.8.2>`_ for details.
26
26
27
27
Docker
28
-
------
28
+
======
29
29
30
30
A `docker image <https://docs.docker.com/engine/reference/run/>`_ is automatically built with the latest ydk-py installed.
31
31
This be used to run ydk-py without installing anything natively on your machine.
@@ -37,10 +37,10 @@ See the `docker documentation <https://docs.docker.com/engine/reference/run/>`_
37
37
38
38
39
39
System Requirements
40
-
-------------------
40
+
===================
41
41
42
42
Linux
43
-
~~~~~
43
+
-----
44
44
45
45
**Ubuntu (Debian-based)**
46
46
@@ -86,7 +86,7 @@ The following packages must be present in your system before installing YDK-Py.
It is required to install Xcode command line tools, `homebrew <http://brew.sh>`_ and the following homebrew packages on your system before installing YDK-Py::
92
92
@@ -174,15 +174,15 @@ Python Requirements
174
174
175
175
YDK supports both Python2 and Python3 versions. At least Python2.7 or Python3.4 must be installed on your system.
176
176
177
-
It is also required for Python installation to include corresponding shared library. As example:
177
+
It is also required for Python installation to include corresponding shared library. As example::
# In 'cmake' log look for 'PythonLibs' and 'found version' settings line:
219
+
4. In 'cmake' log look for 'PythonLibs' and 'found version' settings line:
217
220
221
+
.. code-block:: sh
222
+
218
223
-- Found PythonLibs: /usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib (found version "2.7.15")
219
224
220
-
4. Finally test you YDK core library installation from CLI, making sure there are no errors::
225
+
5. Finally test you YDK core library installation from CLI, making sure there are no errors:
226
+
227
+
.. code-block:: sh
221
228
222
229
$ python -c "import ydk.types"
223
230
224
231
225
232
How to install
226
-
--------------
233
+
==============
227
234
228
235
Using Python virtual environment
229
-
================================
236
+
--------------------------------
230
237
231
238
You may want to perform the installation under Python virtual environment (`virtualenv <https://pypi.python.org/pypi/virtualenv/>`_/`virtualenvwrapper <https://pypi.python.org/pypi/virtualenvwrapper>`_).
232
239
The 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.
@@ -252,7 +259,7 @@ Once Python virtual environment is activated, you can perform quick installation
252
259
Take into consideration that you must not attempt to install YDK as root user under virtual environment.
253
260
254
261
Quick Install
255
-
~~~~~~~~~~~~~
262
+
-------------
256
263
257
264
You can install the latest model packages from the Python package index. Note that, in some systems, you need to install the new package as root.
258
265
You get a fully operational YDK environment by installing the ``cisco-ios-xr`` and/or ``cisco-ios-xe`` bundle(s) (depending on whether you're developing for an IOS XR or IOS XE platform),
@@ -296,7 +303,7 @@ To installation of model bundles on CentOS/RedHat platforms require special hand
If you prefer not to use the YDK packages in the Python package index, you need to install manually the ``ydk`` core package and then the model bundles you plan to use.
302
309
To install the ``ydk`` core package, execute::
@@ -326,14 +333,15 @@ To install the ``cisco-ios-xr`` bundle, execute::
326
333
cisco-ios-xr$ cd ..
327
334
328
335
Documentation and Support
329
-
--------------------------
336
+
=========================
337
+
330
338
- Read the `API documentation <http://ydk.cisco.com/py/docs>`_ for details on how to use the API and specific models
331
339
- Samples can be found under the `samples directory <https://github.com/CiscoDevNet/ydk-py/tree/master/core/samples>`_
332
340
- Hundreds of additional samples can be found in the `YDK-PY samples repository <https://github.com/CiscoDevNet/ydk-py-samples>`_
333
341
- Join the `YDK community <https://communities.cisco.com/community/developer/ydk>`_ to connect with other users and with the makers of YDK
334
342
- Additional YDK information can be found at `ydk.io <http://ydk.io>`_
335
343
336
344
Release Notes
337
-
--------------
345
+
=============
338
346
339
347
The current YDK release version is 0.8.2. YDK-Py is licensed under the Apache 2.0 License.
0 commit comments