< Home

Configuring the Maximum Number of Access Users Allowed on an Interface of an Authentication Access Device

This section provides a sample of configuring the maximum number of access users allowed on the interface of an authentication access device using the merge method.

Table 1 Configuring the maximum number of access users allowed on the interface of an authentication access device

Operation

XPATH

edit-config:merge

ietf-interfaces:interfaces/ietf-interfaces:interface/huawei-nac:police-gang-control/huawei-nac:access-point/huawei-nac:max-user-num

Data Requirements

Table 2 Configuring the maximum number of access users allowed on the interface of an authentication access device

Item

Data

Description

max-user-num

10

-

Request Example

<?xml version="1.0" encoding="UTF-8"?>
<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 xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
            <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces" xc:operation="merge">
                <interface>
                    <name>GigabitEthernet0/0/13</name>
                    <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">iana:ethernetCsmacd</type>
                    <enabled>true</enabled>
                    <police-gang-control xmlns="urn:huawei:params:xml:ns:yang:huawei-nac">
                        <access-point>
                            <max-user-num>10</max-user-num>
                        </access-point>
                    </police-gang-control>
                </interface>
            </interfaces>
        </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

<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>Unrecognized information.</error-message>
    <error-info>Error on node /ietf-interfaces:interfaces/interface[name="GigabitEthernet0/0/13"]/huawei-nac:police-gang-control/access-point/max-user-num</error-info>
  </rpc-error>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >