diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2024-11-07 11:31:59 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2024-11-07 11:57:34 -0500 |
| commit | ea4823964c46f9537c89287439aec24816b27592 (patch) | |
| tree | 088c56cb017ba6b8669f70a681adc370513e05fa /tests/topotests/pim_basic/test_pim.py | |
| parent | 16bb31595793c0d6dd81ff104932d52c4411f7d8 (diff) | |
bgpd: In bgp_withdraw attempt to avoid a if statement on every pass
We have this:
if ( (safi == SAFI_UNICAST) && ...)
do stuff
if ( (safi == SAFI_MPLS_VPN) && ... )
do stuff
this leads to having to test safi multiple times if safi is
SAFI_UNICAST. Let's make it a else if as that we know that
the safi is going to not change.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'tests/topotests/pim_basic/test_pim.py')
0 files changed, 0 insertions, 0 deletions
