cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
601
Views
0
Helpful
0
Replies

Sample apps for XR access lists using CRUD/gNMI

deom
Cisco Employee
Cisco Employee

ydk-white-256.png

Hi there,
I have added new sample applications which configure access lists for XR data model using the CRUD service and the gNMI provider.

These sample applications consist of four boilerplate applications and ten custom applications as follows:

gn-create-xr-ipv4-acl-cfg-10-ydk.py - Create boilerplate
gn-create-xr-ipv4-acl-cfg-20-ydk.py - Set log-update rate
gn-create-xr-ipv4-acl-cfg-22-ydk.py - Set log-update rate & threshold
gn-create-xr-ipv4-acl-cfg-30-ydk.py - Allow one host
gn-create-xr-ipv4-acl-cfg-32-ydk.py - Allow multiple hosts
gn-create-xr-ipv4-acl-cfg-34-ydk.py - Log access attempts
gn-create-xr-ipv4-acl-cfg-80-ydk.py - Allow single prefix
gn-create-xr-ipv4-acl-cfg-82-ydk.py - Allow multiple prefixes
gn-create-xr-ipv4-acl-cfg-84-ydk.py - Block a prefix
gn-create-xr-ipv4-acl-cfg-86-ydk.py - Allow prefix ranges
gn-delete-xr-ipv4-acl-cfg-10-ydk.py - Delete boilerplate
gn-delete-xr-ipv4-acl-cfg-20-ydk.py - Delete all access list entries
gn-read-xr-ipv4-acl-cfg-10-ydk.py   - Read boilerplate
gn-update-xr-ipv4-acl-cfg-10-ydk.py - Update boilerplate

 

You can find the python files, the JSON files, and the CLI config files for this set of applications in the following CiscoDevNet Github repository:

https://github.com/CiscoDevNet/ydk-py-samples/tree/master/samples/basic/crud/gnmi/models/cisco-ios-xr/Cisco-IOS-XR-ipv4-acl-cfg

 

Give it a try!

0 Replies 0