Good afternoon everyone!
Need to perform the translation of the policy applied in a Juniper router below:
================================================================
policy-statement export_pb-dados {
term CONECTADAS {
from {
protocol direct;
route-filter 172.16.0.4/30 exact;
}
then reject;
}
term RIP_GILAT {
from protocol rip;
then {
local-preference 50;
community add pb-dados;
accept;
}
}
term final {
then {
community add pb-dados;
accept;
}
}
}
==============================================================
In my translation was of the following form:
extcommunity-set rt pb-dados
65100:100
end-set
!
!
prefix-set export_pb-dados
172.16.0.4/30
end-set
!
!
route-policy export_pb-dados
if (destination in export_pb-dados) then
drop
set local-preference 50
set extcommunity soo (pb-dados)
else
drop
endif
end-policy
!
Is correct? Could someone please validate the configuration?