Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
tango
Commits
035ebc56
Commit
035ebc56
authored
May 9, 2023
by
Taya Snijder
Browse files
Options
Downloads
Patches
Plain Diff
L2SS-1220
formatting
parent
8b146b69
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!576
L2SS-1220 added connection test attribute
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tangostationcontrol/tangostationcontrol/clients/snmp_client.py
+3
-1
3 additions, 1 deletion
...stationcontrol/tangostationcontrol/clients/snmp_client.py
with
3 additions
and
1 deletion
tangostationcontrol/tangostationcontrol/clients/snmp_client.py
+
3
−
1
View file @
035ebc56
...
...
@@ -323,7 +323,9 @@ def test_SNMP_connection(community, host, port=161):
if
errorIndication
or
errorStatus
or
errorIndex
:
# if not (None, 0, 0) there has been some error
logger
.
debug
(
f
"
Connection test failed. errorIndication:
{
errorIndication
}
, errorStatus:
{
errorStatus
}
, errorIndex:
{
errorIndex
}
"
)
logger
.
debug
(
f
"
Connection test failed. errorIndication:
{
errorIndication
}
, errorStatus:
{
errorStatus
}
, errorIndex:
{
errorIndex
}
"
)
return
False
else
:
return
True
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment