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] ip vpn-instance vpna [*HUAWEI-vpn-instance-vpna] ipv4-family [*HUAWEI-vpn-instance-vpna-af-ipv4] route-distinguisher 100:1 [*HUAWEI-vpn-instance-vpna-af-ipv4] vpn-target 111:1 both [*HUAWEI-vpn-instance-vpna-af-ipv4] quit [*HUAWEI-instance-vpna] quit [*HUAWEI] bgp 100 instance a [*HUAWEI-bgp-instance-a] ipv4-family vpn-instance vpna [*HUAWEI-bgp-instance-a-vpna] peer 10.1.1.1 as-number 100 [*HUAWEI-bgp-instance-a-vpna] peer 10.1.1.1 discard-ext-community