From f6d17a0b5d5d81ef745b92551c4e4251dc6cfd19 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Tue, 12 Jul 2022 13:16:17 +0200 Subject: [PATCH] TT#182052 Conditionalize SNMP collective-check OIDs These are now conditional on a config knob. We should not expect them to be present of they are disabled. Change-Id: I2ebc68db597db0fbccf9f990ceab101589a8e914 --- templates/915_service-snmp.yaml.tt2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/915_service-snmp.yaml.tt2 b/templates/915_service-snmp.yaml.tt2 index 9844b83..b1304e7 100644 --- a/templates/915_service-snmp.yaml.tt2 +++ b/templates/915_service-snmp.yaml.tt2 @@ -22,8 +22,10 @@ command: - "/::cnAddress\\.\\d\\.\\d = /" - "/::cnRoleIndex\\.\\d\\.\\d = /" - "/::cnRole\\.\\d\\.\\d = /" +[% IF snmpagent.trees.collective_check == 'yes' -%] - "/::ngcpCollectiveCheckResult = /" - "/::ngcpCollectiveCheckOutput = /" +[% END -%] [% IF is_mgmt -%] - "/::ngcpClusterProvSubs = /" - "/::ngcpClusterRegSubs = /"