cisco IOS XE 17.16.x — Converting IOS Commands to XML

The YANG models on the device is still YANG Version 1.0. However; there is no need to change the RPC payload of the client test cases. Note For inquiries related to the migrate_yang_version.py script or the Cisco IOS XE YANG migration process, send an email to xe-yang-migration@cisco.com . Cisco IOS XE Cupertino 17.8.1 uses YANG Version 1.1. The difference between YANG Version 1.1 and Version 1.0 is documented at https://tools.ietf.org/html/rfc7950#page-10 . YANG Version in Cisco IOS XE Dublin 17.10.1 Cisco-defined YANG models are in YANG Version 1.1 in Cisco IOS XE Dublin 17.10.1 and later releases.

You can download this version from GitHub at https://github.com/YangModels/yang/tree/master/vendor/cisco/xe . In YANG Version 1.1, the critical change that impacts client applications that use NETCONF is in the message content. As per RFC 7950, a server advertises support for YANG 1.1 modules by using the ietf-yang-library , instead of listing them as capabilities in the message. We recommend that you use the ietf-yang-library to gather the list of supported YANG modules, instead of deriving this list from the message content. NETCONF RESTCONF IPv6 Support Data model interfaces (DMIs) support the use of IPv6 protocol.

DMI IPv6 support helps client applications to communicate with services that use IPv6 addresses. External facing interfaces will provide dual-stack support; both IPv4 and IPv6. DMIs are a set of services that facilitate the management of network elements. Application layer protocols such as, NETCONF and RESTCONF access these DMIs over a network. If IPv6 addresses are not configured, external-facing applications will continue to listen on IPv6 sockets; but these sockets will be unreachable. Converting IOS Commands to XML In Cisco IOS XE Cupertino 17.7.1 and later releases, you can automatically translate IOS commands into relevant NETCONF-YANG XML or RESTCONF-JSON request messages.

You can analyze the generated configuration messages and familiarize with the Xpaths used in these messages. The generated configuration in the structured format can be used to provision other devices in the network; however, this configuration cannot be modified. Use the show running-config | format netconf-xml command or the show running-config | format restconf-json command to translate IOS commands. If the netconf-xml keyword is selected, the IOS commands are translated into the NETCONF-YANG XML format, and if the restconf-json keyword is selected, the IOS commands are translated into the RESTCONF-JSON format.

The translation of IOS commands into a structured format is disabled by default. You must initially configure NETCONF-YANG, and once the data model interfaces (DMIs) are initialized, use the appropriate format option to translate the commands. Model-Driven Programmability NETCONF RESTCONF IPv6 Support Programmability Configuration Guide, Cisco IOS XE 17.16.x 160