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
Carlos Ramos Carreño
slapos
Commits
104a859b
Commit
104a859b
authored
Apr 16, 2024
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip
parent
4aeb175c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
software/ors-amarisoft/buildout.hash.cfg
software/ors-amarisoft/buildout.hash.cfg
+1
-1
software/ors-amarisoft/instance-core-network.jinja2.cfg
software/ors-amarisoft/instance-core-network.jinja2.cfg
+5
-1
No files found.
software/ors-amarisoft/buildout.hash.cfg
View file @
104a859b
...
...
@@ -100,7 +100,7 @@ md5sum = 601d6237059fa665d3f3ffb6a78ad9ca
[template-core-network]
_update_hash_filename_ = instance-core-network.jinja2.cfg
md5sum =
f9c412973d0bbc8053ee6a1f7ccbb0c1
md5sum =
d977efa46a1654e3d93845c13f0ef1d0
[template-ue]
_update_hash_filename_ = instance-ue.jinja2.cfg
...
...
software/ors-amarisoft/instance-core-network.jinja2.cfg
View file @
104a859b
...
...
@@ -125,6 +125,7 @@ stop-on-error = true
command = :
{%- endif %}
{%- set test_slapnet = netaddr.IPNetwork('1234::/71') %}
{%- for i in range(1,3) %}
{%- set tun = '%s-%d' % (tun, i) %}
{%- do vtun_list.append(tun) %}
...
...
@@ -149,7 +150,8 @@ init =
slapnet = netaddr.IPNetwork('{{ str(test_slapnet) }}')
else:
slapnet = tunsplit.ifnet6('{{ tun }}')
tunnet = tunsplit.netsplit(slapnet, {{ 1+ntun }}) [{{ i }}]
slapnet = tunsplit.ifnet6('{{ tun }}')
tunnet = tunsplit.netsplit(slapnet, 2) [{{ i }}]
options['network'] = str(tunnet)
options['gateway'] = str(tunnet[1])
...
...
@@ -278,6 +280,8 @@ extensions = jinja2.ext.do
context =
section directory directory
section slap_configuration slap-configuration
section vtun1 vtun.{{ slap_configuration.get('tun-name', '') }}-1
section vtun2 vtun.{{ slap_configuration.get('tun-name', '') }}-2
key slapparameter_dict slap-configuration:configuration
raw gtp_addr_v6 {{ my_ipv6 }}
raw gtp_addr_v4 {{ lan_ipv4 }}
...
...
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