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
Joanne Hugé
slapos
Commits
1a7ae544
Commit
1a7ae544
authored
Dec 05, 2021
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/ors-amarisoft: merge mme and ims into epc instance
parent
36b88696
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
193 deletions
+33
-193
software/lte/buildout.hash.cfg
software/lte/buildout.hash.cfg
+5
-9
software/lte/instance-default.jinja2.cfg
software/lte/instance-default.jinja2.cfg
+0
-8
software/lte/instance-epc.jinja2.cfg
software/lte/instance-epc.jinja2.cfg
+21
-7
software/lte/instance-ims-input-schema.json
software/lte/instance-ims-input-schema.json
+0
-20
software/lte/instance-ims.jinja2.cfg
software/lte/instance-ims.jinja2.cfg
+0
-115
software/lte/instance.cfg
software/lte/instance.cfg
+6
-19
software/lte/software.cfg
software/lte/software.cfg
+1
-15
No files found.
software/lte/buildout.hash.cfg
View file @
1a7ae544
...
...
@@ -16,23 +16,19 @@
[template]
filename = instance.cfg
md5sum =
b5cc50c24e76fcf36e9fe7c37d68959
3
md5sum =
f883dab264c6c45b03beff88339f257
3
[template-lte-default]
_update_hash_filename_ = instance-default.jinja2.cfg
md5sum =
3fd6a586a9d83b6b5f7b9f853a679d00
md5sum =
6e8ec82b69af1f92baf1c71e2e5531bf
[template-lte-enb]
_update_hash_filename_ = instance-enb.jinja2.cfg
md5sum = cda352579b01f0d93f2be8a71e56b5c5
[template-lte-mme]
_update_hash_filename_ = instance-mme.jinja2.cfg
md5sum = baf94ee66622224bc19c3a455c96d80a
[template-lte-ims]
_update_hash_filename_ = instance-ims.jinja2.cfg
md5sum = 648ec2c15e0f3bca71c5b7676ff10c9d
[template-lte-epc]
_update_hash_filename_ = instance-epc.jinja2.cfg
md5sum = 33609f1bcccc9c060c79a40c59d60431
[ue_db.jinja2.cfg]
filename = config/ue_db.jinja2.cfg
...
...
software/lte/instance-default.jinja2.cfg
View file @
1a7ae544
...
...
@@ -6,7 +6,6 @@ parts =
directory
lte-enb-request
lte-epc-request
lte-ims-request
monitor-base
publish-connection-information
...
...
@@ -77,16 +76,9 @@ config-dl_earfcn = {{ dumps(slapparameter_dict["dl_earfcn"]) }}
config-n_rb_dl = {{ dumps(slapparameter_dict["n_rb_dl"]) }}
{% endif %}
[lte-ims-request]
<= request-common-base
name = IMS
software-type = ims
config-name = ims
[monitor-base-url-dict]
lte-epc-request = ${lte-epc-request:connection-monitor-base-url}
lte-enb-request = ${lte-enb-request:connection-monitor-base-url}
lte-ims-request = ${lte-ims-request:connection-monitor-base-url}
[publish-connection-information]
recipe = slapos.cookbook:publish
...
...
software/lte/instance-
mme
.jinja2.cfg
→
software/lte/instance-
epc
.jinja2.cfg
View file @
1a7ae544
...
...
@@ -8,6 +8,8 @@ parts =
ltelogs
lte-mme-config
lte-mme-service
lte-ims-config
lte-ims-service
monitor-base
publish-connection-information
...
...
@@ -48,7 +50,7 @@ configuration.enb_addr = 127.0.1.1
#tun-ipv4-addr = 172.0.0.1
#tun-name = tunabc
ue_db_path =
${copy-ue-db-config:destination
}
ue_db_path =
{{ ue_db_path }
}
[directory]
recipe = slapos.cookbook:mkdirectory
...
...
@@ -73,11 +75,18 @@ extensions = jinja2.ext.do
context =
section directory directory
[copy-ue-db-config]
recipe = slapos.recipe.build:download
url = {{ ue_db_rendered_path }}
destination = {{ ue_db_path }}
mode = 0644
### IMS
[lte-ims-service]
recipe = slapos.cookbook:wrapper
init = ${ltelogs:rendered} ${directory:log}/ims.log; sleep 1
command-line = {{ mme }}/lteims ${directory:etc}/ims.cfg
wrapper-path = ${directory:service}/lte-ims
mode = 0775
pidfile = ${directory:run}/ims.pid
hash-files =
${lte-ims-config:rendered}
{{ ue_db_path }}
environment = AMARISOFT_PATH=/opt/amarisoft/.amarisoft
### MME
[lte-mme-service]
...
...
@@ -89,7 +98,7 @@ mode = 0775
pidfile = ${directory:run}/mme.pid
hash-files =
${lte-mme-config:rendered}
${copy-ue-db-config:destination
}
{{ ue_db_path }
}
environment =
LD_LIBRARY_PATH={{ openssl_location }}/lib:{{ nghttp2_location }}/lib
AMARISOFT_PATH=/opt/amarisoft/.amarisoft
...
...
@@ -111,6 +120,11 @@ context =
key slapparameter_dict instance:configuration
import netaddr netaddr
[lte-ims-config]
<= config-base
template = {{ ims_template }}
rendered = ${directory:etc}/ims.cfg
[lte-mme-config]
<= config-base
template = {{ mme_template }}
...
...
software/lte/instance-ims-input-schema.json
deleted
100644 → 0
View file @
36b88696
{
"type"
:
"object"
,
"$schema"
:
"http://json-schema.org/draft-04/schema"
,
"title"
:
"Input Parameters"
,
"properties"
:
{
"log"
:
{
"type"
:
"object"
,
"title"
:
"Log Configuration"
,
"properties"
:
{
"options"
:
{
"title"
:
"Log Options"
,
"description"
:
"Log Options"
,
"type"
:
"string"
,
"default"
:
"all.level=debug,all.max_size=32"
}
}
}
}
}
software/lte/instance-ims.jinja2.cfg
deleted
100644 → 0
View file @
36b88696
#
# Deploy EPC instance
#
[buildout]
parts =
directory
# publish-connection-parameter
ltelogs
lte-ims-config
lte-ims-service
monitor-base
publish-connection-information
extends = {{ monitor_template }}
eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }}
offline = true
[instance]
recipe = slapos.cookbook:slapconfiguration.serialised
computer = {{ slap_connection['computer-id'] }}
partition = {{ slap_connection['partition-id'] }}
url = {{ slap_connection['server-url'] }}
key = {{ slap_connection['key-file'] }}
cert = {{ slap_connection['cert-file'] }}
configuration.network_name = VIFIB
configuration.domain = vifib.com
# Identifier of frequency and band is given by one number (e.g. 3200 for 2600Mhz band 7)
#configuration.frequency = 2600
#configuration.band = 7
configuration.log_size = 50M
configuration.mme_ws_port = 9000
configuration.enb_ws_port = 9002
configuration.ims_ws_port = 9003
configuration.mme_addr = 127.0.1.100
configuration.ims_addr = 127.0.0.1
configuration.ims_bind = 127.0.0.2
configuration.enb_addr = 127.0.1.1
ue_db_path = {{ ue_db_path }}
#tun-ipv4-addr = 172.0.0.1
[directory]
recipe = slapos.cookbook:mkdirectory
software = {{ buildout_directory }}
home = ${buildout:directory}
etc = ${:home}/etc
var = ${:home}/var
etc = ${:home}/etc
bin = ${:home}/bin
run = ${:var}/run
script = ${:etc}/run
service = ${:etc}/service
promise = ${:etc}/promise
log = ${:var}/log
[ltelogs]
recipe = slapos.recipe.template:jinja2
template = {{ ltelogs_template }}
rendered = ${directory:home}/ltelogs.sh
mode = 0775
extensions = jinja2.ext.do
context =
section directory directory
### IMS
[lte-ims-service]
recipe = slapos.cookbook:wrapper
init = ${ltelogs:rendered} ${directory:log}/ims.log; sleep 1
command-line = {{ mme }}/lteims ${directory:etc}/ims.cfg
wrapper-path = ${directory:service}/lte-ims
mode = 0775
pidfile = ${directory:run}/ims.pid
hash-files =
${lte-ims-config:rendered}
{{ ue_db_path }}
environment = AMARISOFT_PATH=/opt/amarisoft/.amarisoft
[config-base]
recipe = slapos.recipe.template:jinja2
mode = 0664
extensions = jinja2.ext.do
context =
section directory directory
section instance instance
key slapparameter_dict instance:configuration
import netaddr netaddr
[lte-ims-config]
<= config-base
template = {{ ims_template }}
rendered = ${directory:etc}/ims.cfg
[publish-connection-information]
recipe = slapos.cookbook:publish.serialised
{% if slapparameter_dict.get("monitor-password", None) %}
monitor-base-url = ${monitor-instance-parameter:monitor-base-url}
{% else %}
monitor-setup-url = https://monitor.app.officejs.com/#page=settings_configurator&url=${monitor-publish-parameters:monitor-url}&username=${monitor-publish-parameters:monitor-user}&password=${monitor-publish-parameters:monitor-password}
{% endif %}
{% if slapparameter_dict.get("monitor-password", None) %}
[monitor-instance-parameter]
monitor-title = {{ slapparameter_dict['name'] }}
password = {{ slapparameter_dict['monitor-password'] }}
{% endif %}
software/lte/instance.cfg
View file @
1a7ae544
...
...
@@ -32,8 +32,7 @@ context =
recipe = slapos.cookbook:softwaretype
default = $${dynamic-template-lte-default:rendered}
enb = $${dynamic-template-lte-enb:rendered}
epc = $${dynamic-template-lte-mme:rendered}
ims = $${dynamic-template-lte-ims:rendered}
epc = $${dynamic-template-lte-epc:rendered}
[dynamic-template-lte-default]
< = jinja2-template-base
...
...
@@ -58,20 +57,20 @@ extra-context =
raw max_frequency ${enb:max-frequency}
raw default_dl_earfcn ${enb:default-dl-earfcn}
[dynamic-template-lte-
mme
]
[dynamic-template-lte-
epc
]
< = jinja2-template-base
template = ${template-lte-
mme
:target}
filename = instance-lte-
mme
.cfg
template = ${template-lte-
epc
:target}
filename = instance-lte-
epc
.cfg
extensions = jinja2.ext.do
extra-context =
raw monitor_template ${monitor2-template:rendered}
raw mme ${mme:destination}
raw mme_template ${mme.jinja2.cfg:target}
raw ims_template ${ims.jinja2.cfg:target}
raw ltelogs_template ${ltelogs.jinja2.sh:target}
raw openssl_location ${openssl:location}
raw nghttp2_location ${nghttp2:location}
key ue_db_rendered_path ue-db-config:rendered
raw ue_db_path ${ue-db:ue-db-path}
key ue_db_path ue-db-config:rendered
[ue-db-config]
recipe = slapos.recipe.template:jinja2
...
...
@@ -81,15 +80,3 @@ extensions = jinja2.ext.do
rendered = $${buildout:directory}/$${:filename}
context =
key slave_instance_list instance:slave-instance-list
[dynamic-template-lte-ims]
< = jinja2-template-base
template = ${template-lte-ims:target}
filename = instance-lte-ims.cfg
extensions = jinja2.ext.do
extra-context =
raw monitor_template ${monitor2-template:rendered}
raw mme ${mme:destination}
raw ims_template ${ims.jinja2.cfg:target}
raw ltelogs_template ${ltelogs.jinja2.sh:target}
raw ue_db_path ${ue-db:ue-db-path}
software/lte/software.cfg
View file @
1a7ae544
...
...
@@ -41,18 +41,9 @@ mode = 0644
[template-lte-enb]
<= download-base
[template-lte-
mme
]
[template-lte-
epc
]
<= download-base
[template-lte-ims]
<= download-base
[ue-db]
ue-db-path = /opt/amarisoft/ue-db/ue_db.cfg
[ue-db]
ue-db-path = /opt/amarisoft/ue-db/ue_db.cfg
[amarisoft]
recipe = slapos.recipe.build
path = /opt/amarisoft/lte
...
...
@@ -92,11 +83,6 @@ filename = mme.jinja2.cfg
<= copy-config-to-instance
filename = ims.jinja2.cfg
[md5sum]
enb = ${enb.jinja2.cfg:md5sum}
mme = ${mme.jinja2.cfg:md5sum}
ims = ${ims.jinja2.cfg:md5sum}
[sdr]
<= unpack-to-instance
url = ${amarisoft:path}/trx_${:_buildout_section_name_}-linux-${amarisoft:lte-version}.tar.gz
...
...
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