cisco IOS XE — Converting IOS Commands to XML

edit1 move /Loopback=1 /Loopback=0 before xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-native"> 1 The following example shows that the move request is successful: Device:/nobackup/folder1/confd_6313/bin curl -k -s -u admin:DMIdmi1! --location-trusted "https://10.1.1.1/restconf/data/Cisco-IOS-XE-native:native/interface" -X PATCH -H "Accept: application/yang-data+json" -d '@yang_patch_create_Loopback_interface' -H "Content-type: application/yang-patch+xml" Device:/nobackup/folder1/confd_6313/bin { "ietf-yang-patch:yang-patch-status": { "patch-id": "move-Loopback-patch", “ok" : [null] } } 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. RESTCONF Protocol NETCONF RESTCONF IPv6 Support RESTCONF Protocol 9