Hi Ondrej,
Thanks for the advice, I have fixed with. I always use Python, so I guess other C like Stript needs to do that.
# 如果 MED 值已经存在,则将其以原值为基础增加
if defined (bgp_med) then {
bgp_med = bgp_med + bgp_med_ping + bgp_med_ping;
}
# 否则,设置 MED 值为新值
else {
bgp_med = bgp_med_ping + bgp_med_ping;
}
return true;
AIGP is not intended to be transitive between completely distinct autonomous systems (only across internal AS boundaries)
AIGP is always compared in paths that have the attribute, regardless of whether they come from different neighbor AS or not
AIGP is more important than MED in the BGP decision process (see the section titled BGP decision process)
AIGP is automatically incremented every time there is a BGP next-hop change so that it can track the end-to-end IGP cost. All arithmetic operations on MED attributes must be done manually (for example, using route policies)
Looks like local_pref > bgp_path > aigp > bgp_med? And aigp is added when passing each ibgp session Automatically.?
Best regard,
Brandon Zhi
HUIZE LTD
This e-mail and any attachments or any reproduction of this e-mail in whatever manner are confidential and for the use of the addressee(s) only. HUIZE LTD can’t take any liability and guarantee of the text of the email message and virus.