summaryrefslogtreecommitdiff
path: root/tests/topotests/ospf_basic_functionality/test_ospf_routemaps.py
diff options
context:
space:
mode:
authorCarl Baldwin <carl@ecbaldwin.net>2021-12-29 14:32:33 -0700
committerCarl Baldwin <carl@ecbaldwin.net>2022-04-26 09:38:37 -0600
commit067ea16598a444b1ecfda5012f96acb038ba041e (patch)
treeb14c73b9f1352e34420e9c2ae44db28f6d5f2aa0 /tests/topotests/ospf_basic_functionality/test_ospf_routemaps.py
parentd45a846e5ca313e5ab132ef57c495cc0407b50d9 (diff)
bgpd: ensure that the node gets unlocked in all cases
The logic to unlock dest if iteration completed without iterating the entire node was flawed. Specifically, if iteration terminated due to `gr_deferred == 0` then the node would not get unlocked. This change takes into account the fact that dest will be NULL only in the case when the entire table was iterated and all nodes were already unlocked. In any other case, it needs to be unlocked. Signed-off-by: Carl Baldwin <carl@ecbaldwin.net>
Diffstat (limited to 'tests/topotests/ospf_basic_functionality/test_ospf_routemaps.py')
0 files changed, 0 insertions, 0 deletions