mirror of
https://github.com/hansjone/netx.git
synced 2026-10-18 04:00:47 +08:00
Merge duplicate if-intf checks into Config Interface Intent.
Hide standalone IF VRF from the catalog and point ARP enrich at config_interface so one CLI maps to one check item. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
c1b1c0f75d
commit
1642a0adec
8 changed files with 37 additions and 21 deletions
|
|
@ -21,7 +21,7 @@ Cross-command (multi aux)
|
|||
1. Implement each aux as a normal status profile (steps 1–4)
|
||||
2. On the primary profile::
|
||||
|
||||
aux_commands=[AuxCommand(key="if_intf", profile_id="zte.if_intf")]
|
||||
aux_commands=[AuxCommand(key="if_intf", profile_id="zte.config_interface")]
|
||||
enrich_joins=[EnrichJoin(from_aux="if_intf", on="interface", take=("vrf",))]
|
||||
|
||||
3. CollectSession caches identical concrete CLI in one batch; enrich runs after
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
"""ZTE: show arp [| one-line].
|
||||
|
||||
Pipeline: TextFSM ``zte_zxros_show_arp`` → map → hand fallback.
|
||||
Cross-command VRF comes from profile ``enrich_joins`` (if_intf), not here.
|
||||
Cross-command VRF comes from profile ``enrich_joins`` (config_interface aux), not here.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue