< Home

lldp device-classifier enable

Function

The lldp device-classifier enable command enables the switch to automatically execute the Python script after the LLDP neighbor changes.

The undo lldp device-classifier enable command disables the switch from automatically executing the Python script after the LLDP neighbor changes.

By default, the switch is enabled to automatically execute the Python script after the LLDP neighbor changes.

Format

lldp device-classifier enable

undo lldp device-classifier enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If a switch has multiple types of LLDP neighbors and needs to deliver different configurations to different types of LLDP neighbors, configure the Python script in advance and run the lldp device-classifier enable command to enable the switch to automatically execute the Python script after the LLDP neighbor changes. If the switch detects that a specified type of LLDP neighbor is added or deleted on an interface, the switch automatically delivers the predefined configuration in the Python script, reducing the configuration workload.

Prerequisites

  1. The Python script automatically executed after the LLDP neighbor changes has been prepared, uploaded, and installed, and the Python script assistant has been configured. For details, see "Configuring OPS" in OPS Configuration in S2720, S5700, and S6700 V200R019C10 Configuration Guide - Device Management.
  2. LLDP has been enabled globally using the lldp enable (system view) command.

Example

# Enable the switch to automatically execute the Python script after the LLDP neighbor changes.

<HUAWEI> system-view
[HUAWEI] lldp device-classifier enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >