I am trying to set the local preference of certain routes based on the community string. I created the community list and confirmed it is working by checking the routes reported matching the community-list:
# show policy community-list
community-list 100 {
rule 10 {
action permit
regex ###:####
}
}
Then I used that community list in the route-map:
# show policy route-map default-import
rule 20 {
action permit
}
rule 21 {
action permit
match {
community {
community-list 100
}
}
set {
local-preference 50
}
}
However, on committing and resetting the BGP session, I do not see any local preference adjustments when I run show ip bgp
. Am I missing something in my config?
OS: VyOS 1.05