cisco IOS XE — RESTCONF YANG-Patch Support

xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-native"> 1 The following example shows that the edit 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 { "patch-id": "add-Loopback-patch", “ok" : [null] } } "ietf-yang-patch:yang-patch-status": { Insert List Entry The following example shows that the Loopback 1 is inserted after Loopback 0:

xmlns="urn:ietf:params:xml:ns:yang:ietf-yang-patch"> insert-Loopback-patch edit1 insert /Loopback=1 /Loopback=0 after 1 xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-native"> The following example shows that the insert list 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": "insert-Loopback-patch", “ok" :

[null] } } Move List Entry The following example shows Loopback 1 is moved before Loopback 0: xmlns="urn:ietf:params:xml:ns:yang:ietf-yang-patch"> move-Loopback-patch RESTCONF Protocol RESTCONF YANG-Patch Support RESTCONF Protocol 8