This section provides a sample of delivering edged-port-enable configurations to the device using the rpc method.
Operation |
XPATH |
---|---|
rpc |
/huawei-stp:stp/edged-port-enable |
Data Requirements
Item |
Data |
Description |
---|---|---|
Edge port |
true |
Configure an interface as an edge port. |
Request Example
<?xml version='1.0' encoding='UTF-8'?> <rpc message-id="3" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <edit-config> <target> <running/> </target> <config> <huawei-stp:stp xmlns:huawei-stp="urn:huawei:params:xml:ns:yang:huawei-stp"> <huawei-stp:edged-port-enable>true</huawei-stp:edged-port-enable> </huawei-stp:stp> </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="3"> <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="4"> <rpc-error> <error-type>application</error-type> <error-tag>operation-failed</error-tag> <error-severity>error</error-severity> <error-path>/huawei-stp:stp/edged-port-enable</error-path> <error-message>parse rpc config error.(Invalid value "true1" in "edged-port-enable" element.).</error-message> </rpc-error> </rpc-reply>