This section provides a sample of configuring the assignment character in the URL using the merge method. You can also use the create method to configure the assignment character in the URL.
Operation |
XPATH |
|---|---|
edit-config:merge |
/huawei-aaa-portal:portal/url-template/mark-parameter/assignment-mark |
Item |
Data |
Description |
|---|---|---|
name |
url1 |
Set the assignment character in the URL to an equal sign (=). |
assignment-mark |
= |
<edit-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<target>
<running/>
</target>
<error-option>rollback-on-error</error-option>
<config>
<portal xmlns="urn:huawei:params:xml:ns:yang:huawei-aaa-portal">
<url-template>
<name>url1</name>
<mark-parameter>
<assignment-mark>=</assignment-mark>
</mark-parameter>
</url-template>
</portal>
</config>
</edit-config>
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="33">
<rpc-error>
<error-app-tag>-1</error-app-tag>
<error-message>Invalid mark-parameter assignment-mark</error-message>
<error-info>Error on node /huawei-aaa-portal:portal/url-template[name="url1"]/mark-parameter/assignment-mark</error-info>
</rpc-error>
</rpc-reply>