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.
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
LLDP has been enabled globally using the lldp enable (system view) command.