LLDP has been enabled globally using the lldp enable (system view) command.
The configuration workload can be reduced after the switch is enabled to automatically execute the Python script after the LLDP neighbor changes.
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.