This section provides a sample of configuring traffic suppression in a BFD using the rpc method.
Operation |
XPATH |
---|---|
edit-config:merge |
/huawei-bd:bridge-domains/bridge-domain |
Item |
Data |
Description |
---|---|---|
BD |
10 |
Configure a BD 10. |
Broadcast traffic CIR |
100 |
Set the broadcast traffic CIR to 100 kbit/s. |
Broadcast traffic CBS |
2000000 |
Set the broadcast traffic CBS to 2000000 bytes. |
Multicast traffic CIR |
100 |
Set the multicast traffic CIR to 100 kbit/s. |
Multicast traffic CBS |
2000000 |
Set the multicast traffic CBS to 2000000 bytes. |
Unicast traffic CIR |
100 |
Set the unicast traffic CIR to 100 kbit/s. |
Unicast traffic CBS |
2000000 |
Set the unicast traffic CBS to 2000000 bytes. |
<?xml version='1.0' encoding='UTF-8'?> <rpc message-id="4" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <edit-config> <target> <running/> </target> <config> <bd:bridge-domains xmlns:bd="urn:huawei:params:xml:ns:yang:huawei-bd"> <bd:bridge-domain xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0" xc:operation="merge"> <bd:id>10</bd:id> <bd:qos> <bd:storm-control xc:operation="merge"> <bd:broadcast> <bd:cir>100</bd:cir> <bd:cbs>2000000</bd:cbs> </bd:broadcast> <bd:multicast> <bd:cir>100</bd:cir> <bd:cbs>2000000</bd:cbs> </bd:multicast> <bd:unknown-unicast> <bd:cir>100</bd:cir> <bd:cbs>2000000</bd:cbs> </bd:unknown-unicast> </bd:storm-control> </bd:qos> </bd:bridge-domain> </bd:bridge-domains> </config> </edit-config> </rpc>
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="2"> <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="0"> <rpc-error> <error-type>application</error-type> <error-tag>operation-failed</error-tag> <error-severity>error</error-severity> <error-path>/huawei-bd:bridge-domains/bridge-domain[id='NEED-A-VALUE-FOR-KEY-NODE!']/id</error-path> <error-message>parse rpc config error.(Invalid value in "id" element.).</error-message> </rpc-error> </rpc-reply>