From 22ae25a02b80edfd21cc50199eef45634037f44c Mon Sep 17 00:00:00 2001 From: AdamRickards Date: Tue, 29 Sep 2026 07:34:32 +1000 Subject: [PATCH] schema: add index_filter to get_interface_statistics (#272) Adds method-level index_filter '^\d+/\d+$' to get_interface_statistics, mirroring get_optics, aiming for physical-only rows on all protocols. Offline (tested): the engine applies method index_filter only in intent resolution when index is a list; the read (egress) path does not read it. A fixture with cpu/vlan ifTable rows returns the same rows before and after this change. Live sidecar proof: untested (pending). Schema YAML only. Draft for sidecar live proof; do not merge. Related #272 --- crude_engine/schemas/interface.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/crude_engine/schemas/interface.yaml b/crude_engine/schemas/interface.yaml index d7d4d84..de63e78 100644 --- a/crude_engine/schemas/interface.yaml +++ b/crude_engine/schemas/interface.yaml @@ -28,6 +28,7 @@ methods: type: dict primary_key: name key_map: ifindex + index_filter: '^\d+/\d+$' # SSH identity from show interface counters (ifdescr), not show port ifname attributes: name: