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
03de3c63
Commit
03de3c63
authored
Nov 03, 2023
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
376de2a1
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
6 additions
and
81 deletions
+6
-81
software/ors-amarisoft/buildout.hash.cfg
software/ors-amarisoft/buildout.hash.cfg
+6
-10
software/ors-amarisoft/instance-core-network.jinja2.cfg
software/ors-amarisoft/instance-core-network.jinja2.cfg
+0
-11
software/ors-amarisoft/instance-enb.jinja2.cfg
software/ors-amarisoft/instance-enb.jinja2.cfg
+0
-10
software/ors-amarisoft/instance-gnb.jinja2.cfg
software/ors-amarisoft/instance-gnb.jinja2.cfg
+0
-10
software/ors-amarisoft/instance-ue.jinja2.cfg
software/ors-amarisoft/instance-ue.jinja2.cfg
+0
-10
software/ors-amarisoft/instance.cfg
software/ors-amarisoft/instance.cfg
+0
-4
software/ors-amarisoft/ltelogs.jinja2.sh
software/ors-amarisoft/ltelogs.jinja2.sh
+0
-23
software/ors-amarisoft/software-base.cfg
software/ors-amarisoft/software-base.cfg
+0
-3
No files found.
software/ors-amarisoft/buildout.hash.cfg
View file @
03de3c63
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
[template]
[template]
filename = instance.cfg
filename = instance.cfg
md5sum =
65a356f616bf9681d98f810dfd00690
1
md5sum =
f5228bb7d7db9c25a737e11ea22ea5a
1
[amari_lte.jinja2]
[amari_lte.jinja2]
_update_hash_filename_ = amari/lte.jinja2
_update_hash_filename_ = amari/lte.jinja2
...
@@ -28,7 +28,7 @@ md5sum = 4fae7413d143b6c9b1734ffbe5c8e94b
...
@@ -28,7 +28,7 @@ md5sum = 4fae7413d143b6c9b1734ffbe5c8e94b
[ru_libinstance.jinja2.cfg]
[ru_libinstance.jinja2.cfg]
_update_hash_filename_ = ru/libinstance.jinja2.cfg
_update_hash_filename_ = ru/libinstance.jinja2.cfg
md5sum =
5f7e4aeace6645b3e5cf12c263049240
md5sum =
f153b7548c73f64d37291090d5377902
[ru_sdr_libinstance.jinja2.cfg]
[ru_sdr_libinstance.jinja2.cfg]
_update_hash_filename_ = ru/sdr/libinstance.jinja2.cfg
_update_hash_filename_ = ru/sdr/libinstance.jinja2.cfg
...
@@ -88,19 +88,19 @@ md5sum = 4855e1b8dbc6fee88a16cefc39e96693
...
@@ -88,19 +88,19 @@ md5sum = 4855e1b8dbc6fee88a16cefc39e96693
[template-enb]
[template-enb]
_update_hash_filename_ = instance-enb.jinja2.cfg
_update_hash_filename_ = instance-enb.jinja2.cfg
md5sum =
289240ac3fe76f22b903a255a643ebc5
md5sum =
c5b2c3a50f154cbc59db17b9987fe70b
[template-gnb]
[template-gnb]
_update_hash_filename_ = instance-gnb.jinja2.cfg
_update_hash_filename_ = instance-gnb.jinja2.cfg
md5sum =
e4d8c66c00dc5c022e9208c10e37490e
md5sum =
2d7558e4799818a5546850f735fbb399
[template-core-network]
[template-core-network]
_update_hash_filename_ = instance-core-network.jinja2.cfg
_update_hash_filename_ = instance-core-network.jinja2.cfg
md5sum =
68512b0f564a6fb736ab92dd25613d47
md5sum =
71070879a4ee4768201ca4bc4b791ded
[template-ue]
[template-ue]
_update_hash_filename_ = instance-ue.jinja2.cfg
_update_hash_filename_ = instance-ue.jinja2.cfg
md5sum =
6abf075784e6c1d958cfc5498af5b08d
md5sum =
16f1441204306cc11ecc2fcb7ef512a2
[template-obsolete]
[template-obsolete]
_update_hash_filename_ = instance-obsolete.jinja2.cfg
_update_hash_filename_ = instance-obsolete.jinja2.cfg
...
@@ -131,10 +131,6 @@ md5sum = ffe710c9f99cf933db5f4b82d9db88b8
...
@@ -131,10 +131,6 @@ md5sum = ffe710c9f99cf933db5f4b82d9db88b8
filename = config/gnb.jinja2.cfg
filename = config/gnb.jinja2.cfg
md5sum = 075df4848e08ef8a595b33164238a0e7
md5sum = 075df4848e08ef8a595b33164238a0e7
[ltelogs.jinja2.sh]
filename = ltelogs.jinja2.sh
md5sum = 1ba2e065bdf14a6411e95e80db17dcfd
[mme.jinja2.cfg]
[mme.jinja2.cfg]
filename = config/mme.jinja2.cfg
filename = config/mme.jinja2.cfg
md5sum = 44fc9ee5082dd8e0298801f8d4618b06
md5sum = 44fc9ee5082dd8e0298801f8d4618b06
...
...
software/ors-amarisoft/instance-core-network.jinja2.cfg
View file @
03de3c63
...
@@ -37,7 +37,6 @@ info = DNS entry with has been attached to service ${slap-configuration:instance
...
@@ -37,7 +37,6 @@ info = DNS entry with has been attached to service ${slap-configuration:instance
[buildout]
[buildout]
parts =
parts =
directory
directory
ltelogs
mme-config
mme-config
mme-service
mme-service
monitor-base
monitor-base
...
@@ -100,14 +99,6 @@ service = ${:etc}/service
...
@@ -100,14 +99,6 @@ service = ${:etc}/service
promise = ${:etc}/promise
promise = ${:etc}/promise
log = ${:var}/log
log = ${:var}/log
[ltelogs]
recipe = slapos.recipe.template:jinja2
url = {{ ltelogs_template }}
output = ${directory:home}/ltelogs.sh
extensions = jinja2.ext.do
context =
section directory directory
{% if slapparameter_dict.get("mme_config_link", None) %}
{% if slapparameter_dict.get("mme_config_link", None) %}
[mme-config-dl]
[mme-config-dl]
recipe = slapos.recipe.build:download
recipe = slapos.recipe.build:download
...
@@ -119,7 +110,6 @@ offline = false
...
@@ -119,7 +110,6 @@ offline = false
### IMS
### IMS
[ims-service]
[ims-service]
recipe = slapos.cookbook:wrapper
recipe = slapos.cookbook:wrapper
init = ${ltelogs:output} ${directory:log}/ims.log; sleep 1
command-line = {{ mme }}/lteims ${directory:etc}/ims.cfg
command-line = {{ mme }}/lteims ${directory:etc}/ims.cfg
wrapper-path = ${directory:service}/ims
wrapper-path = ${directory:service}/ims
mode = 0775
mode = 0775
...
@@ -148,7 +138,6 @@ inline =
...
@@ -148,7 +138,6 @@ inline =
recipe = slapos.cookbook:wrapper
recipe = slapos.cookbook:wrapper
# When the machine shutdowns abruptly, lte_ue is not cleaned up which causes
# When the machine shutdowns abruptly, lte_ue is not cleaned up which causes
# amarisoft ltemme to fail. TODO: find a cleaner way to handle this
# amarisoft ltemme to fail. TODO: find a cleaner way to handle this
init = ${ltelogs:output} ${directory:log}/mme.log
command-line = ${mme-sh-wrapper:output}
command-line = ${mme-sh-wrapper:output}
wrapper-path = ${directory:service}/mme
wrapper-path = ${directory:service}/mme
mode = 0775
mode = 0775
...
...
software/ors-amarisoft/instance-enb.jinja2.cfg
View file @
03de3c63
...
@@ -5,7 +5,6 @@
...
@@ -5,7 +5,6 @@
[buildout]
[buildout]
parts =
parts =
directory
directory
ltelogs
enb-config
enb-config
enb-service
enb-service
xamari-xlog-service
xamari-xlog-service
...
@@ -86,14 +85,6 @@ service = ${:etc}/service
...
@@ -86,14 +85,6 @@ service = ${:etc}/service
promise = ${:etc}/promise
promise = ${:etc}/promise
log = ${:var}/log
log = ${:var}/log
[ltelogs]
recipe = slapos.recipe.template:jinja2
url = {{ ltelogs_template }}
output = ${directory:home}/ltelogs.sh
extensions = jinja2.ext.do
context =
section directory directory
{% if slapparameter_dict.get("enb_config_link", None) %}
{% if slapparameter_dict.get("enb_config_link", None) %}
[enb-config-dl]
[enb-config-dl]
recipe = slapos.recipe.build:download
recipe = slapos.recipe.build:download
...
@@ -120,7 +111,6 @@ inline =
...
@@ -120,7 +111,6 @@ inline =
[enb-service]
[enb-service]
recipe = slapos.cookbook:wrapper
recipe = slapos.cookbook:wrapper
init = ${ltelogs:output} ${directory:log}/enb.log; sleep 2
command-line = ${enb-sh-wrapper:output}
command-line = ${enb-sh-wrapper:output}
wrapper-path = ${directory:service}/enb
wrapper-path = ${directory:service}/enb
mode = 0775
mode = 0775
...
...
software/ors-amarisoft/instance-gnb.jinja2.cfg
View file @
03de3c63
[buildout]
[buildout]
parts =
parts =
directory
directory
ltelogs
gnb-config
gnb-config
enb-service
enb-service
xamari-xlog-service
xamari-xlog-service
...
@@ -70,14 +69,6 @@ service = ${:etc}/service
...
@@ -70,14 +69,6 @@ service = ${:etc}/service
promise = ${:etc}/promise
promise = ${:etc}/promise
log = ${:var}/log
log = ${:var}/log
[ltelogs]
recipe = slapos.recipe.template:jinja2
url = {{ ltelogs_template }}
output = ${directory:home}/ltelogs.sh
extensions = jinja2.ext.do
context =
section directory directory
{% if slapparameter_dict.get("gnb_config_link", None) %}
{% if slapparameter_dict.get("gnb_config_link", None) %}
[gnb-config-dl]
[gnb-config-dl]
recipe = slapos.recipe.build:download
recipe = slapos.recipe.build:download
...
@@ -106,7 +97,6 @@ inline =
...
@@ -106,7 +97,6 @@ inline =
### eNodeB (enb)
### eNodeB (enb)
[enb-service]
[enb-service]
recipe = slapos.cookbook:wrapper
recipe = slapos.cookbook:wrapper
init = ${ltelogs:output} ${directory:log}/enb.log; sleep 2
command-line = ${enb-sh-wrapper:output}
command-line = ${enb-sh-wrapper:output}
wrapper-path = ${directory:service}/enb
wrapper-path = ${directory:service}/enb
mode = 0775
mode = 0775
...
...
software/ors-amarisoft/instance-ue.jinja2.cfg
View file @
03de3c63
[buildout]
[buildout]
parts =
parts =
directory
directory
ltelogs
lte-ue-config
lte-ue-config
lte-ue-service
lte-ue-service
monitor-base
monitor-base
...
@@ -58,14 +57,6 @@ service = ${:etc}/service
...
@@ -58,14 +57,6 @@ service = ${:etc}/service
promise = ${:etc}/promise
promise = ${:etc}/promise
log = ${:var}/log
log = ${:var}/log
[ltelogs]
recipe = slapos.recipe.template:jinja2
url = {{ ltelogs_template }}
output = ${directory:home}/ltelogs.sh
extensions = jinja2.ext.do
context =
section directory directory
{% if slapparameter_dict.get("ue_config_link", None) %}
{% if slapparameter_dict.get("ue_config_link", None) %}
[ue-config-dl]
[ue-config-dl]
recipe = slapos.recipe.build:download
recipe = slapos.recipe.build:download
...
@@ -91,7 +82,6 @@ inline =
...
@@ -91,7 +82,6 @@ inline =
### User Equipment (UE)
### User Equipment (UE)
[lte-ue-service]
[lte-ue-service]
recipe = slapos.cookbook:wrapper
recipe = slapos.cookbook:wrapper
init = ${ltelogs:output} ${directory:log}/ue.log; sleep 2
command-line = ${lte-ue-sh-wrapper:output}
command-line = ${lte-ue-sh-wrapper:output}
wrapper-path = ${directory:service}/lte-ue
wrapper-path = ${directory:service}/lte-ue
mode = 0775
mode = 0775
...
...
software/ors-amarisoft/instance.cfg
View file @
03de3c63
...
@@ -298,7 +298,6 @@ extra-context =
...
@@ -298,7 +298,6 @@ extra-context =
raw drb_lte_template ${drb_lte.jinja2.cfg:target}
raw drb_lte_template ${drb_lte.jinja2.cfg:target}
raw drb_nr_template ${drb_nr.jinja2.cfg:target}
raw drb_nr_template ${drb_nr.jinja2.cfg:target}
raw sib23_template ${sib23.jinja2.asn:target}
raw sib23_template ${sib23.jinja2.asn:target}
raw ltelogs_template ${ltelogs.jinja2.sh:target}
raw amarisoft_stats_template ${amarisoft-stats.jinja2.py:target}
raw amarisoft_stats_template ${amarisoft-stats.jinja2.py:target}
raw amarisoft_rf_info_template ${amarisoft-rf-info.jinja2.py:target}
raw amarisoft_rf_info_template ${amarisoft-rf-info.jinja2.py:target}
raw ru_lopcomm_stats_template ${ru_lopcomm_stats.jinja2.py:target}
raw ru_lopcomm_stats_template ${ru_lopcomm_stats.jinja2.py:target}
...
@@ -335,7 +334,6 @@ extra-context =
...
@@ -335,7 +334,6 @@ extra-context =
key enb amarisoft:enb
key enb amarisoft:enb
key sdr amarisoft:sdr
key sdr amarisoft:sdr
raw gnb_template ${gnb.jinja2.cfg:target}
raw gnb_template ${gnb.jinja2.cfg:target}
raw ltelogs_template ${ltelogs.jinja2.sh:target}
raw amarisoft_stats_template ${amarisoft-stats.jinja2.py:target}
raw amarisoft_stats_template ${amarisoft-stats.jinja2.py:target}
raw amarisoft_rf_info_template ${amarisoft-rf-info.jinja2.py:target}
raw amarisoft_rf_info_template ${amarisoft-rf-info.jinja2.py:target}
raw openssl_location ${openssl:location}
raw openssl_location ${openssl:location}
...
@@ -356,7 +354,6 @@ extra-context =
...
@@ -356,7 +354,6 @@ extra-context =
raw mme_template ${mme.jinja2.cfg:target}
raw mme_template ${mme.jinja2.cfg:target}
raw dnsmasq_template ${dnsmasq-core-network.jinja2.cfg:target}
raw dnsmasq_template ${dnsmasq-core-network.jinja2.cfg:target}
raw ims_template ${ims.jinja2.cfg:target}
raw ims_template ${ims.jinja2.cfg:target}
raw ltelogs_template ${ltelogs.jinja2.sh:target}
raw openssl_location ${openssl:location}
raw openssl_location ${openssl:location}
raw nghttp2_location ${nghttp2:location}
raw nghttp2_location ${nghttp2:location}
raw iperf3_location ${iperf3:location}
raw iperf3_location ${iperf3:location}
...
@@ -374,7 +371,6 @@ extra-context =
...
@@ -374,7 +371,6 @@ extra-context =
key ue amarisoft:ue
key ue amarisoft:ue
key sdr amarisoft:sdr
key sdr amarisoft:sdr
raw ue_template ${ue.jinja2.cfg:target}
raw ue_template ${ue.jinja2.cfg:target}
raw ltelogs_template ${ltelogs.jinja2.sh:target}
raw openssl_location ${openssl:location}
raw openssl_location ${openssl:location}
[ue-db-config]
[ue-db-config]
...
...
software/ors-amarisoft/ltelogs.jinja2.sh
deleted
100755 → 0
View file @
376de2a1
#!/bin/bash
# Copyright (C) 2012-2015 Amarisoft
# LTE system logger version 2016-10-13
# Path for multi environment support
export
PATH
=
"
$PATH
:/bin/:/usr/bin/:/usr/local/bin"
while
[
"
$1
"
!=
""
]
;
do
if
[
-e
"
$1
"
]
;
then
# Avoid storing logs with comments only
HAS_LOG
=
$(
grep
-v
-l
"#"
$1
)
if
[
"
$HAS_LOG
"
!=
""
]
;
then
DATE
=
$(
date
-u
+%Y%m%d.%H:%M:%S |
sed
-e
"s/ /-/g"
)
FILE
=
$(
basename
$1
)
mv
$1
"{{ directory['log'] }}/
${
FILE
}
.
${
DATE
}
"
else
rm
-f
$1
fi
fi
shift
done
software/ors-amarisoft/software-base.cfg
View file @
03de3c63
...
@@ -22,7 +22,6 @@ parts +=
...
@@ -22,7 +22,6 @@ parts +=
slapos.toolbox-dev
slapos.toolbox-dev
template
template
slapos-cookbook
slapos-cookbook
ltelogs.jinja2.sh
# copy all configs by default
# copy all configs by default
mme.jinja2.cfg
mme.jinja2.cfg
dnsmasq-core-network.jinja2.cfg
dnsmasq-core-network.jinja2.cfg
...
@@ -124,8 +123,6 @@ destination = ${buildout:directory}/gadget/${:_buildout_section_name_}
...
@@ -124,8 +123,6 @@ destination = ${buildout:directory}/gadget/${:_buildout_section_name_}
<= copy-config-to-instance
<= copy-config-to-instance
[gnb.jinja2.cfg]
[gnb.jinja2.cfg]
<= copy-config-to-instance
<= copy-config-to-instance
[ltelogs.jinja2.sh]
<= copy-to-instance
[ue_db.jinja2.cfg]
[ue_db.jinja2.cfg]
<= copy-config-to-instance
<= copy-config-to-instance
[mme.jinja2.cfg]
[mme.jinja2.cfg]
...
...
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