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
33c89488
Commit
33c89488
authored
Jan 25, 2023
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP
parent
9a37418c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
10 deletions
+5
-10
software/ors-amarisoft/buildout.hash.cfg
software/ors-amarisoft/buildout.hash.cfg
+2
-2
software/ors-amarisoft/config/enb.jinja2.cfg
software/ors-amarisoft/config/enb.jinja2.cfg
+1
-0
software/ors-amarisoft/lopcomm-rrh-stats.jinja2.py
software/ors-amarisoft/lopcomm-rrh-stats.jinja2.py
+2
-8
No files found.
software/ors-amarisoft/buildout.hash.cfg
View file @
33c89488
...
...
@@ -24,7 +24,7 @@ md5sum = 6e0a052bd0ca08cc0c7b4880d3deffcc
[lopcomm-rrh-stats.jinja2.py]
_update_hash_filename_ = lopcomm-rrh-stats.jinja2.py
md5sum =
00439dde2f13ec427044cd94a0eee743
md5sum =
5006bf564f480bd9db7d515a414fc082
[template-lte-enb-epc]
_update_hash_filename_ = instance-enb-epc.jinja2.cfg
...
...
@@ -64,7 +64,7 @@ md5sum = dcaac06553a3222b14c0013a13f4a149
[enb.jinja2.cfg]
filename = config/enb.jinja2.cfg
md5sum = 4
083d0d21be98eecc8cdef3fb575a721
md5sum = 4
268e6e595f620e1e2f8ac94a9d9efe5
[sib23.asn]
filename = config/sib23.asn
...
...
software/ors-amarisoft/config/enb.jinja2.cfg
View file @
33c89488
...
...
@@ -16,6 +16,7 @@
cpri_rx_delay: 0,
cpri_tx_delay: 0,
ifname: "cpri0",
ifname: "{{ slap_configuration.get('tap-name', '') }}",
},
tx_gain: 0,
rx_gain: 0,
...
...
software/ors-amarisoft/lopcomm-rrh-stats.jinja2.py
View file @
33c89488
...
...
@@ -24,7 +24,7 @@ class LopcommNetconfClient:
if
{{
testing
}}:
return
def
connect
(
host
,
port
,
user
,
password
):
def
connect
(
self
,
host
,
port
,
user
,
password
):
if
{{
testing
}}:
return
...
...
@@ -47,20 +47,14 @@ class LopcommNetconfClient:
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'
#logging.basicConfig(stream=sys.stdout, level=logging.INFO, format=LOG_FORMAT)
#logging.getLogger().setLevel(logging.DEBUG)
connect
(
"192.168.0.210"
,
830
,
"oranuser"
,
"oranpassword"
)
nc
=
LopcommNetconfClient
()
while
True
:
try
:
nc
.
connect
()
nc
.
connect
(
"192.168.0.210"
,
830
,
"oranuser"
,
"oranpassword"
)
time
.
sleep
(
10
)
except
Exception
as
e
:
nc
.
logger
.
debug
(
e
)
...
...
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