Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos
Commits
9a0a3be3
Commit
9a0a3be3
authored
Oct 12, 2023
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
cd668eaa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
software/ors-amarisoft/amarisoft-stats.jinja2.py
software/ors-amarisoft/amarisoft-stats.jinja2.py
+3
-4
software/ors-amarisoft/buildout.hash.cfg
software/ors-amarisoft/buildout.hash.cfg
+2
-2
software/ors-amarisoft/instance-enb.jinja2.cfg
software/ors-amarisoft/instance-enb.jinja2.cfg
+1
-0
No files found.
software/ors-amarisoft/amarisoft-stats.jinja2.py
View file @
9a0a3be3
...
...
@@ -40,12 +40,11 @@ class enbWebSocket:
def
stats
(
self
):
if
{{
testing
}}:
from
random
import
randint
nrx
=
{{
iru_dict
.
values
()
|
sum
(
attribute
=
'_.n_antenna_ul'
)
}}
rxv
=
[{
'sat'
:
0
,
'max'
:
randint
(
-
500
,
-
100
)
/
10.0
}
for
_
in
range
(
nrx
)]
r
=
{
'message'
:
'stats'
,
'samples'
:
{
'rx'
:
[
{
'sat'
:
0
,
'max'
:
randint
(
-
500
,
-
100
)
/
10.0
},
{
'sat'
:
0
,
'max'
:
randint
(
-
500
,
-
100
)
/
10.0
},
]}
'samples'
:
{
'rx'
:
rxv
}
}
else
:
self
.
send
({
...
...
software/ors-amarisoft/buildout.hash.cfg
View file @
9a0a3be3
...
...
@@ -44,7 +44,7 @@ md5sum = d41d8cd98f00b204e9800998ecf8427e
[amarisoft-stats.jinja2.py]
_update_hash_filename_ = amarisoft-stats.jinja2.py
md5sum =
c4d5e9fcf460d88bc2b4bcfbdfe554f7
md5sum =
674dcc250c0b6bb43d8546624552fc5d
[amarisoft-rf-info.jinja2.py]
_update_hash_filename_ = amarisoft-rf-info.jinja2.py
...
...
@@ -72,7 +72,7 @@ md5sum = e22257ef526b0acc10a8203daa41028b
[template-enb]
_update_hash_filename_ = instance-enb.jinja2.cfg
md5sum =
046cd2ee931725eb38489a470a9c43d3
md5sum =
f8f2088ba35b6aff607f33eca15fb4f8
[template-gnb]
_update_hash_filename_ = instance-gnb.jinja2.cfg
...
...
software/ors-amarisoft/instance-enb.jinja2.cfg
View file @
9a0a3be3
...
...
@@ -262,6 +262,7 @@ context =
raw stats_period {{ slapparameter_dict.get("enb_stats_fetch_period", 60) }}
raw testing {{ slapparameter_dict.get("testing", False) }}
raw python_path {{ buildout_directory}}/bin/pythonwitheggs
json iru_dict {{ rulib.iru_dict | tojson }}
mode = 0775
url = {{ amarisoft_stats_template }}
output = ${directory:bin}/amarisoft-stats.py
...
...
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