summaryrefslogtreecommitdiff
path: root/ospfd/ospf_api.c
diff options
context:
space:
mode:
authorWesley Coakley <wcoakley@nvidia.com>2021-05-05 10:28:53 -0400
committerWesley Coakley <wcoakley@nvidia.com>2021-05-06 14:07:06 -0400
commit6907bb6bbf8bff8575e6a9c6da78b353276feafd (patch)
tree51967cbd73fb439f1ecb766755839a85d0972bed /ospfd/ospf_api.c
parentd7e594edd241b9ed62d0023cfc06e41423e1585b (diff)
lib: ip prefix-list enforce expected ge le behavior
When specifying only an "le" for an existing ip prefix-list qualified with both an "le" and "ge" make sure to remove the "ge" property so it does not stay in the tree. E.g. Saying these two things in order: ip prefix-list test seq 1 permit 1.1.0.0/16 ge 18 le 24 ip prefix-list test seq 1 permit 1.1.0.0/16 ge 18 ... should result in the second statement "overwriting" the first like this: vxdev-arch# do show ip prefix-list ZEBRA: ip prefix-list foobar: 3 entries seq 1 permit 15.0.0.0/16 ge 18 Previously this did not happen and "le" would stick around since it was never given NB_OP_DESTROY and purged from the data tree. Signed-off-by: Wesley Coakley <wcoakley@nvidia.com>
Diffstat (limited to 'ospfd/ospf_api.c')
0 files changed, 0 insertions, 0 deletions