CLI Template
Configures the provided configuration commands. The URI to input file with configuration commands is:
/cli-template/input-file
The following POST method is used to upload configuration command:
{
"icx-openconfig-cli-template:input" : {
"input-file-content" : "vlan 1000 by port",
"type" : "restore"
}
}
(or)
{
"icx-openconfig-cli-template:input" : {
"input-file-content" : "vlan 1100 by port\n interface ethernet 1/1/3\n disable",
"type" : "restore"
}
}
Supported HTTP Operations
URL: https://<host>/restconf/data/cli-template/input-file
Request body:
{
"icx-openconfig-cli-template:input" : {
"input-file-content" : "vlan 1000 by port",
"type" : "restore"
}
}
(or)
{
"icx-openconfig-cli-template:input" : {
"input-file-content" : "vlan 1100 by port\n interface ethernet 1/1/3\n disable",
"type" : "restore"
}
}
Response body: {
"icx-openconfig-cli-template:output" : {
"result" : "{\n\"config_apply_status\": \"SUCCESS\",\n}\n"
}
}