traffic engineering for CN
parent
ce04f514ce
commit
56d5cd5eb6
|
@ -4,6 +4,7 @@ function pub_route_controller_specific() {
|
|||
if 174 ~ bgp_path && 4837 ~ bgp_path && (200536, 120, 101) ~ bgp_large_community && REGION = 100 then bgp_local_pref = 114514;
|
||||
if REGION = 400 && (200536, 121, 500) ~ bgp_large_community && (200536, 122, 410) ~ bgp_large_community then bgp_local_pref = bgp_local_pref + 6;
|
||||
if REGION = 430 && (200536, 110, 10) ~ bgp_large_community && (200536, 121, 430) !~ bgp_large_community && ((200536, 121, 400) ~ bgp_large_community || (200536, 122, 400) ~ bgp_large_community) then bgp_local_pref = bgp_local_pref + 30;
|
||||
if REGION != 430 && (200536, 121, 430) ~ bgp_large_community && (200536, 122, 400) ~ bgp_large_community then bgp_local_pref = bgp_local_pref + 1;
|
||||
if REGION != 430 && (200536, 121, 430) ~ bgp_large_community then bgp_local_pref = bgp_local_pref + filter(bgp_large_community, [(LOCAL_ASN, 122, 430)]).len * 3;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue