]> git.proxmox.com Git - mirror_frr.git/commit - lib/plist.c
lib: add command to test prefix-list match
authorDavid Lamparter <equinox@opensourcerouting.org>
Tue, 20 Apr 2021 04:13:51 +0000 (06:13 +0200)
committerMartin Winter <mwinter@opensourcerouting.org>
Mon, 5 Jul 2021 23:44:35 +0000 (01:44 +0200)
commit19cf3fc5abaeb633bacbda82d5fd6ad6d06d4849
treee1ce829a2716e13b423a01dcf311ef9332f2410b
parent2b6b16fc21d35693914231509c8710eff6a58c4a
lib: add command to test prefix-list match

While we do have `show ip prefix-list NAME A.B.C.D/M`, that doesn't
actually run the prefix list matching code.  While the result would
hopefully be the same anyway, let's have a way to call the actual prefix
list match code and get a result.

(As an aside, this might be useful for scripting to do a quick "is this
prefix in that prefix list" check.)

Signed-off-by: David Lamparter <equinox@diac24.net>
doc/user/filter.rst
lib/plist.c