The peer discard-ext-community command configures a BGP device to discard the extended community attributes carried by routes received from a specified peer.
The undo peer discard-ext-community command cancels the configuration.
By default, a BGP device does not discard the extended community attribute carried by any received route.
<HUAWEI> system-view [~HUAWEI] bgp 100 [*HUAWEI-bgp] peer 2001:DB8:1::1 as-number 100 [*HUAWEI-bgp] ipv6-family unicast [*HUAWEI-bgp-af-ipv6] peer 2001:DB8:1::1 enable [*HUAWEI-bgp-af-ipv6] peer 2001:DB8:1::1 discard-ext-community