YANG Tools

The YANG Tools board hosts the discussions around YANG-related tools, such as the YANG Developer Kit (YDK), YANG Suite, and other tools for network automation.
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel


        The YANG Tools forum hosts discussions around tools like the YANG Developer Kit (YDK), YANG Suite, and other network automation tools.
See the YANG Tools Knowledge Base for answers to some common questions.
For production deployment issues, please contact the Cisco TAC.
For direct help with developer issues, please open a ticket with DevNet Developer Support. Developer ticket support for networking is limited to the products listed here.

Forum Posts

RestconfServiceprovider api for secure connections

I am trying use the RestconfServiceprovider API for secure connection to rest-server.provider = RestconfServiceProvider(repo=repository,                 address="10.11.5.5,                 port=443,                 username="admin",                 p...

ydkdev by Beginner
  • 282 Views
  • 1 replies
  • 0 Helpful votes

Adding/removing ACEs in XR ACLs

How would a simple YDK script would look for adding/removing ACEs in XR ACLs?  Let's say we store ACEs in XML files and pass the file as an argument along with the device and the type of ACE operation (add or remove):   $ ./nc-update-xr-ipv4-acl-cfg-...

saalvare by Cisco Employee
  • 307 Views
  • 0 replies
  • 0 Helpful votes

Resolved! YDK ISIS Segment Routing SRGB

Hi All, I'm trying to configure the SRGB value in ISIS to set the lower and upper bounds of the global label pool for segment routing using YDK and Cisco-IOS-XR-clns-isis-cfg.  module: Cisco-IOS-XR-clns-isis-cfg+--rw isis+--rw instances+--rw instance...

sdefriez1 by Beginner
  • 648 Views
  • 4 replies
  • 0 Helpful votes

Creating a loopback interface using OpenConfig

You may wonder how you can create a loopback interface using the OpenConfig Interface model.  Here's how:   #!/usr/bin/env python # # Copyright 2016 Cisco Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not...

saalvare by Cisco Employee
  • 625 Views
  • 0 replies
  • 0 Helpful votes

YDK path repository issue with OpenDayLight

Hi All,   I'm trying a simple python script based on the YDK module to send some BGP configuration to ODL. I've based my script on the example found in core/samples/path_odl_bgp.py and bgp_xr_opendaylight.py.   But when I run my script I got the foll...

Resolved! Errors with YDK on get_config call

I’ve hit this problem when getting the config of a IOS-XR 6.6.3 (YDK classes are for 6.6.2), it seems that YDK is not working well with the class 'Snmp' from module 'Cisco_IOS_XR_snmp_agent_cfg'. The 6.6.3 is supposed to be only bug fixes of 6.6.2 (I...

vsoaresf by Cisco Employee
  • 438 Views
  • 1 replies
  • 0 Helpful votes

Shared Libraries Error while installing ydk

Hi,I have included the python installation in LD_LIBRARY_PATH, but while installing ydk through "pip install ydk", I am getting the following error:/tmp/pip-install-5vc0wm56/ydk/python.cpp:541:39: warning: unused parameter ‘left’ [-Wunused-parame...

sindhujit by Beginner
  • 1993 Views
  • 16 replies
  • 0 Helpful votes

Resolved! Juniper openconfig-bgp failure

I'm trying to configure BGP on Juniper vMX 19.2R1.8 using one of the examples in YDK repo:import logging from ydk.services import CodecService, CRUDService from ydk.providers import CodecServiceProvider, NetconfServiceProvider from ydk.models.openco...

NetConf Getconfig error

Received the following error when running the below code and not sure how to troubleshoot it or see if it's a known bug on the code level I'm running on the switch or YDK library (any pointers on where to look for open bugs would be appreciated too)....

Difference between CRUD NETCONF and GNMI

I hope that this forum has room for basic questions because by the looks of it you guys are well down this YDK path while I'm stumbling around.  I'm really psyched about ydk-py, everything just looks awesome so I really want to learn this tool.  One ...

New Release of YDK-Cpp 0.8.4 has been posted

 Both ydk-gen and ydk-cpp have been updated at GitHub. The updated documentation is available online at https://ciscodevnet.github.io/ydk-go/ or locally from your cloned repository: 'firefox ydk-cpp/docs/index.html'New features and enhancements:Added...

yangorelik by Rising star
  • 586 Views
  • 2 replies
  • 0 Helpful votes

XRv9K NETCONF 1.1

Hello.I'm experimenting with ydk-examples from https://github.com/CiscoDevNet/ydk-py-samples and got stuck in something.I'm trying to deploy this config on XRv9K import logging from ydk.services import CodecService, CRUDService from ydk.providers im...

Sample apps for encoding ACL using OpenConfig

Hello Community,    I brought the last set of ACL sample apps for basic level ydk-py.  You can encode OpenConfig ACL configurations with this set of sample applications.   cd-encode-oc-acl-10-ydk.py - encode boilerplate cd-encode-oc-acl-30-ydk.py - ...

deom by Cisco Employee
  • 1427 Views
  • 10 replies
  • 0 Helpful votes
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Recognize Your Peers