mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 05:30:46 +08:00
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:
parent
6b35add5a4
commit
586ca69d3f
4 changed files with 180 additions and 5 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue