Skip to content
GitLab
Explore
Sign in
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
tango
Commits
f5b5c8da
Commit
f5b5c8da
authored
3 years ago
by
Taya Snijder
Browse files
Options
Downloads
Patches
Plain Diff
attempting to change bug, changed logging
parent
e9ac557e
No related branches found
No related tags found
1 merge request
!288
Resolve L2SS-446 "Extend snmp client to support mib files"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tangostationcontrol/tangostationcontrol/toolkit/mib_compiler/mib_compiler.py
+3
-3
3 additions, 3 deletions
.../tangostationcontrol/toolkit/mib_compiler/mib_compiler.py
with
3 additions
and
3 deletions
tangostationcontrol/tangostationcontrol/toolkit/mib_compiler/mib_compiler.py
+
3
−
3
View file @
f5b5c8da
...
...
@@ -3,7 +3,7 @@ import sys
from
pysnmp.smi
import
builder
,
compiler
import
os
from
pathlib
import
Path
from
pysmi
import
debug
import
logging
...
...
@@ -27,7 +27,7 @@ def mib_compile(mib_list : list, src, dst):
raise
Exception
(
f
"
Something went wrong, try checking whether all the mib fills imported by the provided mib files are present in the source locations (
{
src
}
)
\r\n
(To do this enable debug options and scroll up)
"
)
from
e
def
main
():
abs_path
=
os
.
path
.
dirname
(
__file__
).
replace
(
"
\\
"
,
"
/
"
)
abs_path
=
str
(
Path
().
absolute
()
).
replace
(
"
\\
"
,
"
/
"
)
out_path
=
f
"
{
abs_path
}
/output_pymibs
"
in_path
=
f
"
{
abs_path
}
/mibs
"
...
...
@@ -56,7 +56,7 @@ def main():
debug_option
=
args
.
debug
if
debug_option
:
debug
.
setLogger
(
debug
.
Debug
(
'
all
'
))
debug
.
setLogger
(
debug
.
Debug
(
'
compiler
'
))
mib_compile
(
mib_list
=
mibs
,
src
=
source
,
dst
=
destination
)
...
...
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