No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

NETCONF YANG API Reference

AR100, AR120, AR160, AR1200, AR2200, AR3200, and AR3600 V300R003

NETCONF YANG API Reference
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
WLAN

WLAN

NOTE:
  • Only the AR121W, AR129CVW, AR121GW-L, AR129GW-L, AR129CGVW-L, AR109W, AR109GW-L, AR151W-P, AR156W, AR157W, AR157VW, AR158EVW, AR161W, AR161EW, AR161EW-M1, AR161FGW-L, AR161FGW-Lc, AR161FW, AR161FW-P-M5, AR161FGW-La, AR169FVW, AR169FVW-8S, AR169JFVW-4B4S, AR169CVW-4B4S, AR169EGW-L, AR169EW, AR169CVW, AR169FGVW-L, AR169FGW-L, AR169W-P-M9, AR169RW-P-M9, AR201VW-P, AR207VW, AR1220W, AR1220EVW and AR1220VW provide WLAN Fat AP functions.
  • AR109, AR109W, AR109GW-L do not support WLAN AC function.
  • AR109W, AR109GW-L, AR129CVW, AR129CGVW-L, AR169CVW, AR169CVW-4B4S do not support WAPI security policy.

Data Model

The data model files matching the WLAN are huawei-wlan-radio.yang, huawei-wlan-vap.yang, huawei-wlan-security.yang, and huawei-traffic.yang.

Table 3-72 WLAN

Object

Description

WLAN

Indicates that the object of requesting an operation (creation, deletion, or modification) is the WLAN configuration. It is a root object, which is only used to contain sub-objects.

/huawei-wlan-radio:radio/regulatory-domain/country-code

Indicates the AP's country code.

/huawei-wlan-radio:radio/radio-profile/name

Indicates the name of radio profile.

/huawei-wlan-radio:radio/radio-profile/rrm/calibrate/auto-channel-select

Indicates the channel mode in the radio profile.

/huawei-wlan-radio:radio/radio-profile/power-auto-adjust

Indicates the power mode in the radio profile.

/ietf-interfaces:interfaces/interface/huawei-wlan-radio:wlan/radio/radio-profile-name

Indicates the radio profile bound to the radio interface.

/ietf-interfaces:interfaces/interface/huawei-wlan-radio:wlan/radio/eirp

Indicates the power level of the radio.

/ietf-interfaces:interfaces/interface/huawei-wlan-radio:wlan/radio/channel

Indicates the radio channel.

/ietf-interfaces:interfaces/interface/huawei-wlan-radio:wlan/radio/bandwidth

Indicates the operating bandwidth of the radio.

/ietf-interfaces:interfaces/interface/huawei-wlan-radio:wlan/radio/radio-enable

Indicates whether the radio interface is enabled or disabled.

/huawei-wlan-vap:vap/vap-profile/name

Indicates the service set name.

/huawei-wlan-vap:vap/vap-profile/ssid

Indicates the service set identifier (SSID) of the service set.

/huawei-wlan-vap:vap/vap-profile/hide

Indicates whether the SSID is hidden.

/huawei-wlan-vap:vap/vap-profile/max-sta-number

Indicates the maximum number of STAs in a service set.

/huawei-wlan-vap:vap/vap-profile/vlan

Indicates the VLAN where the WLAN-BSS interface is added.

/huawei-wlan-vap:vap/vap-profile/service-mode

Indicates the service mode of the SSID.

/ietf-interfaces:interfaces/interface/huawei-wlan-radio:wlan/huawei-wlan-vap:vap/vap-profile-name

Indicates the service set name bound to a radio interface.

/ietf-interfaces:interfaces/interface/huawei-wlan-radio:wlan/huawei-wlan-vap:vap/wid

Indicates the WLAN index.

/huawei-wlan-vap:vap/vap-profile/huawei-wlan-security:security/policy-type

Indicates the security policy type.

/huawei-wlan-vap:vap/vap-profile/huawei-wlan-security:security/wep-parameter/authentication-method

Indicates the WEP authentication mode that only supports the pre-shared key authentication.

/huawei-wlan-vap:vap/vap-profile/huawei-wlan-security:security/wep-parameter/default-key-id

Indicates the default key index for WEP authentication.

/huawei-wlan-vap:vap/vap-profile/huawei-wlan-security:security/wep-parameter/wep-key/id

Indicates the key index for WEP authentication.

/huawei-wlan-vap:vap/vap-profile/huawei-wlan-security:security/wep-parameter/wep-key/wep-method

Indicates the WEP encryption mode.

/huawei-wlan-vap:vap/vap-profile/huawei-wlan-security:security/wep-parameter/wep-key/key-value

Indicates the WEP authentication password.

/huawei-wlan-vap:vap/vap-profile/huawei-wlan-security:security/wpa-parameter/authentication-method

Indicates the WPA authentication mode that only supports the pre-shared key authentication.

/huawei-wlan-vap:vap/vap-profile/huawei-wlan-security:security/wpa-parameter/psk

Indicates the WPA authentication password.

/huawei-wlan-vap:vap/vap-profile/huawei-wlan-security:security/wpa-parameter/encription-method

Indicates the WPA encryption mode.

/huawei-wlan-vap:vap/vap-profile/huawei-wlan-security:security/wpa2-parameter/authentication-method

Indicates the WPA2 authentication mode that only supports the pre-shared key authentication.

/huawei-wlan-vap:vap/vap-profile/huawei-wlan-security:security/wpa2-parameter/psk

Indicates the WPA2 authentication password.

/huawei-wlan-vap:vap/vap-profile/huawei-wlan-security:security/wpa2-parameter/encrption-method

Indicates the type of the WPA2 encryption mode.

/huawei-wlan-vap:vap/vap-profile/huawei-wlan-security:security/wapi-parameter/authentication-method

Indicates the WAPI authentication mode that only supports the pre-shared key authentication.

/huawei-wlan-vap:vap/vap-profile/huawei-wlan-security:security/wapi-parameter/psk

Indicates the WAPI authentication password.

/huawei-wlan-vap:vap/vap-profile/huawei-traffic:limit/rate-limit-client/direction

Indicates the rate limit direction, which can be inbound or outbound.

/huawei-wlan-vap:vap/vap-profile/huawei-traffic:limit/rate-limit-client/cir

Indicates the rate limit.

Creating the WLAN Configuration

Creating a Country Code

This section provides a sample of creating a Country Code.

Table 3-73 Creating a country code

Operation

XPATH

edit-config:create

/huawei-wlan-radio:radio/regulatory-domain/country-code

Data Requirements
Table 3-74 Creating the country code

Item

Data

Description

Country code

ES

Set the AP's country code to ES.

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 xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
            <radio xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-radio"> 
                <regulatory-domain> 
                    <country-code>ES</country-code> 
                </regulatory-domain> 
           </radio> 
        </config> 
    </edit-config> 
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1001"> 
  <ok/> 
</rpc-reply> 
Creating a Radio Profile

This section provides a sample of creating a radio profile.

Table 3-75 Creating a radio profile

Operation

XPATH

edit-config:create

/huawei-wlan-radio:radio/radio-profile

Data Requirements
Table 3-76 Creating a radio profile

Item

Data

Description

Radio profile name

radio1

Create a radio profile named radio1.

Channel mode

true

Set the channel mode to automatic. The channel mode can be automatic or fixed. The value True indicates the automatic mode.

Power mode

true

Set the power mode to automatic. The power mode can be automatic or fixed. The value True indicates the automatic mode.

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 xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
            <radio xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-radio"> 
                <radio-profile> 
                    <name>radio1</name> 
                    <rrm> 
                        <calibrate> 
                            <auto-channel-select>true</auto-channel-select> 
                        </calibrate> 
                    </rrm> 
                    <power-auto-adjust>true</power-auto-adjust> 
                </radio-profile>                         
            </radio> 
        </config> 
    </edit-config> 
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1001"> 
  <ok/> 
</rpc-reply> 
Binding a Radio Profile and Delivering the Radio Configuration

This section provides a sample of binding a radio profile and delivering the radio configuration.

NOTE:

The radio profile to be bound must have been created, where parameters have been configured.

Table 3-77 Binding a radio profile and delivering the radio configuration

Operation

XPATH

edit-config: default

/ietf-interfaces:interfaces/interface/huawei-wlan-radio:wlan/radio

Data Requirements
Table 3-78 Binding a radio profile and delivering the radio configuration

Item

Data

Description

Radio profile name

radio1

Bind the radio profile named radio1 to a radio interface. The radio profile must have been created.

Power level

7

Set the power level of a radio to 7.

Channel

2

Set the radio channel to 2.

Bandwidth

20mhz

Set the radio working bandwidth to 20 MHz.

Radio interface is enabled

true

Enable the radio interface. If a device supports only one radio interface, only one interface can be enabled.

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 xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
            <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"> 
                <interface> 
                    <name>Wlan-Radio0/0/0</name> 
                    <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">hiperlan2</type> 
                    <wlan xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-radio"> 
                        <radio> 
                            <radio-profile-name>radio1</radio-profile-name>    
                            <eirp>7</eirp> 
                            <bandwidth>20mhz</bandwidth> 
                            <channel>2</channel> 
                            <radio-enable>true</radio-enable> 
                        </radio> 
                    </wlan>  
                </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="1001"> 
  <ok/> 
</rpc-reply> 
Creating a Service Set

This section provides a sample of creating a service set.

NOTE:
  • In the yang file, the default value of max-sta-number is 64. The maximum value of some devices is 32. Before delivery, ensure that the value does not exceed the maximum value of the device; otherwise, the delivery fails.
  • Each VLAN can be used for a VAP, and multiple VAPs cannot reuse the same VLAN.
  • The security profile and traffic profile with empty configuration with the same name are created when the service set is created. If the first service set is created, the default traffic profile and security profile are used.
Table 3-79 Creating a service set

Operation

XPATH

edit-config:create

/huawei-wlan-vap:vap/vap-profile

Data Requirements
Table 3-80 Creating a service set

Item

Data

Description

Service set name

service

Create a service set named service.

SSID

ssid1234

Set the SSID in a service set to ssid1234.

SSID hiding

disable

Disable SSID hiding.

Maximum number of STAs of a service set

31

Set the maximum number of STAs of a service set to 31.

VLAN

2

Add the WLAN-BSS interface to VLAN 2.

SSID service status

true

Bind the service set to a radio interface so that the SSID takes effect.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062"> 
    <edit-config> 
        <target> 
            <running/> 
        </target> 
        <error-option>rollback-on-error</error-option> 
        <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
           <vap xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-vap"> 
                <vap-profile> 
                    <name>service</name> 
                    <ssid>ssid1234</ssid> 
                    <hide>disable</hide> 
                    <max-sta-number>31</max-sta-number> 
                    <vlan>2</vlan> 
                    <service-mode>true</service-mode> 
                </vap-profile> 
            </vap> 
        </config> 
  </edit-config> 
</rpc>            
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1001"> 
  <ok/> 
</rpc-reply> 
Binding a Service Set to the Radio Interface

This section provides a sample of binding a service set to the radio interface.

NOTE:

The radio interface must be bound to a radio profile so that it can be bound to a service set.

Table 3-81 Binding a service set to the radio interface

Operation

XPATH

edit-config: default

/ietf-interfaces:interfaces/interface/huawei-wlan-radio:wlan/huawei-wlan-vap:vap

Data Requirements
Table 3-82 Binding a service set to the radio interface

Item

Data

Description

Service set name

service

Bind the service set named service to a radio interface. The service set name must have been created.

WLAN index

1

Set the WLAN index of the service set named service to 1.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062"> 
    <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"> 
                <interface> 
                    <name>Wlan-Radio0/0/0</name> 
                    <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">hiperlan2</type> 
                    <wlan xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-radio">  
                        <vap xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-vap"> 
                                <vap-profile-name>service</vap-profile-name> 
                                <wid>1</wid> 
                        </vap>                         
                    </wlan>  
                </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="1001"> 
  <ok/> 
</rpc-reply> 
Configuring a Security Profile

This section provides a sample of configuring a security profile.

NOTE:

When configuring an encryption mode in a security profile, ensure that the device supports the encryption mode. Otherwise, the delivery fails.

Table 3-83 Configuring a security profile

Operation

XPATH

edit-config: default

/huawei-wlan-vap:vap/vap-profile/huawei-wlan-security:security

Data Requirements
Table 3-84 Configuring a security profile

Item

Data

Description

Security policy type

wpa

Set the security policy to WPA in the security profile. WLAN security policies include WEP, WPA, WPA2, and WAPI.

WEP authentication mode

shared-key

Set the WEP authentication mode to shared-key. WEP supports open-system and share-key authentication modes.

WEP key index

0

Set the index of the WEP shared key to 0.

WEP encryption mode

wep-40

Set the WEP encryption mode to wep-40. WEP supports wep-40 and wep-104 encryption modes.

WEP password

hua12

Set the WEP password to hua12.

Default WEP key index

0

Set the default WEP key index to 0.

NOTE:
  • By default, the shared key corresponding to the key index of 0 is used.
  • A maximum of four WEP keys can be configured, and only one WEP key is used for encryption.

WPA/WPA2 authentication mode

psk

Set the WPA or WPA2 authentication mode to PSK. WPA and WPA2 support dot1x and PSK authentication modes.

WPA/WPA2 password

huawei123

Set the WPA or WPA2 passwords to huawei123.

WPA/WPA2 encryption mode

tkip

Set the WPA or WPA2 encryption mode to TKIP. WPA and WPA2 support TKIP and CCMP encryption modes.

WAPI authentication mode

psk

Set the authentication mode of WAPI to PSK. WAPI supports only the PSK authentication mode.

WAPI password

huawei123

Set the WAPI password to huawei123.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062"> 
    <edit-config> 
        <target> 
            <running/> 
        </target> 
        <error-option>rollback-on-error</error-option> 
        <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
           <vap xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-vap"> 
                <vap-profile>                     
                   <name>service</name> 
                    <ssid>ssid123</ssid> 
                    <hide>enable</hide> 
                    <max-sta-number>32</max-sta-number> 
                    <vlan>1</vlan>                      
                    <security xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-security"> 
                        <policy-type>wpa</policy-type> 
                        <wep-parameter> 
                            <authentication-method>shared-key</authentication-method> 
                            <wep-key> 
                                <id>0</id> 
                                <wep-method>wep-40</wep-method> 
                                <key-value>hua12</key-value> 
                            </wep-key>                             
                            <default-key-id>0</default-key-id> 
                        </wep-parameter>  
                        <wpa2-parameter> 
                            <authentication-method>psk</authentication-method> 
                            <psk>huawei123</psk> 
                          <encrption-method>tkip</encrption-method> 
                        </wpa2-parameter> 
                        <wpa-parameter> 
                            <authentication-method>psk</authentication-method> 
                            <psk>huawei123</psk> 
                            <encrption-method>tkip</encrption-method> 
                        </wpa-parameter> 
                        <wapi-parameter> 
                            <authentication-method>psk</authentication-method> 
                            <psk>huawei123</psk>                        
                        </wapi-parameter> 
                    </security> 
                </vap-profile> 
            </vap> 
        </config> 
    </edit-config> 
</rpc>                
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1001"> 
  <ok/> 
</rpc-reply> 
Configuring the Rate Limit for Uplink and Downlink Packets of STAs

This section provides a sample of configuring the rate limit for uplink and downlink packets of STAs.

Table 3-85 Configuring the rate limit for uplink and downlink packets of STAs

Operation

XPATH

edit-config: default

/huawei-wlan-vap:vap/vap-profile/huawei-traffic:limit/rate-limit-client

Data Requirements
Table 3-86 Configuring the rate limit for uplink and downlink packets of STAs

Item

Data

Description

Uplink rate limit

upstream

Set the rate limit for uplink packets of STAs.

Downlink rate limit

downstream

Set the rate limit for downlink packets of STAs.

Uplink rate

64

Set the rate limit for uplink packets of STAs to 64 kbit/s.

Downlink rate

64

Set the rate limit for downlink packets of STAs to 64 kbit/s.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062"> 
    <edit-config> 
        <target> 
            <running/> 
        </target> 
        <error-option>rollback-on-error</error-option> 
      <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
           <vap xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-vap"> 
                <vap-profile>                     
                   <name>service</name> 
                    <ssid>ssid123</ssid> 
                    <hide>enable</hide> 
                    <max-sta-number>32</max-sta-number> 
                    <vlan>1</vlan>  
                    <limit xmlns="urn:huawei:params:xml:ns:yang:huawei-traffic"> 
                        <rate-limit-client> 
                            <direction>upstream</direction> 
                            <cir>64</cir> 
                        </rate-limit-client> 
                        <rate-limit-client> 
                            <direction>downstream</direction> 
                            <cir>64</cir> 
                        </rate-limit-client> 
                    </limit> 
                </vap-profile> 
            </vap> 
        </config> 
    </edit-config> 
</rpc>                
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1001"> 
  <ok/> 
</rpc-reply> 
Binding an Authentication Profile

Binding an Authentication Profile

This section provides a sample of binding an authentication profile.

Table 3-87 Binding an authentication profile

Operation

XPATH

edit-config: default

/huawei-wlan-vap:vap/vap-profile/huawei-nac:authentication-profile

Data Requirements
Table 3-88 Binding an authentication profile

Item

Data

Description

Authentication profile name

Auth

Bind the authentication profile to a WLAN-BSS interface.

NOTE:

The authentication profile must have been created.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <vap xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-vap">
    <vap-profile>
     <name>service</name>
     <ssid>ssid123</ssid>
     <hide>enable</hide>
     <max-sta-number>32</max-sta-number>
     <vlan>1</vlan>
     <authentication-profile xmlns="urn:huawei:params:xml:ns:yang:huawei-nac">
      <authentication-profile-name>Auth</authentication-profile-name>
     </authentication-profile>
    </vap-profile>
   </vap>
  </config>
 </edit-config>
</rpc> 
Respons Example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062"> 
  <ok/> 
</rpc-reply> 

Modifying the WLAN Configuration

Changing a Country Code

This section provides a sample of changing a country code.

NOTE:

When the country code is modified, the corresponding configuration of the radio interface will be deleted. In this case, you need to reconfigure the channel and power level. The channel may vary depending on the configured country code. The power level is affected by local laws and regulations and channels corresponding to the country code. You should select the country code according to the actual situation. The configured value must be different from the previous value. The service set and radio profile are restored automatically, and do not need to be reconfigured.

Table 3-89 Changing a country code

Operation

XPATH

edit-config:replace

/huawei-wlan-radio:radio/regulatory-domain/country-code

Data Requirements
Table 3-90 Changing a country code

Item

Data

Description

Country code

US

Set the AP's country code to US.

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 xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
            <radio xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-radio"> 
                <regulatory-domain xc:operation="replace"> 
                    <country-code>US</country-code> 
                </regulatory-domain> 
           </radio> 
        </config> 
    </edit-config> 
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1001"> 
  <ok/> 
</rpc-reply> 
Changing a Radio Profile

This section provides a sample of changing a radio profile.

Table 3-91 Changing a radio profile

Operation

XPATH

edit-config:replace

/huawei-wlan-radio:radio/radio-profile

Data Requirements
Table 3-92 Changing a radio profile

Item

Data

Description

Radio profile name

radio1

Change the radio profile named radio1.

Channel mode

false

Change the channel mode to fixed. The channel mode can be automatic or fixed. The value False indicates the fixed mode.

Power mode

false

Change the power mode to fixed. The power mode can be automatic or fixed. The value False indicates the fixed mode.

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 xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
            <radio xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-radio"> 
                <radio-profile xc:operation="replace"> 
                    <name>radio1</name> 
                    <rrm> 
                        <calibrate> 
                            <auto-channel-select>false</auto-channel-select> 
                        </calibrate> 
                    </rrm> 
                    <power-auto-adjust>false</power-auto-adjust> 
                </radio-profile>                         
            </radio> 
        </config> 
    </edit-config> 
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1001"> 
  <ok/> 
</rpc-reply> 
Modifying the Delivered Radio Configuration

This section provides a sample of modifying the delivered radio configuration.

Table 3-93 Modifying the delivered radio configuration

Operation

XPATH

edit-config:replace

/ietf-interfaces:interfaces/interface/huawei-wlan-radio:wlan/radio

Data Requirements
Table 3-94 Modifying the delivered radio configuration

Item

Data

Description

Radio profile name

radio1

Bind the radio profile named radio1 to a radio interface. The radio profile must have been created.

Power level

8

Change the power level of a radio to 8.

Channel

6

Change the radio channel to 6.

Bandwidth

40mhz-minus

Change the radio working bandwidth to 40 MHz minus.

Radio interface is enabled

false

Disable the radio interface.

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 xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
            <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"> 
                <interface> 
                    <name>Wlan-Radio0/0/0</name> 
                    <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">hiperlan2</type> 
                    <wlan xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-radio"> 
                        <radio xc:operation="replace"> 
                            <radio-profile-name>radio1</radio-profile-name>    
                            <eirp>8</eirp> 
                            <bandwidth>40mhz-minus</bandwidth> 
                            <channel>6</channel> 
                            <radio-enable>false</radio-enable> 
                        </radio> 
                    </wlan>  
                </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="1001"> 
  <ok/> 
</rpc-reply> 
Changing a Service Set

This section provides a sample of changing a service set.

NOTE:
  • In the yang file, the default value of max-sta-number is 64. The maximum value of some devices is 32. Before delivery, ensure that the value does not exceed the maximum value of the device; otherwise, the delivery fails.
  • Each VLAN can be used for a VAP, and multiple VAPs cannot reuse the same VLAN.
Table 3-95 Changing a service set

Operation

XPATH

edit-config:replace

/huawei-wlan-vap:vap/vap-profile

Data Requirements
Table 3-96 Changing a service set

Item

Data

Description

Service set name

service

Change the service set named service.

SSID

ssid123

Change the SSID in a service set to ssid123.

SSID hiding

enable

Enable SSID hiding.

Maximum number of STAs of a service set

32

Set the maximum number of STAs of a service set to 32.

VLAN

1

Add the WLAN-BSS interface to VLAN 1. After the service set is bound to a radio, the VLAN cannot be modified.

SSID service status

false

Unbind the service set from the radio interface. THe SSID does not take effect.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062"> 
    <edit-config> 
        <target> 
            <running/> 
        </target> 
        <error-option>rollback-on-error</error-option> 
        <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
           <vap xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-vap"> 
                <vap-profile xc:operation="replace"> 
                    <name>service</name> 
                    <ssid>ssid123</ssid> 
                    <hide>enable</hide> 
                    <max-sta-number>32</max-sta-number> 
                    <vlan>1</vlan> 
                    <service-mode>false</service-mode> 
                </vap-profile> 
            </vap> 
        </config> 
    </edit-config> 
</rpc>            
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1001"> 
  <ok/> 
</rpc-reply> 
Changing the Service Set Bound to a Radio Interface

This section provides a sample of changing the service set bound to a radio interface.

Table 3-97 Changing the service set bound to a radio interface

Operation

XPATH

edit-config:replace

/ietf-interfaces:interfaces/interface/huawei-wlan-radio:wlan/huawei-wlan-vap:vap

Data Requirements
Table 3-98 Changing the service set bound to a radio interface

Item

Data

Description

Service set name

service456

Change the service set bound to a radio interface to service456. The service set name must have been created.

WLAN index

1

Set the WLAN index of the service set named service 456 to 1.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062">
    <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">
                <interface>
                    <name>Wlan-Radio0/0/0</name>
                    <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">hiperlan2</type>
                    <wlan xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-radio">
                        <vap xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-vap" xc:operation="replace">
                            <vap-profile-name>service456</vap-profile-name>
                            <wid>2</wid>
                        </vap>
                    </wlan>
                </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="1001"> 
  <ok/> 
</rpc-reply> 
Modifying the Security Profile Configuration

This section provides a sample of changing the security profile configuration.

NOTE:

When changing an encryption mode in a security profile, ensure that the device supports the encryption mode. Otherwise, the delivery fails.

Table 3-99 Changing the security profile configuration

Operation

XPATH

edit-config:replace

/huawei-wlan-vap:vap/vap-profile/huawei-wlan-security:security

Data Requirements
Table 3-100 Modifying the security profile configuration

Item

Data

Description

Security policy type

wep

Change the security policy to WEP in the security profile. WLAN security policies include WEP, WPA, WPA2, and WAPI.

WEP authentication mode

share-key

Change the WEP authentication mode to open. WEP supports open and share-key authentication modes.

WEP key index

1

Change the index of the WEP shared key to 1.

WEP encryption mode

wep-104

Change the WEP encryption mode to wep-104. WEP supports wep-40 and wep-104 encryption modes.

WEP password

1234567890hua

Change the WEP password to 1234567890hua.

Default WEP key index

1

Change the default WEP key index to 1.

NOTE:
  • By default, the shared key corresponding to the key index of 0 is used.
  • A maximum of four WEP keys can be configured, and only one WEP key is used for encryption.

WPA/WPA2 authentication mode

psk

Change the WPA and WPA2 authentication mode to 802.1x. WPA and WPA2 support 802.1x and psk authentication modes.

WPA/WPA2 password

huawei123456

Change the WPA or WPA2 password to huawei123456.

WPA/WPA2 encryption mode

aes

Change the WPA or WPA2 authentication mode to AES. WPA and WPA2 support TKIP and AES encryption modes.

WAPI password

huawei123456

Change the WAPI password to huawei123456.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062">
    <edit-config>
        <target>
            <running/>
        </target>
        <error-option>rollback-on-error</error-option>
        <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
            <vap xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-vap">
                <vap-profile>
                    <name>service</name>
                    <ssid>ssid123</ssid>
                    <hide>enable</hide>
                    <max-sta-number>32</max-sta-number>
                    <vlan>1</vlan>
                    <security xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-security" xc:operation="replace">
                        <policy-type>wpa</policy-type>
                        <wep-parameter>
                            <authentication-method>shared-key</authentication-method>
                            <wep-key>
                                <id>1</id>
                                <wep-method>wep-104</wep-method>
                                <key-value>1234567890hua</key-value>
                            </wep-key>
                            <default-key-id>1</default-key-id>
                        </wep-parameter>
                        <wpa2-parameter>
                            <authentication-method>psk</authentication-method>
                            <psk>huawei123456</psk>
                            <encrption-method>aes</encrption-method>
                        </wpa2-parameter>
                        <wpa-parameter>
                            <authentication-method>psk</authentication-method>
                            <psk>huawei123456</psk>
                            <encrption-method>aes</encrption-method>
                        </wpa-parameter>
                        <wapi-parameter>
                            <authentication-method>psk</authentication-method>
                            <psk>huawei123456</psk>
                        </wapi-parameter>
                    </security>
                </vap-profile>
            </vap>
        </config>
    </edit-config>
</rpc>               
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1001"> 
  <ok/> 
</rpc-reply> 
Changing the Rate Limit for Uplink and Downlink Packets of STAs

This section provides a sample of changing the rate limit for uplink and downlink packets of STAs.

Table 3-101 Changing the rate limit for uplink and downlink packets of STAs

Operation

XPATH

edit-config:replace

/huawei-wlan-vap:vap/vap-profile/huawei-traffic:limit/rate-limit-client

Data Requirements
Table 3-102 Changing the rate limit for uplink and downlink packets of STAs

Item

Data

Description

Uplink rate

108

Change the rate limit for uplink packets of STAs to 108 kbit/s.

Downlink rate

108

Change the rate limit for downlink packets of STAs to 108 kbit/s.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062"> 
    <edit-config> 
        <target> 
            <running/> 
        </target> 
        <error-option>rollback-on-error</error-option> 
        <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
           <vap xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-vap"> 
                <vap-profile>                     
                   <name>service</name> 
                    <ssid>ssid123</ssid> 
                    <hide>enable</hide> 
                    <max-sta-number>32</max-sta-number> 
                    <vlan>1</vlan>  
                    <limit xmlns="urn:huawei:params:xml:ns:yang:huawei-traffic"> 
                        <rate-limit-client xc:operation="replace"> 
                            <direction>upstream</direction> 
                            <cir>108</cir> 
                        </rate-limit-client> 
                        <rate-limit-client xc:operation="replace"> 
                            <direction>downstream</direction> 
                            <cir>108</cir> 
                        </rate-limit-client> 
                    </limit> 
                </vap-profile> 
            </vap> 
        </config> 
    </edit-config> 
</rpc>                                
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1001"> 
  <ok/> 
</rpc-reply> 

Deleting the WLAN Configuration

Deleting a Country Code

This section provides a sample of deleting a country code.

Table 3-103 Deleting a country code

Operation

XPATH

edit-config:delete

/huawei-wlan-radio:radio/regulatory-domain/country-code

Data Requirements
Table 3-104 Deleting a country code

Item

Data

Description

Country code

None

Restore the default country code of an AP. By default, the default country code of an AP is CN.

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 xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
            <radio xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-radio"> 
                <regulatory-domain xc:operation="remove">            
                </regulatory-domain> 
           </radio> 
        </config> 
    </edit-config> 
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1001"> 
  <ok/> 
</rpc-reply> 
Deleting a Radio Profile

This section provides a sample of deleting a radio profile.

Table 3-105 Deleting a radio profile

Operation

XPATH

edit-config:delete

/huawei-wlan-radio:radio/radio-profile

Data Requirements
Table 3-106 Deleting a radio profile

Item

Data

Description

Radio profile name

radio1

Delete the radio profile named radio1.

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 xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
            <radio xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-radio"> 
                <radio-profile xc:operation="remove">                                     <name>radio1</name> 
                </radio-profile>                         
            </radio> 
        </config> 
    </edit-config> 
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1001"> 
  <ok/> 
</rpc-reply> 
Deleting the Bound Radio Profile and Radio Configuration

This section provides a sample of deleting the bound radio profile and radio configuration.

NOTE:

Before deleting the bound radio profile, delete the bound service set.

Table 3-107 Deleting the bound radio profile and radio configuration

Operation

XPATH

edit-config:delete

/ietf-interfaces:interfaces/interface/huawei-wlan-radio:wlan/radio

Data Requirements

Delete the radio profile bound to the radio interface.

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 xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
            <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"> 
                <interface> 
                    <name>Wlan-Radio0/0/0</name> 
                    <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">hiperlan2</type> 
                    <wlan xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-radio"> 
                        <radio xc:operation="remove"> 
                        </radio> 
                    </wlan>  
                </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="1001"> 
  <ok/> 
</rpc-reply> 
Deleting a Service Set

This section provides a sample of deleting a service set.

NOTE:

When you delete a service set, the security profile and traffic profile with the same name will be deleted simultaneously. If the default security profile and traffic profile are used, the empty configuration is restored.

Table 3-108 Deleting a service set

Operation

XPATH

edit-config:delete

/huawei-wlan-vap:vap/vap-profile

Data Requirements
Table 3-109 Deleting a service set

Item

Data

Description

Service set name

service

Delete a service set named service.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062"> 
    <edit-config> 
        <target> 
            <running/> 
        </target> 
        <error-option>rollback-on-error</error-option> 
        <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
           <vap xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-vap"> 
                <vap-profile xc:operation="remove"> 
                    <name>service</name>                    
                </vap-profile> 
            </vap> 
        </config> 
    </edit-config> 
</rpc> 
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1001"> 
  <ok/> 
</rpc-reply> 
Deleting the Service Set Bound to a Radio Interface

This section provides a sample of deleting the service set bound to a radio interface.

Table 3-110 Deleting the service set bound to a radio interface

Operation

XPATH

edit-config:delete

/ietf-interfaces:interfaces/interface/huawei-wlan-radio:wlan/huawei-wlan-vap:vap

Data Requirements
Table 3-111 Deleting the service set bound to a radio interface

Item

Data

Description

Service set name

service123

Delete the service set named service123 that is bound to a radio interface.

WLAN index

1

Delete the WLAN index of the service set named service123.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062"> 
    <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"> 
                <interface> 
                    <name>Wlan-Radio0/0/0</name> 
                    <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">hiperlan2</type> 
                    <wlan xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-radio">  
                        <vap xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-vap" xc:operation="remove"> 
                                <vap-profile-name>service123</vap-profile-name> 
                                <wid>1</wid> 
                        </vap>                         
                    </wlan>  
                </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="1001"> 
  <ok/> 
</rpc-reply> 
Deleting the Security Profile Configuration

This section provides a sample of deleting the security profile configuration.

Table 3-112 Deleting the security profile configuration

Operation

XPATH

edit-config:delete

/huawei-wlan-vap:vap/vap-profile/huawei-wlan-security:security

Data Requirements

Delete corresponding configuration in the security profile.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062"> 
    <edit-config> 
        <target> 
            <running/> 
        </target> 
        <error-option>rollback-on-error</error-option> 
        <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
           <vap xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-vap"> 
                <vap-profile>                     
                   <name>service</name> 
                    <ssid>ssid123</ssid> 
                    <hide>enable</hide> 
                    <max-sta-number>32</max-sta-number> 
                    <vlan>1</vlan>  
                    <security xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-security" xc:operation="remove"> 
                    </security> 
                </vap-profile> 
            </vap> 
        </config> 
    </edit-config> 
</rpc>                                
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1001"> 
  <ok/> 
</rpc-reply> 
Deleting the Rate Limit for Uplink and Downlink Packets of STAs

This section provides a sample of deleting the rate limit for uplink and downlink packets.

Table 3-113 Deleting the rate limit for uplink and downlink packets of STAs

Operation

XPATH

edit-config:delete

/huawei-wlan-vap:vap/vap-profile/huawei-traffic:limit/rate-limit-client

Data Requirements

Delete the rate limit for uplink and downlink packets of STAs.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062"> 
    <edit-config> 
        <target> 
            <running/> 
        </target> 
        <error-option>rollback-on-error</error-option> 
        <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
           <vap xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-vap"> 
                <vap-profile>                     
                   <name>service</name> 
                    <ssid>ssid123</ssid> 
                    <hide>enable</hide> 
                    <max-sta-number>32</max-sta-number> 
                    <vlan>1</vlan>  
                    <limit xmlns="urn:huawei:params:xml:ns:yang:huawei-traffic" xc:operation="remove"> 
                    </limit> 
                </vap-profile> 
            </vap> 
        </config> 
    </edit-config> 
</rpc>                                                
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1001"> 
  <ok/> 
</rpc-reply> 

STA Blacklist and Whitelist

NOTE:

A STA blacklist or whitelist can be configured only when the device works in Fat AP mode.

This sample applies to V300R003C10 and later versions.

Data Model

A data model defined by the IETF is used to configure a STA blacklist or whitelist, with the file name of huawei-wlan-sta.yang.

Table 3-114 Data model for configuring a STA blacklist or whitelist

Object

Description

/huawei-wlan-sta:white-black-list-profile/profile-list/mode

Indicates whether to create a STA blacklist or whitelist. The value is of the enumerated type:

  • black-list: A STA blacklist is to be created.
  • white-list: A STA whitelist is to be created.

/huawei-wlan-sta:white-black-list-profile/profile-list/name

Indicates the name of a WLAN profile. The value of this parameter is fixed as default-wlan-profile, and is not configurable.

/huawei-wlan-sta:white-black-list-profile/profile-list/sta-mac-list/sta-mac

Indicates the MAC address of a STA.

/huawei-wlan-groupdevice:groups/group/name

Indicates the name of a WLAN group. The value of this parameter is fixed as default-wlan-group, and is not configurable.

/huawei-wlan-groupdevice:groups/group/huawei-wlan-sta:sta-access-mode/mode

Indicates whether to enable the STA blacklist or whitelist function. The value is of the enumerated type:

  • black-list: The STA blacklist function is to be enabled.
  • white-list: The STA whitelist function is to be enabled.
Creating a STA Blacklist
Table 3-115 Creating a STA blacklist

Operation

XPATH

edit-config:merge

/huawei-wlan-sta:white-black-list-profile/profile-list

Data Requirements
Table 3-116 Creating a STA blacklist

Item

Data

Description

WLAN profile name

default-wlan-profile

Create a STA blacklist in the WLAN profile named default-wlan-profile, and add the STA with the MAC address 96:26:9d:36:f7:1a to the STA blacklist.

NOTE:

The WLAN profile name is fixed as default-wlan-profile, and is not configurable.

After a STA blacklist is created, enable the STA blacklist function to make it effective.

Mode

black-list

MAC address of a STA

96:26:9d:36:f7:1a

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062"> 
 <edit-config> 
  <target> 
   <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <white-black-list-profile xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-sta"> 
    <profile-list> 
     <name>default-wlan-profile</name> 
     <mode>black-list</mode> 
     <sta-mac-list xc:operation="merge"> 
      <sta-mac>96:26:9d:36:f7:1a</sta-mac> 
     </sta-mac-list> 
    </profile-list> 
   </white-black-list-profile> 
  </config> 
 </edit-config> 
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062"> 
 <ok/>  
</rpc-reply>
Deleting a STA from the STA Blacklist
Table 3-117 Deleting a STA from the STA blacklist

Operation

XPATH

edit-config:remove

/huawei-wlan-sta:white-black-list-profile/profile-list

Data Requirements
Table 3-118 Deleting a STA from the STA blacklist

Item

Data

Description

WLAN profile name

default-wlan-profile

Delete the STA with the MAC address 96:26:9d:36:f7:1a from the STA blacklist.

Mode

black-list

MAC address of a STA

96:26:9d:36:f7:1a

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062"> 
 <edit-config> 
  <target> 
   <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <white-black-list-profile xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-sta"> 
    <profile-list> 
     <name>default-wlan-profile</name> 
     <mode>black-list</mode> 
     <sta-mac-list xc:operation="remove"> 
      <sta-mac>96:26:9d:36:f7:1a</sta-mac> 
     </sta-mac-list> 
    </profile-list> 
   </white-black-list-profile> 
  </config> 
 </edit-config> 
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062"> 
 <ok/>  
</rpc-reply>
Creating a STA Whitelist
Table 3-119 Creating a STA whitelist

Operation

XPATH

edit-config:merge

/huawei-wlan-sta:white-black-list-profile/profile-list

Data Requirements
Table 3-120 Creating a STA whitelist

Item

Data

Description

WLAN profile name

default-wlan-profile

Create a STA whitelist in the WLAN profile named default-wlan-profile, and add the STA with the MAC address 96:26:9d:36:f7:1c to the STA whitelist.

NOTE:

The WLAN profile name is fixed as default-wlan-profile, and is not configurable.

After a STA whitelist is created, enable the STA whitelist function to make it effective.

Mode

white-list

MAC address of a STA

96:26:9d:36:f7:1c

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062"> 
 <edit-config> 
  <target> 
   <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <white-black-list-profile xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-sta"> 
    <profile-list> 
     <name>default-wlan-profile</name> 
     <mode>white-list</mode> 
     <sta-mac-list xc:operation="merge"> 
      <sta-mac>96:26:9d:36:f7:1c</sta-mac> 
     </sta-mac-list> 
    </profile-list> 
   </white-black-list-profile> 
  </config> 
 </edit-config> 
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062"> 
 <ok/>  
</rpc-reply>
Deleting a STA from the STA Whitelist
Table 3-121 Deleting a STA from the STA whitelist

Operation

XPATH

edit-config:remove

/huawei-wlan-sta:white-black-list-profile/profile-list

Data Requirements
Table 3-122 Deleting a STA from the STA whitelist

Item

Data

Description

WLAN profile name

default-wlan-profile

Delete the STA with the MAC address 96:26:9d:36:f7:1c from the STA whitelist.

Mode

white-list

MAC address of a STA

96:26:9d:36:f7:1c

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062"> 
 <edit-config> 
  <target> 
   <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <white-black-list-profile xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-sta"> 
    <profile-list> 
     <name>default-wlan-profile</name> 
     <mode>white-list</mode> 
     <sta-mac-list xc:operation="remove"> 
      <sta-mac>96:26:9d:36:f7:1c</sta-mac> 
     </sta-mac-list> 
    </profile-list> 
   </white-black-list-profile> 
  </config> 
 </edit-config> 
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062"> 
 <ok/>  
</rpc-reply>
Enabling the STA Blacklist Function
Table 3-123 Enabling the STA blacklist function

Operation

XPATH

edit-config: default

/huawei-wlan-groupdevice:groups/group

Data Requirements
Table 3-124 Enabling the STA blacklist function

Item

Data

Description

WLAN group name

default-wlan-group

Enable the STA blacklist function in the WLAN group named default-wlan-group.

NOTE:

The WLAN group name is fixed as default-wlan-group, and is not configurable.

Ensure that a STA blacklist exists before enabling the STA blacklist function. Otherwise, the STA blacklist function fails to be enabled.

Mode

black-list

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062"> 
 <edit-config> 
  <target> 
   <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <groups xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-groupdevice"> 
    <group> 
     <name>default-wlan-group</name> 
     <sta-access-mode xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-sta"> 
      <mode>black-list</mode>    
     </sta-access-mode> 
    </group> 
   </groups> 
  </config> 
 </edit-config> 
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062"> 
 <ok/>  
</rpc-reply>
Disabling the STA Blacklist Function
Table 3-125 Disabling the STA blacklist function

Operation

XPATH

edit-config:remove

/huawei-wlan-groupdevice:groups/group

Data Requirements
Table 3-126 Disabling the STA blacklist function

Item

Data

Description

WLAN group name

default-wlan-group

Disable the STA blacklist function.

Mode

black-list

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062"> 
 <edit-config> 
  <target> 
   <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <groups xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-groupdevice"> 
    <group> 
     <name>default-wlan-group</name> 
     <sta-access-mode xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-sta"> 
      <mode xc:operation="remove">black-list</mode>    
     </sta-access-mode> 
    </group> 
   </groups> 
  </config> 
 </edit-config> 
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062"> 
 <ok/>  
</rpc-reply>
Enabling the STA Whitelist Function
Table 3-127 Enabling the STA whitelist function

Operation

XPATH

edit-config: default

/huawei-wlan-groupdevice:groups/group

Data Requirements
Table 3-128 Enabling the STA whitelist function

Item

Data

Description

WLAN group name

default-wlan-group

Enable the STA whitelist function in the WLAN group named default-wlan-group.

NOTE:

The WLAN group name is fixed as default-wlan-group, and is not configurable.

Ensure that a STA whitelist exists before enabling the STA whitelist function. Otherwise, the STA whitelist function fails to be enabled.

Mode

white-list

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062"> 
 <edit-config> 
  <target> 
   <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <groups xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-groupdevice"> 
    <group> 
     <name>default-wlan-group</name> 
     <sta-access-mode xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-sta"> 
      <mode>white-list</mode>    
     </sta-access-mode> 
    </group> 
   </groups> 
  </config> 
 </edit-config> 
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062"> 
 <ok/>  
</rpc-reply>
Disabling the STA Whitelist Function
Table 3-129 Disabling the STA whitelist function

Operation

XPATH

edit-config:remove

/huawei-wlan-groupdevice:groups/group

Data Requirements
Table 3-130 Disabling the STA whitelist function

Item

Data

Description

WLAN group name

default-wlan-group

Disable the STA whitelist function.

Mode

white-list

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062"> 
 <edit-config> 
  <target> 
   <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <groups xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-groupdevice"> 
    <group> 
     <name>default-wlan-group</name> 
     <sta-access-mode xmlns="urn:huawei:params:xml:ns:yang:huawei-wlan-sta"> 
      <mode xc:operation="remove">white-list</mode>    
     </sta-access-mode> 
    </group> 
   </groups> 
  </config> 
 </edit-config> 
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062"> 
 <ok/>  
</rpc-reply>
Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100022096

Views: 9675

Downloads: 69

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next