我正在尝试设置正常关闭社区,但看起来我无法使其正常工作。
community-set comm-graceful-shutdown
65535:0
end-set
!
route-policy SOMEIX-IN
! tried set local-preference 0 here to test, useless because it is rewritten
set community (65535:0) additive
if community matches-any comm-graceful-shutdown then
set local-preference 0
else
set local-preference 95
endif
! if I put set local-preference 0 here, I can achieve to have localpref 0
end-policy
最后我得到了:
Origin IGP, metric 0, localpref 95, valid, external, best, group-best
Received Path ID 0, Local Path ID 0, version 416851127
Community: <some communities, then:> graceful-shutdown
有人对我错了哪一点有想法吗?