Commit a34b1023 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 4e7626d9
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
log_filename: "log/enb.log", log_filename: "log/enb.log",
// Radio Units
// Radio Units
rf_driver: { rf_driver: {
name: "sdr", name: "sdr",
// _CELL1_a_ru 4T2R // _CELL1_a_ru 4T2R
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
{{- slapparameter_dict.get(name, defaults.get(name)) }} {{- slapparameter_dict.get(name, defaults.get(name)) }}
{%- endmacro %} {%- endmacro %}
{%- import 'lte.jinja2' as lte -%} {%- import 'lte.jinja2' as lte with context -%}
{#- J is used around macro calls to retrieve returned objects. {#- J is used around macro calls to retrieve returned objects.
...@@ -169,7 +169,7 @@ ...@@ -169,7 +169,7 @@
log_filename: "{{ directory['log'] }}/enb.log", log_filename: "{{ directory['log'] }}/enb.log",
{# instantiate radio units #} {# instantiate radio units #}
{{ lte.ru_config(iru_dict) }} {{ lte.ru_config(iru_dict, slapparameter_dict) }}
{%- if slapparameter_dict.get('websocket_password', '') %} {%- if slapparameter_dict.get('websocket_password', '') %}
com_addr: "[{{ gtp_addr_v6 }}]:9001", com_addr: "[{{ gtp_addr_v6 }}]:9001",
......
{#- Package lte provides helpers for configuring Amarisoft LTE services. -#} {#- Package lte provides helpers for configuring Amarisoft LTE services. -#}
{#- XXX rename to amari ? -#} {#- XXX rename to amari ? -#}
{#- ru_config emits configuration for RF driver. {#- ru_config emits RF driver configuration for specified Radio Units. #}
#} {%- macro ru_config(iru_dict, slapparameter_dict) %}
{%- macro ru_config(iru_dict) %}
// Radio Units // Radio Units
rf_driver: { rf_driver: {
{%- if slapparameter_dict.get('disable_sdr', False) %} {%- if slapparameter_dict.get('disable_sdr', False) %}
......
...@@ -15,6 +15,9 @@ ...@@ -15,6 +15,9 @@
} }
%} %}
{%- import 'lte.jinja2' as lte with context -%}
{%- set amari = lte %}{#- XXX temp #}
// XXX setup iru + icell // XXX setup iru + icell
...@@ -49,7 +52,7 @@ ...@@ -49,7 +52,7 @@
com_addr: "{{ pub_info['com_addr'] }}", com_addr: "{{ pub_info['com_addr'] }}",
{# instantiate radio units #} {# instantiate radio units #}
{{ amari.ru_config(iru_dict) }} {{ amari.ru_config(iru_dict, slapparameter_dict) }}
rf_driver: { rf_driver: {
name: "sdr", name: "sdr",
......
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