Skip to content
This repository has been archived by the owner on Dec 17, 2021. It is now read-only.

Commit

Permalink
fix: bring back extract_network_interface_data_from_additional_config…
Browse files Browse the repository at this point in the history
… to walk with enricher
  • Loading branch information
omrozowicz-splunk committed Oct 19, 2021
1 parent 9a415bd commit c5c9868
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion splunk_connect_for_snmp_poller/manager/task_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
from splunk_connect_for_snmp_poller.manager.realtime.interface_mib import InterfaceMib
from splunk_connect_for_snmp_poller.manager.realtime.oid_constant import OidConstant
from splunk_connect_for_snmp_poller.manager.static.interface_mib_utililities import (
extract_network_interface_data_from_additional_config,
extract_network_interface_data_from_walk,
)
from splunk_connect_for_snmp_poller.manager.static.mib_enricher import MibEnricher
Expand Down Expand Up @@ -586,8 +587,11 @@ async def walk_handler_with_enricher(

logger.info(f"Walk finished for {host} profile={ir.profile}")
processed_result = extract_network_interface_data_from_walk(enricher, merged_result)
additional_enricher_varbinds = (
extract_network_interface_data_from_additional_config(enricher)
)
mongo_connection.update_mib_static_data_for(
f"{host}:{port}", processed_result, None
f"{host}:{port}", processed_result, additional_enricher_varbinds
)


Expand Down

0 comments on commit c5c9868

Please sign in to comment.