< Home

Configuring the Quiet Function for MAC Address Authentication Users

This section provides a sample of configuring the quiet function for MAC address authentication users using the merge method.

Table 1 Configuring the quiet function for MAC address authentication users

Operation

XPATH

edit-config:merge

/huawei-nac-mac:mac-access/quiet-function

Data Requirements

Table 2 Configuring the quiet function for MAC address authentication users

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.

Request Example

<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>

Response Example

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>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic