This command prevents the use of invalid prefixes for calculating bestpaths. The default behavior is to allow invalid prefixes to be used in bestpath calculation.
BGP address-family IPv4 unicast configuration mode
BGP address-family IPv6 unicast configuration mode
BGP address-family IPv4 unicast VRF configuration mode
BGP address-family IPv6 unicast VRF configuration mode
The [no] form of this command enables the default behavior of allowing all prefixes (including invalid prefixes) to be used for bestpath calculation.
This example shows the commands to prevent invalid prefixes being used when calculating bestpath. This is irrespective of the prefix validation state received from the RPKI cache server.
SLX(config)#router bgp SLX(config-bgp-router)# address-family ipv4 unicast SLX(config-bgp-ipv4u)# bestpath prefix-validation disallow-invalid SLX(config-bgp-ipv4u)#