Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
noc
noc
Commits
b8793fdf
Commit
b8793fdf
authored
Aug 05, 2021
by
Dmitry Lukhtionov
Browse files
Fix Eltex.MES.get_capabilities script
parent
316df0f5
Pipeline
#32951
passed with stages
in 14 minutes and 18 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
sa/profiles/Eltex/MES/get_capabilities.py
View file @
b8793fdf
# ---------------------------------------------------------------------
# Eltex.MES.get_capabilities
# ---------------------------------------------------------------------
# Copyright (C) 2007-201
9
The NOC Project
# Copyright (C) 2007-20
2
1 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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment