This section provides a sample of configuring the maximum rate of interfaces in a MultiGE interface group using the edit-config method.
Operation |
XPATH |
|---|---|
Config |
/dev:device/config-group-speed/slot/slot-index |
/dev:device/config-group-speed/slot/group/group-index |
|
/dev:device/config-group-speed/slot/group/config-speed |
Item |
Data |
Description |
|---|---|---|
Slot ID |
0 |
- |
MultiGE interface group ID |
0, 1, 2, or 3 |
Configure MultiGE interface groups 0 to 3. |
Maximum rate of interfaces in a MultiGE interface group |
2500, 5000, 10000, or 1000 |
The interfaces in MultiGE interface groups 0 to 3 support a maximum rate of 2500 bit/s, 5000 bit/s, 10000 bit/s, and 1000 bit/s respectively. |
<?xml version="1.0" encoding="utf-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="11">
<edit-config>
<target>
<running/>
</target>
<config xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
<dev:device xmlns:dev="urn:huawei:params:xml:ns:yang:huawei-device" nc:operation="replace">
<dev:config-group-speed>
<dev:slot>
<dev:slot-index>0</dev:slot-index>
<dev:group>
<dev:group-index>0</dev:group-index>
<dev:config-speed>2500</dev:config-speed>
</dev:group>
<dev:group>
<dev:group-index>1</dev:group-index>
<dev:config-speed>5000</dev:config-speed>
</dev:group>
<dev:group>
<dev:group-index>2</dev:group-index>
<dev:config-speed>10000</dev:config-speed>
</dev:group>
<dev:group>
<dev:group-index>3</dev:group-index>
<dev:config-speed>1000</dev:config-speed>
</dev:group>
</dev:slot>
</dev:config-group-speed>
</dev:device>
</config>
</edit-config>
</rpc>
<?xml version="1.0" encoding="utf-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="11">
<edit-config>
<target>
<running/>
</target>
<config xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
<dev:device xmlns:dev="urn:huawei:params:xml:ns:yang:huawei-device" nc:operation="remove">
<dev:config-group-speed>
<dev:slot>
<dev:slot-index>0</dev:slot-index>
<dev:group>
<dev:group-index>0</dev:group-index>
<dev:config-speed>2500</dev:config-speed>
</dev:group>
<dev:group>
<dev:group-index>1</dev:group-index>
<dev:config-speed>5000</dev:config-speed>
</dev:group>
<dev:group>
<dev:group-index>2</dev:group-index>
<dev:config-speed>10000</dev:config-speed>
</dev:group>
<dev:group>
<dev:group-index>3</dev:group-index>
<dev:config-speed>1000</dev:config-speed>
</dev:group>
</dev:slot>
</dev:config-group-speed>
</dev:device>
</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="11"> <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"
xmlns:dev="urn:huawei:params:xml:ns:yang:huawei-device"
xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"
message-id="11">
<rpc-error>
<error-app-tag>-1</error-app-tag>
<error-message>slot-index configure error.</error-message>
<error-info>Error on node /huawei-device:device/config-group-speed</error-info>
</rpc-error>
</rpc-reply>