Users Guide

Table Of Contents
Translated RESTCONF requests example
Config command
OS10# cli mode rest-translate
Commands executed in this mode will not alter current system state.
Do you want to proceed? [confirm yes/no]:yes
REST-TRANSLATE-OS10# configure terminal
CLI command:
configure terminal
Restconf request(s):
curl -i -k -H "Accept: application/json" -u $USER_NAME:$PASSWORD -X GET https://$MGMT_IP/
restconf/data/dell-mgmt-cm:cms
REST-TRANSLATE-OS10(config)# interface ethernet 1/1/1
CLI command:
interface ethernet 1/1/1
Restconf request(s):
curl -i -k -H "Accept: application/json" -H "Content-Type: application/
json" -u $USER_NAME:$PASSWORD -d '{"ietf-interfaces:interfaces":{"interface":
[{"name":"ethernet1/1/1","type":"iana-if-type:ethernetCsmacd"}]}}' -X PATCH https://
$MGMT_IP/restconf/data/ietf-interfaces:interfaces
REST-TRANSLATE-OS10(conf-if-eth1/1/1)# description "ethernet 1/1/1"
CLI command:
description "ethernet 1/1/1"
Restconf request(s):
curl -i -k -H "Accept: application/json" -H "Content-Type: application/
json" -u $USER_NAME:$PASSWORD -d '{"ietf-interfaces:interfaces":{"interface":
[{"name":"ethernet1/1/1","description":"ethernet 1/1/1"}]}}' -X PATCH https://$MGMT_IP/
restconf/data/ietf-interfaces:interfaces
REST-TRANSLATE-OS10(conf-if-eth1/1/1)# no description
CLI command:
no description
Restconf request(s):
curl -i -k -H "Accept: application/json" -H "Content-Type: application/json" -u
$USER_NAME:$PASSWORD -X DELETE https://$MGMT_IP/restconf/data/ietf-interfaces:interfaces/
interface=ethernet1%2F1%2F1/description
curl -i -k -H "Accept: application/json" -H "Content-Type:
application/json" -u $USER_NAME:$PASSWORD -d '{"ietf-interfaces:interfaces":
{"interface":[{"name":"ethernet1/1/1"}]}}' -X PATCH https://$MGMT_IP/restconf/data/ietf-
interfaces:interfaces
REST-TRANSLATE-OS10(conf-if-eth1/1/1)# exit
Show command
REST-TRANSLATE-OS10# show version
CLI command:
show version
RESTCONF API
1745