This section provides a sample of configuring the MAC address format in the RADIUS packet attribute field using the rpc method.
Operation |
XPATH |
|---|---|
edit-config:create |
/huawei-aaa-radius:radius/radius-server/mac-format-called-station-id or /huawei-aaa-radius:radius/radius-server/mac-format-calling-station-id |
Item |
Data |
Description |
|---|---|---|
MAC address separator in the encapsulated field called-station-id |
dot-split |
Use the dot (.) as the MAC address separator in the encapsulated field called-station-id. |
MAC address separator in the encapsulated field called-station-id |
hyphen-split |
Use the hyphen (-) as the MAC address separator in the encapsulated field hyphen-split. |
MAC address format in the encapsulated field called-station-id |
mode1 |
Set the MAC address format in the encapsulated field called-station-id to XXXX-XXXX-XXXX or XXXX.XXXX.XXXX. |
MAC address case (uppercase or lowercase) in the encapsulated field called-station-id |
lowercase |
Use the MAC address in lowercase in the encapsulated field called-station-id. |
MAC address separator in the encapsulated field calling-station-id |
dot-split |
Use the dot (.) as the MAC address separator in the encapsulated field calling-station-id. |
MAC address format in the encapsulated field calling-station-id |
mode1 |
Set the MAC address format in the encapsulated field calling-station-id to XXXX-XXXX-XXXX or XXXX.XXXX.XXXX. |
Uppercase or lowercase of the MAC address in the encapsulated field calling-station-id |
lowercase |
Use the MAC address in lowercase in the encapsulated field calling-station-id |
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="123">
<edit-config>
<target>
<running/>
</target>
<error-option>rollback-on-error</error-option>
<config>
<radius xmlns="urn:huawei:params:xml:ns:yang:huawei-aaa-radius">
<radius-server xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0" xc:operation="merge">
<name>test12345</name>
<vsys>public</vsys>
<mac-format-called-station-id>
<mac-address-format>dot-split</mac-address-format>
<mode>mode1</mode>
<letter>lowercase</letter>
</mac-format-called-station-id>
<mac-format-calling-station-id>
<mac-address-format>dot-split</mac-address-format>
<mode>mode1</mode>
<letter>lowercase</letter>
</mac-format-calling-station-id>
</radius-server>
</radius>
</config>
</edit-config>
</rpc>
Sample of successful response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="123"> <ok/> </rpc-reply>
Sample of failed response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="123"> <rpc-error> <error-app-tag>-1</error-app-tag> <error-message>Incomplete information.</error-message> <error-info>Error on node /huawei-aaa-radius:radius/radius-server[name="rds",vsys="public"]/mac-format-called-station-id</error-info> </rpc-error> </rpc-reply>