Fix: bgp route selection
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -13,7 +13,7 @@ protocol kernel {
|
||||
# Blackhole (LOCAL_ASN, 0, 666)
|
||||
if (LOCAL_ASN, 0, 666) ~ bgp_large_community then dest = RTD_BLACKHOLE;
|
||||
# Only Announced (LOCAL_ASN, 0, 665)
|
||||
if (LOCAL_ASN, 0, 665) ~ bgp_large_community then reject;
|
||||
if (LOCAL_ASN, 0, 665) ~ bgp_large_community && bgp_path.last !~ [4200000000..4225479999] then reject;
|
||||
krt_prefsrc = ROUTER_IP;
|
||||
accept;
|
||||
};
|
||||
|
Reference in New Issue
Block a user