This section provides a sample of configuring the user logout delay when an interface link is faulty using the merge method.
Operation |
XPATH |
---|---|
edit-config:merge |
/huawei-nac:nac-access/configure-mode/unified-mode/authentication-profile/link-down-offline-parameters/off-line/delay-time |
Item |
Data |
Description |
---|---|---|
delay-time |
45 |
- |
<?xml version="1.0" encoding="UTF-8"?> <rpc message-id="1" 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>firstgo</hw-nac:name> <hw-nac:link-down-offline-parameters> <hw-nac:delay-time>45</hw-nac:delay-time> </hw-nac:link-down-offline-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="0"> <rpc-error> <error-app-tag>-1</error-app-tag> <error-message>Wrong parameter.</error-message> <error-info>Error on node /huawei-nac:nac-access/authentication-profile[name="firstgo"]/link-down-offline-parameters</error-info> </rpc-error> </rpc-reply>