This section describes how to configure a stack MAC address switching delay using the config method.
Operation |
XPATH |
---|---|
edit-config:config |
/huawei-stack:stack-config/delaytime |
Data requirement 1
Item |
Data |
Description |
---|---|---|
Stack MAC address switching delay |
15 |
Changes the stack MAC address switching delay from the default value 10 minutes to 15 minutes. |
Request example
<?xml version='1.0' encoding='UTF-8'?> <rpc message-id="8" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <edit-config> <target> <running/> </target> <config> <hw-stack:stack-config xmlns:hw-stack="urn:huawei:params:xml:ns:yang:huawei-stack"> <hw-stack:delaytime>15</hw-stack:delaytime> </hw-stack:stack-config> </config> </edit-config> </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>
Data requirement 2
Item |
Data |
Description |
---|---|---|
Stack MAC address switching delay |
20 |
Changes the stack MAC address switching delay from 15 minutes to 20 minutes. |
Replacement example
<?xml version='1.0' encoding='UTF-8'?> <rpc message-id="9" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <edit-config> <target> <running/> </target> <config> <hw-stack:stack-config xmlns:hw-stack="urn:huawei:params:xml:ns:yang:huawei-stack"> <hw-stack:delaytime>20</hw-stack:delaytime> </hw-stack:stack-config> </config> </edit-config> </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>
Data requirement 3
Item |
Data |
Description |
---|---|---|
Stack MAC address switching delay |
20 |
Restores the stack MAC address switching delay from 20 minutes to the default value 10 minutes. |
Deletion example
<?xml version='1.0' encoding='UTF-8'?> <rpc message-id="13" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <edit-config> <target> <running/> </target> <config> <hw-stack:stack-config xmlns:hw-stack="urn:huawei:params:xml:ns:yang:huawei-stack"> <hw-stack:delaytime xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0" xc:operation="delete">20</hw-stack:delaytime> </hw-stack:stack-config> </config> </edit-config> </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>