Commit a42d542e authored by Pedro Duarte's avatar Pedro Duarte
Browse files

parse component fields

parent 7577721a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -510,9 +510,9 @@ class GnmiSessionHandler:
        if any(seg == 'chassis' for seg in segments):
            self._logger.debug('Skipping non-OpenConfig path (chassis subtree): %s', relative_path)
            return
        # - interfaces/.../config/health-indicator (non-OC leaf)
        # - interfaces/.../(config|state)/health-indicator (non-OC leaf)
        for i in range(len(segments) - 1):
            if segments[i] == 'config' and segments[i + 1] == 'health-indicator':
            if (segments[i] in ('config', 'state')) and segments[i + 1] == 'health-indicator':
                self._logger.debug('Skipping non-OpenConfig leaf health-indicator at: %s', relative_path)
                return
        # - components/.../integrated-circuit/* (skip to avoid schema mismatch; not used by current handler)