This section describes how to save the configuration that is automatically generated for dedicated cable stacking to the flash memory using the rpc method.
Operation |
XPATH |
---|---|
rpc |
/huawei-stack:stack-save |
Data requirement
Item |
Data |
Description |
---|---|---|
Saving the configuration that is automatically generated for dedicated cable stacking to the flash memory |
NA |
NA |
Request example
<?xml version="1.0" encoding="UTF-8"?> <rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="9316bab0-3c75-11e7-ab68-08002700f003"> <hw-stack:stack-save xmlns:hw-stack="urn:huawei:params:xml:ns:yang:huawei-stack"/> </rpc>
Response example
Sample of successful response
<?xml version='1.0' encoding='UTF-8'?> <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="8"> <ok/> </rpc-reply>
Sample of failed response
<?xml version='1.0' encoding='UTF-8'?> <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="9"> <rpc-error> <error-type>application</error-type> <error-tag>operation-failed</error-tag> <error-severity>error</error-severity> <error-message>parse rpc error.</error-message> </rpc-error> </rpc-reply>