Commit b8793fdf authored by Dmitry Lukhtionov's avatar Dmitry Lukhtionov
Browse files

Fix Eltex.MES.get_capabilities script

parent 316df0f5
Pipeline #32951 passed with stages
in 14 minutes and 18 seconds
# ---------------------------------------------------------------------
# Eltex.MES.get_capabilities
# ---------------------------------------------------------------------
# Copyright (C) 2007-2019 The NOC Project
# Copyright (C) 2007-2021 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
......@@ -114,6 +114,9 @@ class Script(BaseScript):
for oid, stack_num in self.snmp.getnext(
mib["RADLAN-STACK-MIB::rlStackActiveUnitIdAfterReset"]
):
# In some rare cases, returned 0, if only one device in stack
if stack_num == 0:
stack_num = 1
r += [str(stack_num)]
return r
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment