Hi all,
Our customer report the router filter with EBGP peer can’t work fine. Below is the related configuration.
[~XXX] dis xpl route-filter name TIWS-TATA-OUT detail
xpl route-filterTIWS-TATA-OUT
call route-filter BOGONS
if local-preference eq 80 then
refuse
elseif ip route-destination inPFX-CLARO-POR-TATA or ip route-destination in WOM then
call route-filter SET-AS-PREPEND-TO-TATA
else
refuse
endif
end-filter
#
xpl route-filter BOGONS
if ip route-destination in MARTIANS then
refuse
else
approve
endif
end-filter
#
xpl route-filter SET-AS-PREPEND-TO-TATA
if community matches-any {65100:6453} then
refuse
elseif community matches-any {65101:6453} then
apply as-path 27978 1 additive
elseif community matches-any {65102:6453} then
apply as-path 27978 2 additive
elseif community matches-any {65103:6453} then
apply as-path 27978 3 additive
else
approve
endif
end-filter
#
Please help check if the configuration is correct. Thanks.