IPSG Management
Data Model
The configuration model file matching IPSG is huawei-savi.yang.
Object |
Description |
Value |
Remarks |
---|---|---|---|
/huawei-savi:savi/user-bind-statics/user-bind-static/start-ip-address |
Specifies a user IP address as the IP address in the first static binding entry. |
The value is an IPv4 address in dotted decimal notation in the format X.X.X.X or an IPv6 address in the format X:X:X:X:X:X:X:X (a 32-digit hexadecimal number). |
When this object and the /huawei-savi:savi/user-bind-statics/user-bind-static/end-ip-address object are both configured, an IP address range is determined. When only the /huawei-savi:savi/user-bind-statics/user-bind-static/start-ip-address object is configured, only the specified IP address is added to the static binding table. |
/huawei-savi:savi/user-bind-statics/user-bind-static/end-ip-address |
Specifies a user IP address as the IP address in the last static binding entry. |
The value is an IPv4 address in dotted decimal notation in the format X.X.X.X or an IPv6 address in the format X:X:X:X:X:X:X:X (a 32-digit hexadecimal number). |
The value of this object must be greater than the value of the /huawei-savi:savi/user-bind-statics/user-bind-static/start-ip-address object. |
/huawei-savi:savi/user-bind-statics/user-bind-static/mac-address |
Specifies the user MAC address as a parameter in a static binding entry. |
The value is in hexadecimal notation in the format H-H-H. |
N/A |
/huawei-savi:savi/user-bind-statics/user-bind-static/vlan |
Specifies the user VLAN ID as a parameter in a static binding entry. |
The value is an integer in the range from 1 to 4094. |
N/A |
/huawei-savi:savi/user-bind-statics/user-bind-static/ce-vlan |
Specifies the inner VLAN ID in a QinQ packet as a parameter in a static binding entry. |
The value is an integer in the range from 1 to 4094. |
N/A |
Configuring a Static Binding Table
This section provides a sample of configuring a static binding table using the rpc method.
Operation |
XPATH |
---|---|
edit-config |
|
Data Requirements
Item |
data |
Description |
---|---|---|
IP address in the first static binding entry |
10.1.1.4 |
Set the user IP address 10.1.1.4 as the IP address in the first static binding entry. |
IP address in the last static binding entry |
10.1.1.6 |
Set the user IP address 10.1.1.6 as the IP address in the last static binding entry. |
User MAC address |
00:e0:fc:12:34:56 |
Set the user MAC address 00:e0:fc:12:34:56 as a parameter in a static binding entry. |
ID of the VLAN to which a user belongs |
4094 |
Set the user VLAN ID 4094 as a parameter in a static binding entry. |
Inner VLAN ID in a QinQ packet |
1 |
Set the inner VLAN ID 1 in a QinQ packet as a parameter in a static binding entry. |
Request Example
<?xml version="1.0" encoding="UTF-8"?> <rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> <edit-config> <target> <running /> </target> <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> <savi xmlns="urn:huawei:params:xml:ns:yang:huawei-savi"> <user-bind-statics> <user-bind-static xc:operation="merge"> <start-ip-address>10.1.1.4</start-ip-address> <end-ip-address>10.1.1.6</end-ip-address> <mac-address>00:e0:fc:12:34:56</mac-address> <vlan>4094</vlan> <ce-vlan>1</ce-vlan> </user-bind-static> </user-bind-statics> </savi> </config> </edit-config> </rpc>
Response Example
Sample of successful response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> <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="1"> <rpc-error> <error-type>application</error-type> <error-tag>operation-failed</error-tag> <error-severity>error</error-severity> <error-path>/huawei-savi:savi/user-bind-statics/user-bind-static[start-ip-address='10.1.1.4'][end-ip-address='10.1.1.6'][mac-address='00:e0:fc:12:34:56'][vlan='4094'][ce-vlan='5000']/ce-vlan</error-path> <error-message>parse rpc config error. (Value "5000" does not satisfy the constraint "0..4094" (range, length, or pattern).).</error-message> </rpc-error> </rpc-reply>