Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Carlos Ramos Carreño
slapos
Commits
96d6aad7
Commit
96d6aad7
authored
Jan 24, 2023
by
Lu Xu
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip
parent
ac3786d9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
software/ors-amarisoft/buildout.hash.cfg
software/ors-amarisoft/buildout.hash.cfg
+1
-1
software/ors-amarisoft/lopcomm-rrh-stats.jinja2.py
software/ors-amarisoft/lopcomm-rrh-stats.jinja2.py
+6
-4
No files found.
software/ors-amarisoft/buildout.hash.cfg
View file @
96d6aad7
...
...
@@ -24,7 +24,7 @@ md5sum = 6e0a052bd0ca08cc0c7b4880d3deffcc
[lopcomm-rrh-stats.jinja2.py]
_update_hash_filename_ = lopcomm-rrh-stats.jinja2.py
md5sum =
37a5d971626f44d8dfd734ebce8c847
3
md5sum =
00439dde2f13ec427044cd94a0eee74
3
[template-lte-enb-epc]
_update_hash_filename_ = instance-enb-epc.jinja2.cfg
...
...
software/ors-amarisoft/lopcomm-rrh-stats.jinja2.py
View file @
96d6aad7
...
...
@@ -23,7 +23,7 @@ class LopcommNetconfClient:
if
{{
testing
}}:
return
def
connect
(
host
,
port
,
user
,
password
):
if
{{
testing
}}:
...
...
@@ -44,9 +44,11 @@ class LopcommNetconfClient:
result
=
None
while
result
==
None
:
result
=
conn
.
take_notification
(
block
=
True
,
timeout
=
60
)
print
(
result
)
import
pdb
;
pdb
.
set_trace
()
#self.logger.info('', extra={'data': r})
result_in_xml
=
result
.
_raw
data_dict
=
xmltodict
.
parse
(
result_in_xml
)
result_in_json
=
json
.
dumps
(
data_dict
)
print
(
result_in_json
)
self
.
logger
.
info
(
''
,
extra
=
{
'data'
:
result_in_json
})
if
__name__
==
'__main__'
:
#LOG_FORMAT = '%(asctime)s %(levelname)s %(filename)s:%(lineno)d %(message)s'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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