]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Inconsistencies in SNT counters with default-originate
authorIqra Siddiqui <imujeebsiddi@vmware.com>
Thu, 26 May 2022 06:45:57 +0000 (23:45 -0700)
committerARShreenidhi <rshreenidhi@vmware.com>
Wed, 6 Jul 2022 05:38:35 +0000 (05:38 +0000)
commit46c4f05bb6bf7a3f708ce06cf400fe6a0c987366
treeb62a411f70747f51fb35b84d6db13694a98ae6cc
parente894ef7e77157f0a5d7a2be7b572a949c645dbe3
bgpd: Inconsistencies in SNT counters with default-originate

Description:
Change is intended for fixing the inconsistencies present
while adjusting the SNT counters with default originate.

- SNT counter gets incremented on every change of policy associated
  with default-originate, leading to inconsistencies.
- This fix has been added to ensure that the SNT counters gets
  incremented and decremented only once during the creation and
  deletion workflow of default-originate, and prevents
  incrementing the counter during update flow.

Co-authored-by: Abhinay Ramesh <rabhinay@vmware.com>
Signed-off-by: Iqra Siddiqui <imujeebsiddi@vmware.com>
bgpd/bgp_updgrp.h
bgpd/bgp_updgrp_packet.c