We recently posted boilerplate apps to configure Cisco IOS XE devices. As promised, we have started to post custom apps to configure different device features. Today, I'll highlight four basic apps to configure interfaces on a Cisco IOS XE device:
nc-create-xe-native-interface-30-ydk.py - IPv4 virtual interface (lo0)
nc-create-xe-native-interface-32-ydk.py - IPv6 virtual interface (lo0)
nc-create-xe-native-interface-34-ydk.py - IPv4 physical interface (ge2)
nc-create-xe-native-interface-36-ydk.py - IPv6 physical interface (ge2)
All these apps make sure of the CRUD service and the NETCONF ServiceProvider. While the apps might run in older versions of YDK, they require YDK 0.6.0 or later. If you want to try the apps before installing the latest release, remember that the YDK Vagrant sandbox already supports YDK 0.6.0.
Give them a try!