The bpdu discard command enables an interface to discard BPDUs.
The undo bpdu discard command disables an interface from discarding BPDUs.
By default, an interface is disabled from discarding BPDUs.
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet 0/1/1 [~HUAWEI-GigabitEthernet0/1/1] portswitch [*HUAWEI-GigabitEthernet0/1/1] bpdu discard
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet 0/1/1 [~HUAWEI-GigabitEthernet0/1/1] bpdu discard