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
Nirina Malard
slapos
Commits
8cb92d3e
Commit
8cb92d3e
authored
Jul 20, 2022
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP
parent
72db605e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
4 deletions
+13
-4
software/ors-amarisoft/buildout.hash.cfg
software/ors-amarisoft/buildout.hash.cfg
+3
-3
software/ors-amarisoft/instance-mme.jinja2.cfg
software/ors-amarisoft/instance-mme.jinja2.cfg
+1
-0
software/ors-amarisoft/instance.cfg
software/ors-amarisoft/instance.cfg
+7
-0
software/ors-amarisoft/promise/check_interface_up.jinja2.py
software/ors-amarisoft/promise/check_interface_up.jinja2.py
+2
-1
No files found.
software/ors-amarisoft/buildout.hash.cfg
View file @
8cb92d3e
...
...
@@ -16,7 +16,7 @@
[template]
filename = instance.cfg
md5sum =
06331958afaaeb200e4d7f48b417cde8
md5sum =
496f19765e507275e89f79625c068e3e
[template-lte-enb-epc]
_update_hash_filename_ = instance-enb-epc.jinja2.cfg
...
...
@@ -40,7 +40,7 @@ md5sum = 7d25976008c3aa588527db2b461ad72c
[template-lte-mme]
_update_hash_filename_ = instance-mme.jinja2.cfg
md5sum =
eed24ef6943a1f3ab49329c8f8519e93
md5sum =
6696d9cd236b0c5a42901bc3907bb9c7
[ue_db.jinja2.cfg]
filename = config/ue_db.jinja2.cfg
...
...
@@ -76,4 +76,4 @@ md5sum = 2353f90918ea72df77c5823ed7cbaf77
[interface-up-promise]
_update_hash_filename_ = promise/check_interface_up.jinja2.py
md5sum =
f2618cb03b163a29c60d37de61a22269
md5sum =
3f52fadd0da1d3975991a62cec0b03e6
software/ors-amarisoft/instance-mme.jinja2.cfg
View file @
8cb92d3e
...
...
@@ -164,3 +164,4 @@ recipe = slapos.cookbook:promise.plugin
eggs = slapos.core
file = ${tun-up-promise-template:output}
output = ${directory:plugins}/check-tun-up.py
config-testing = {{ testing }}
software/ors-amarisoft/instance.cfg
View file @
8cb92d3e
...
...
@@ -39,6 +39,12 @@ init =
options['mme'] = path + "/mme"
options['ims'] = path + "/ims"
[testing]
recipe = slapos.recipe.build
path = ${buildout:directory}
init =
options['testing'] = path.count("slappart") == 2
[switch-softwaretype]
recipe = slapos.cookbook:switch-softwaretype
enb-epc = dynamic-template-lte-enb-epc:output
...
...
@@ -135,6 +141,7 @@ extra-context =
raw openssl_location ${openssl:location}
raw nghttp2_location ${nghttp2:location}
key ue_db_path ue-db-config:output
key testing testing:testing
[ue-db-config]
recipe = slapos.recipe.template:jinja2
...
...
software/ors-amarisoft/promise/check_interface_up.jinja2.py
View file @
8cb92d3e
...
...
@@ -28,8 +28,9 @@ class RunPromise(GenericPromise):
In this case, check whether the file exists.
"""
ifname
=
"{{ slap_configuration.get('tun-name', '') }}"
testing
=
self
.
getConfig
(
'testing'
)
if
ifname
:
if
not
testing
:
f
=
open
(
'/sys/class/net/%s/operstate'
%
ifname
,
'r'
)
if
f
.
read
()
==
'up
\
n
'
:
self
.
logger
.
info
(
"%s is up"
,
ifname
)
...
...
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