Add BGP IPv4/IPv6 unicast neighbor in/out monitor profiles.

Catalog previously only had VPNv4/VPNv6 route items; global ipv4/ipv6 discover requires empty vrf so VRF CE peers are not mixed in.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-09-22 15:27:31 +08:00
parent 6b35add5a4
commit 586ca69d3f
4 changed files with 180 additions and 5 deletions

View file

@ -147,6 +147,9 @@ def _record_passes_discover_filter(rec: dict[str, Any], ph: PlaceholderDef) -> b
require = str(ph.discover_require_nonempty or "").strip()
if require and not str(rec.get(require) or "").strip():
return False
require_empty = str(getattr(ph, "discover_require_empty", "") or "").strip()
if require_empty and str(rec.get(require_empty) or "").strip():
return False
return True