Add multi-command collect with FSM-first if-intf aux and batch cache.

ARP binds show running-config if-intf to enrich vrf; identical aux commands reuse session cache.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-09-17 23:30:17 +08:00
parent 0f235133ed
commit 1f70f7fc25
10 changed files with 646 additions and 42 deletions

View file

@ -51,9 +51,10 @@ class ZteStatusParserTests(unittest.TestCase):
self.assertIn("zte.bgp_vpnv4_summary", zte)
self.assertIn("zte.bgp_ipv4_summary", zte)
self.assertIn("zte.bgp_vpnv6_summary", zte)
for mid in ("isis_adjacency", "interface_brief", "arp", "nd6_cache", "bgp_peer"):
for mid in ("isis_adjacency", "interface_brief", "arp", "nd6_cache", "bgp_peer", "if_intf"):
self.assertIn(mid, metric_field_map())
self.assertIsNotNone(get_profile("zte.isis_adjacency"))
self.assertIsNotNone(get_profile("zte.if_intf"))
def test_isis_adjacency(self) -> None:
text = _section(