< Home

Saving the Configuration That Is Automatically Generated for Dedicated Cable Stacking to the Flash Memory

This section describes how to save the configuration that is automatically generated for dedicated cable stacking to the flash memory using the rpc method.

Table 1 Saving the configuration that is automatically generated for dedicated cable stacking to the flash memory

Operation

XPATH

rpc

/huawei-stack:stack-save

Data requirement

Table 2 Saving the configuration that is automatically generated for dedicated cable stacking to the flash memory

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>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >