summaryrefslogtreecommitdiff
path: root/python/firstheader.py
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2024-12-10 16:28:26 +0200
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-12-17 16:31:57 +0000
commit9130db6d2bad9bd7681f415305a80a746c84c64b (patch)
treef344505e9baf305f86c6e563ad878729384e9b22 /python/firstheader.py
parent9a0e84bfc69fed8e4dab1e247cf1faead628c89f (diff)
lib: Take ge/le into consideration when checking the prefix with the prefix-list
Without the fix: ``` show ip prefix-list test_1 10.20.30.96/27 first-match <no result> show ip prefix-list test_2 192.168.1.2/32 first-match <no result> ``` With the fix: ``` ip prefix-list test_1 seq 10 permit 10.20.30.64/26 le 27 ! end donatas# show ip prefix-list test_1 10.20.30.96/27 seq 10 permit 10.20.30.64/26 le 27 (hit count: 1, refcount: 0) donatas# show ip prefix-list test_1 10.20.30.64/27 seq 10 permit 10.20.30.64/26 le 27 (hit count: 2, refcount: 0) donatas# show ip prefix-list test_1 10.20.30.64/28 donatas# show ip prefix-list test_1 10.20.30.126/26 seq 10 permit 10.20.30.64/26 le 27 (hit count: 3, refcount: 0) donatas# show ip prefix-list test_1 10.20.30.126/30 donatas# ``` Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org> (cherry picked from commit dd4c2acc2e871283256f6cea16ede6d2d7f72dfe)
Diffstat (limited to 'python/firstheader.py')
0 files changed, 0 insertions, 0 deletions