03-27-2019 07:22 PM
It's been awhile since we've added some sample apps for Cisco IOS XE configuration. Here are some examples of encoding OSPF configuration in XML using the Codec service.
cd-encode-xe-native-router-ospf-20-ydk.py - single area ipv4 router cd-encode-xe-native-router-ospf-30-ydk.py - ipv4 ABR cd-encode-xe-native-router-ospf-32-ydk.py - ipv4 ABR with stub area cd-encode-xe-native-router-ospf-34-ydk.py - ipv4 ABR with totally stub area
Remember that the same Codec service can be used to encode data in JSON :-)
You can compare these apps with the CRUD/NETCONF apps that use the same configuration data. See:
https://github.com/CiscoDevNet/ydk-py-samples/tree/master/samples/basic/crud/models/cisco-ios-xe/Cisco-IOS-XE-native/native/router/ospf
Enjoy!!
Enjoy!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide
Log in to Community