From e847a5b8713f7823c0264a31cf99d4c8d1436c9d Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 29 Nov 2016 10:45:16 -0500 Subject: [PATCH] Properly handle SNMPv1 community only If given SNMPv1 community only, use the data correctly. --- confluent_server/confluent/networking/macmap.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/confluent_server/confluent/networking/macmap.py b/confluent_server/confluent/networking/macmap.py index 4b9508ef..53cea4e1 100644 --- a/confluent_server/confluent/networking/macmap.py +++ b/confluent_server/confluent/networking/macmap.py @@ -120,7 +120,11 @@ def _map_switch_backend(args): # fallback if ifName is empty # global _macmap - switch, password, user = args + if len(args) == 3: + switch, password, user = args + else: + switch, password = args + user = None haveqbridge = False mactobridge = {} conn = snmp.Session(switch, password, user)