Loading
telemetry: keep per-KPI samples apart on a shared NETCONF/OpenConfig collector
The NETCONF OpenConfig collector is cached per device, so when several KPIs are subscribed on the same device every GenericCollectorHandler thread calls GetState() on one instance and the threads consume each other's samples. The collector now keeps a queue per KPI, and the backend passes the KPI code to collectors whose GetState accepts one. Collectors that do not are called exactly as before. Also registers the gNMI OpenConfig collector for optical ROADMs and transponders using the OpenConfig driver, which previously had no collector registered at all.