This section provides a sample of configuring a domain name resolution scheme using the merge method.
Operation |
XPATH |
---|---|
edit-config:merge |
/huawei-nac:nac-access/configure-mode/unified-mode/authentication-profile/domain-name-parameters/security-name-delimiter /huawei-nac:nac-access/configure-mode/unified-mode/authentication-profile/domain-name-parameters/domain-name-delimiter /huawei-nac:nac-access/configure-mode/unified-mode/authentication-profile/domain-name-parameters/domain-name-direction /huawei-nac:nac-access/configure-mode/unified-mode/authentication-profile/domain-name-parameters/domain-name-location |
Item |
Data |
Description |
---|---|---|
name |
p1 |
Configure the authentication profile named p1. |
security-name-delimiter |
\ |
Configure the security string delimiter. |
domain-name-delimiter |
\ |
Configure the domain name delimiter. |
domain-name-direction |
left-to-right |
Set the domain name resolution direction to left-to-right. |
domain-name-location |
after-delimiter |
Set the domain name location to after-delimiter. |
<?xml version='1.0' encoding='UTF-8'?> <rpc message-id="0" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <edit-config> <target> <running/> </target> <config> <hw-nac:nac-access xmlns:hw-nac="urn:huawei:params:xml:ns:yang:huawei-nac"> <hw-nac:authentication-profile> <hw-nac:name>p1</hw-nac:name> <hw-nac:domain-name-parameters> <hw-nac:security-name-delimiter>\</hw-nac:security-name-delimiter> <hw-nac:domain-name-delimiter>\</hw-nac:domain-name-delimiter> <hw-nac:domain-name-direction>left-to-right</hw-nac:domain-name-direction> <hw-nac:domain-name-location>after-delimiter</hw-nac:domain-name-location> </hw-nac:domain-name-parameters> </hw-nac:authentication-profile> </hw-nac:nac-access> </config> </edit-config> </rpc>
Sample of successful response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="0"> <ok/> </rpc-reply>
Sample of failed response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="3"> <rpc-error> <error-app-tag>-1</error-app-tag> <error-message>Unrecognized information.</error-message> <error-info>Error on node /huawei-nac:nac-access/authentication-profile[name="xuan"]/domain-name-parameters/domain-name-delimiter</error-info> </rpc-error> </rpc-reply>