< Home

Configuring Permitted Domains for WLAN Users

This section provides a sample of configuring permitted domains for WLAN users using the merge method.

Table 1 Configuring permitted domains for WLAN users

Operation

XPATH

edit-config:merge

/huawei-nac:nac-access/configure-mode/unified-mode/authentication-profile/permit-domain-list/domain

Data Requirements

Table 2 Configuring permitted domains for WLAN users

Item

Data

Description

name

p1

Configure the authentication profile named p1.

domain

d1

Configure permitted domains for WLAN users.

Request Example

<?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:nac-access xmlns:hw-nac="urn:huawei:params:xml:ns:yang:huawei-nac">
        <hw-nac:authentication-profile>
          <hw-nac:name>p1</hw-nac:name>
          <hw-nac:permit-domain-list>
            <hw-nac:domain>d1</hw-nac:domain>
          </hw-nac:permit-domain-list>
        </hw-nac:authentication-profile>
      </hw-nac:nac-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

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="11">
  <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="xuandong"]/permit-domain-list</error-info>
  </rpc-error>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >