Commit a0611045 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 2a8fb1e4
......@@ -28,7 +28,7 @@ md5sum = 07e6e578c88062a15d9bb4ceae27d5fa
[ru_libinstance.jinja2.cfg]
_update_hash_filename_ = ru/libinstance.jinja2.cfg
md5sum = 63701da67c30199ec7b7b2743b7cdfe4
md5sum = 5f7e4aeace6645b3e5cf12c263049240
[ru_sdr_libinstance.jinja2.cfg]
_update_hash_filename_ = ru/sdr/libinstance.jinja2.cfg
......
......@@ -84,7 +84,15 @@ addr = {{ slap_configuration['tap-ipv6-addr'] }}
[vtap.{{ tap }}]
recipe = slapos.recipe.build
init =
tapsplit = __import__('{{ ru_tapsplit }}')
import types
def readfile(path):
with open(path) as f:
return f.read()
# ~ import tapsplit
tapsplit = types.ModuleType('tapsplit')
exec(readfile('{{ ru_tapsplit }}'), tapsplit.__dict__)
net = tapsplit.ifnet6('{{ tap }}')
options['network'] = str(net)
......@@ -108,8 +116,6 @@ init =
{#- go through all RUs and for each RU emit generic promises and invoke
RU-specific buildout handler #}
{%- for ru_ref, iru in iru_dict|dictsort %}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment