Nokia SR OS routing policies allow BGP route advertisements to be evaluated against configured match criteria and modified through associated policy actions.
The north-and-south import policy contains separate entries matching the BGP communities named north and south.
The route advertised by R1 contains community 65200:1, which matches the community definition named north.
Received BGP route: 140.100.1.0/24 (Community: 65200:1) → Policy entry 10 (Matches community "north") → Set LOCAL_PREF = 20 → Accept route (Community remains 65200:1).
Once the route matches the first policy entry, the configured action accepts the route and sets its BGP LOCAL_PREFERENCE attribute to 20.
The LOCAL_PREFERENCE attribute influences BGP best-path selection within the local autonomous system. When otherwise eligible routes are compared, higher local-preference values are preferred.
The configured policy entry does not contain any community deletion, addition, or replacement action. Therefore, the original community value remains unchanged.
The second policy entry matches community 65200:2 and does not apply to this advertisement.
Consequently, the advertised prefix is accepted with its local preference set to 20, making option B correct.
[Reference:Nokia SR OS Unicast Routing Protocols Guide — Route Policies and BGP Path Attributes; MD-CLI Command Reference — Policy Statement Actions and local-preference.]
Submit