This section describes how to configure a stack ID for a stack member switch using the rpc method.
Operation |
XPATH |
|---|---|
rpc |
/huawei-stack:new-stackid |
Data requirement
Item |
Data |
Description |
|---|---|---|
Old stack ID of a member switch |
0 |
Changes the stack ID of a member switch from 0 to 5. |
New stack ID of a member switch |
5 |
Request example
<?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
<hw-stack:new-stackid xmlns:hw-stack="urn:huawei:params:xml:ns:yang:huawei-stack">
<hw-stack:old-stackid>0</hw-stack:old-stackid>
<hw-stack:stackid>5</hw-stack:stackid>
</hw-stack:new-stackid>
</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 config error.</error-message>
</rpc-error>
</rpc-reply>