This section provides a sample of configuring the quiet function for 802.1X authentication users using the merge method.
Operation |
XPATH |
---|---|
edit-config:merge |
/huawei-nac-dot1x:dot1x-access/quiet-function/enable /huawei-nac-dot1x:dot1x-access/quiet-function/quiet-period /huawei-nac-dot1x:dot1x-access/quiet-function/quiet-times |
Item |
Data |
Description |
---|---|---|
enable |
true |
Configure the quiet function for 802.1X authentication users. |
quiet-period |
40 |
Set the quiet period for 802.1X authentication users to 40 seconds. |
quiet-times |
8 |
Set the maximum number of authentication failures within 60 seconds before the device quiets an 802.1X authentication user to 8. |
<?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-dot1x:dot1x-access xmlns:hw-nac-dot1x="urn:huawei:params:xml:ns:yang:huawei-nac-dot1x"> <hw-nac-dot1x:quiet-function> <hw-nac-dot1x:enable>true</hw-nac-dot1x:enable> <hw-nac-dot1x:quiet-period>40</hw-nac-dot1x:quiet-period> <hw-nac-dot1x:quiet-times>8</hw-nac-dot1x:quiet-times> </hw-nac-dot1x:quiet-function> </hw-nac-dot1x:dot1x-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
<?xml version='1.0' encoding='UTF-8'?> <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="11"> <rpc-error> <error-type>application</error-type> <error-tag>operation-failed</error-tag> <error-severity>error</error-severity> <error-path>/huawei-nac-dot1x:dot1x-access/quiet-function/enable</error-path> <error-message>parse rpc config error.(Invalid value "1" in "enable" element.).</error-message> </rpc-error> </rpc-reply>