-
Notifications
You must be signed in to change notification settings - Fork 641
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix generator lookups to match OIDs closer to the index OID. (#828)
* Update lookup mechanism to improve in case of multiple oid with same label When running the configuration generator with lookups were multilpe different nodes have the same label the generator was always grabbing the OID of the last MIB that was parsed. I modified the lookup mechanism to first attempt to match the lookup node so that the OID matches that of the metric in all but the last branch. In case no match is found, it reverts to the old behavior. --------- Signed-off-by: Windischmann, Stephan <[email protected]> Signed-off-by: stephan-windischmann-sky <[email protected]> Signed-off-by: Stephan Windischmann <[email protected]> Co-authored-by: Ben Kochie <[email protected]> Co-authored-by: Stephan Windischmann <[email protected]>
- Loading branch information
1 parent
dbfe95c
commit f427269
Showing
2 changed files
with
28 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters