Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
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-...
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...
Yes, you now got over 200 Python sample apps to using OpenConfig and XR native data models. You'll find examples handling both config and operational data. You can find the apps at:
https://github.com/CiscoDevNet/ydk-py-samples/tree/master/sampl...
Yes, we've reached over 100 sample apps for gNMI in Python! Plenty of examples using IOS XR native models and OpenConfig models. You can find them at:
https://github.com/CiscoDevNet/ydk-py-samples/tree/master/samples/basic/crud/gnmi/models
All sam...
The YDK-Py Vagrant sandbox is now updated with YDK 0.8.2:
vagrant@ydk-py:~$ pip3 list | grep ydk
ydk 0.8.2
ydk-models-cisco-ios-xe 16.9.3
ydk-models-cisco-ios-xr 6.5.2
ydk-models-cis...
What's the specific version string you're having issues with? We've been creating and posting post releases for a long time w/o any issues.
https://pypi.org/project/ydk-models-ietf/#history
user@host:bundles(master %=)$ ls -1 *post*
cisco-ios-xe...
I don't think your models are missing. Make sure you understand the structure of the YANG modules. Cisco-IOS-XR-um-if-* are augmentations of Cisco-IOS-XR-um-interfaces-cfg. You won't see separate Python modules for the augmentations. All data nod...
Are you referring in the RPC? It is captured as the origin:
=============== Get Request Sent ================
path {
origin: "openconfig-interfaces"
elem {
name: "interfaces"
}
}
encoding: JSON_IETF
2020-02-20 19:34:47,233 - ydk - INFO...