This section provides a sample of configuring the MAC address format in the URL using the merge method. You can also use the create method to configure the MAC address format in the URL.
Operation |
XPATH |
---|---|
edit-config:merge |
/huawei-aaa-portal/portal/url-template/url-parameter/mac-address-format |
Item |
Data |
Description |
---|---|---|
delimiter |
7 |
Configure the MAC address format in the URL. |
format |
compact |
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_012824316d704d43adb16b1a4245d273"> <edit-config> <target> <running/> </target> <error-option>rollback-on-error</error-option> <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> <portal xmlns="urn:huawei:params:xml:ns:yang:huawei-aaa-portal"> <listening-port>3210</listening-port> <url-template> <name>test</name> <url> <url>12345</url> <url-type>push-only</url-type> </url> <url-parameter> <redirect-url>Rede</redirect-url> <sysname>Sses</sysname> <user-ipaddress>User</user-ipaddress> <user-mac>User</user-mac> <mac-address-format> <delimiter>7</delimiter> <format>compact</format> </mac-address-format> </url-parameter> </url-template> </portal> </config> </edit-config> </rpc>
Sample of successful response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_012824316d704d43adb16b1a4245d273"> <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="29"> <rpc-error> <error-app-tag>-1</error-app-tag> <error-message>Incomplete information.</error-message> <error-info>Error on node /huawei-aaa-portal:portal/url-template[name="huawei"]/url-parameter</error-info> </rpc-error> </rpc-reply>