BGP policy match no communities

  • 0
  • 2
  • Question
  • Updated 9 months ago
  • Answered
In a BGP routing policy, I need to match NLRIs that explicitly have no community attribute(s).

none of these seem to work, the latter two generating syntax errors:

community "^$";
community "";
community ;
Photo of Dave Martin

Dave Martin

  • 180 Points 100 badge 2x thumb

Posted 10 months ago

  • 0
  • 2
Photo of Narayanan, Karthikeyan

Narayanan, Karthikeyan, Employee

  • 912 Points 500 badge 2x thumb
Photo of Dave Martin

Dave Martin

  • 180 Points 100 badge 2x thumb
16.1.4.2 patch 1-10

I've also discovered community ".+" doesn't seem to work either.
Photo of Dave Martin

Dave Martin

  • 180 Points 100 badge 2x thumb
Also not working in 16.2.3.5 patch 1-13

In this case the policy checks and refreshes, it just doesn't actually work.

rtr.wmtn.24 # ch pol x Policy file check successful. rtr.wmtn.25 # ref pol x Policy x refresh done! rtr.wmtn.26 # sho bgp nei x.x.x.x accepted-routes al output not consistent with the policy is shown.
(Edited)