This section provides a sample of configuring the quiet function for MAC address authentication users using the merge method.
Operation |
XPATH |
---|---|
edit-config:merge |
/huawei-nac-mac:mac-access/quiet-function |
Item |
Data |
Description |
---|---|---|
quiet-period |
2400 |
Set the quiet period of a MAC address authentication user to 2400 seconds. |
quiet-times |
7 |
Set the maximum number of authentication failures within 60 seconds before the device quiets the MAC address authentication user to 7. |
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="0"> <edit-config> <target> <running/> </target> <error-option>rollback-on-error</error-option> <config> <mac-access xmlns="urn:huawei:params:xml:ns:yang:huawei-nac-mac" xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:operation="merge"> <quiet-function> <quiet-period>2400</quiet-period> <quiet-times>7</quiet-times> </quiet-function> </mac-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="9"> <rpc-error> <error-type>application</error-type> <error-tag>operation-failed</error-tag> <error-severity>error</error-severity> <error-path>/huawei-nac-mac:mac-access/mac-access-profile[name='laoyu']/permit-mac/permit-mac-authenticate[mac='c0bf-c023-fb11']/prefix-length</error-path> <error-message>parse rpc config error.(Value "99" does not satisfy the constraint "0..32" (range, length, or pattern).).</error-message> </rpc-error> </rpc-reply>