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
Lu Xu
slapos
Commits
73f0b9af
Commit
73f0b9af
authored
Oct 23, 2023
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
b276f8c4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
14 deletions
+22
-14
component/pygolang/buildout.cfg
component/pygolang/buildout.cfg
+2
-0
software/ors-amarisoft/amari/slap.jinja2
software/ors-amarisoft/amari/slap.jinja2
+10
-4
software/ors-amarisoft/buildout.hash.cfg
software/ors-amarisoft/buildout.hash.cfg
+3
-3
software/ors-amarisoft/ru/libinstance.jinja2.cfg
software/ors-amarisoft/ru/libinstance.jinja2.cfg
+3
-3
software/ors-amarisoft/software-base.cfg
software/ors-amarisoft/software-base.cfg
+4
-4
No files found.
component/pygolang/buildout.cfg
View file @
73f0b9af
...
...
@@ -47,6 +47,8 @@ initialization =
# NOTE with scripts=ø interpreter is not handled, so we use `scripts=python` as
# a workaround.
scripts = ${:interpreter}
# this is where buildout installs the interpreter
exe = ${buildout:bin-directory}/${:interpreter}
# pyprog provides macro recipe to build python programs.
...
...
software/ors-amarisoft/amari/slap.jinja2
View file @
73f0b9af
...
...
@@ -83,6 +83,13 @@
{{- slapparameter_dict.get(name, defaults.get(name)) }}
{%- endmacro %}
{#- tap indicates tap interface that slapos told us to use.
or 'xxx-notap-xxx' if slapos provided us nothing or empty string. #}
{%- set tap = slap_configuration.get('tap-name', '') %}
{%- if tap == '' %}
{%- set tap = 'xxx-notap-xxx' %}
{%- endif %}
{#- J is used around macro calls to retrieve returned objects.
...
...
@@ -231,14 +238,13 @@
{#- assign TAP interfaces to cpri RUs #}
{%- set iru_vcpri = list(iru_dict|dictsort | selectattr('1._.ru_link_type', '==', 'cpri')) %}
{%- set tap_base = slap_configuration.get('tap-name', '') %}
{%- for i, (ru_ref, iru) in enumerate(iru_vcpri) %}
{%- if len(iru_vcpri) > 1 %}
{%- set
tap = "%s-%d" % (tap_base, i+1)
%}
{%- set
ru_tap = "%s-%d" % (tap, i+1)
%}
{%- else %}
{%- set
tap = tap_base
%}
{%- set
ru_tap = tap
%}
{%- endif %}
{%- do iru._.cpri_link.update({'_tap':
tap})
%}
{%- do iru._.cpri_link.update({'_tap':
ru_tap})
%}
{%- endfor %}
{%- endmacro %}
...
...
software/ors-amarisoft/buildout.hash.cfg
View file @
73f0b9af
...
...
@@ -24,11 +24,11 @@ md5sum = 35ad3e7f7ef68831147a297586593660
[amari_slap.jinja2]
_update_hash_filename_ = amari/slap.jinja2
md5sum =
98a2c30d4372a84e42175d590c9d0720
md5sum =
07e6e578c88062a15d9bb4ceae27d5fa
[ru_libinstance.jinja2.cfg]
_update_hash_filename_ = ru/libinstance.jinja2.cfg
md5sum =
b3377a9aa722c232246a425ee39e0e86
md5sum =
0d6552b13d87f89f8e5df0d4821ae3c8
[ru_sdr_libinstance.jinja2.cfg]
_update_hash_filename_ = ru/sdr/libinstance.jinja2.cfg
...
...
@@ -80,7 +80,7 @@ md5sum = ec56bee0916563807197ed5ef0ca0908
[ru_tapsplit]
_update_hash_filename_ = ru/tapsplit
md5sum =
b547df6f6efe841466def20531770923
md5sum =
1b62135bf50823d85125a1ade5701388
[ru_xexec.c]
_update_hash_filename_ = ru/xexec.c
...
...
software/ors-amarisoft/ru/libinstance.jinja2.cfg
View file @
73f0b9af
...
...
@@ -58,7 +58,7 @@ config-testing = {{ slapparameter_dict.get("testing", False) }}
[vtap]
recipe = plone.recipe.command
ntap = {{ ntap }}
command = {{ netcapdo }} {{ buildout_directory }}/bin/pythonwitheggs {{ ru_tapsplit }} {{ slap
_configuration['tap-name']
}} ${:ntap}
command = {{ netcapdo }} {{ buildout_directory }}/bin/pythonwitheggs {{ ru_tapsplit }} {{ slap
lte.tap
}} ${:ntap}
update-command = ${:command}
stop-on-error = true
...
...
@@ -68,7 +68,7 @@ ntap = 0
stop-on-error = false
{%- if ntap == 1 %}
[vtap.{{ slap
_configuration['tap-name']
}}]
[vtap.{{ slap
lte.tap
}}]
network = {{ slap_configuration['tap-ipv6-network'] }}
gateway = {{ slap_configuration['tap-ipv6-gateway'] }}
addr = {{ slap_configuration['tap-ipv6-addr'] }}
...
...
@@ -77,7 +77,7 @@ addr = {{ slap_configuration['tap-ipv6-addr'] }}
{%- else %}
{%- for i in range(1,ntap+1) %}
{%- set tap = '%s-%d' % (slap
_configuration['tap-name']
, i) %}
{%- set tap = '%s-%d' % (slap
lte.tap
, i) %}
[vtap.{{ tap }}]
recipt = slapos.recipe.build
init =
...
...
software/ors-amarisoft/software-base.cfg
View file @
73f0b9af
...
...
@@ -44,7 +44,7 @@ parts +=
rsvp.js
iperf3
dnsmasq
eggs
pythonwith
eggs
xamari
setcap-dnsmasq
# unimplemented parts - the http monitor and better log handling using logrotate
...
...
@@ -160,9 +160,9 @@ md5sum = 2b0f2d52857b17fdfb8a5c2ea451a5ad
url = https://raw.githubusercontent.com/guschnwg/g-chart/cbcc7bc40f88fcce4854b55d0902b6273004ba3e/g-chart.line.js
md5sum = 57c50b46c9492c6ab78dc44deac3c0ce
[eggs]
recipe = zc.recipe.egg
eggs =
[
pythonwith
eggs]
<= python-interpreter
eggs
+
=
websocket-client
${python-pynacl:egg}
${bcrypt:egg}
...
...
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