From 0586949200a69be2d644d9bf2c510e867498d0cf Mon Sep 17 00:00:00 2001 From: Praveen Ramamoorthi Date: Fri, 17 Nov 2023 07:22:59 +0000 Subject: [PATCH] SNMP plugin fix for single attribute failure --- src/usr/lib/ztp/plugins/snmp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/usr/lib/ztp/plugins/snmp b/src/usr/lib/ztp/plugins/snmp index 0f174de..6d050c5 100755 --- a/src/usr/lib/ztp/plugins/snmp +++ b/src/usr/lib/ztp/plugins/snmp @@ -93,6 +93,8 @@ class Snmp: # Extract data from the section which is relevant to the snmp plugin no_section = True restart_agent = False + community_ro = None + snmp_location = None try: section_data = obj_section.jsonDict.get(section_name) restart_agent = getField(section_data, 'restart-agent', bool, default_value=False)