< Home

Configuring the Switch to Automatically Identify Huawei Fit APs Using LLDP

This section provides samples of configuring the switch to automatically identify Huawei fit APs through LLDP using the config method.

Table 1 Configuring the switch to automatically identify Huawei fit APs using LLDP

Operation

XPATH

edit-config:config

/huawei-lldp:lldp/sensor-ap-vlanid

Data Requirement 1

Item

Data

Description

Enable the LLDP function on the switch.

true

-

Configure the switch to identify Huawei fit APs using LLDP and add the interfaces receiving the LLDP packets from APs to the specified VLAN in untagged mode.

10

-

Request Example

<?xml version='1.0' encoding='UTF-8'?>
<rpc message-id="1" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <edit-config>
    <target>
      <running/>
    </target>
    <config>
      <huawei-lldp:lldp xmlns:huawei-lldp="urn:huawei:params:xml:ns:yang:huawei-lldp">
        <huawei-lldp:enabled>true</huawei-lldp:enabled>
        <huawei-lldp:sensor-ap-vlanid>10</huawei-lldp:sensor-ap-vlanid>
      </huawei-lldp:lldp>
    </config>
  </edit-config>
</rpc>

Response Example

# Sample of successful response.

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
  <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="1">
  <rpc-error>
    <error-type>application</error-type>
    <error-tag>operation-failed</error-tag>
    <error-severity>error</error-severity>
    <error-path>/huawei-lldp:lldp/sensor-ap-vlanid</error-path>
    <error-message>parse rpc config error.(Value "5000" does not satisfy the constraint "1..4094" (range, length, or pattern).).</error-message>
  </rpc-error>
</rpc-reply>

Data Requirement 2

Item

Data

Description

Disable the switch from automatically identifying Huawei fit APs using LLDP.

10

-

Request Example

<?xml version='1.0' encoding='UTF-8'?>
<rpc message-id="2" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <edit-config>
    <target>
      <running/>
    </target>
    <config>
      <huawei-lldp:lldp xmlns:huawei-lldp="urn:huawei:params:xml:ns:yang:huawei-lldp">
        <huawei-lldp:sensor-ap-vlanid xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0" xc:operation="delete">10</huawei-lldp:sensor-ap-vlanid>
      </huawei-lldp:lldp>
    </config>
  </edit-config>
</rpc>

Response Example

# Sample of successful response.

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2">
  <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="2">
  <rpc-error>
    <error-type>application</error-type>
    <error-tag>operation-failed</error-tag>
    <error-severity>error</error-severity>
    <error-path>/huawei-lldp:lldp/sensor-ap-vlanid</error-path>
    <error-message>parse rpc config error.(Value "5000" does not satisfy the constraint "1..4094" (range, length, or pattern).).</error-message>
  </rpc-error>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >