Commit 4e36254f authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent fcc523a4
...@@ -96,6 +96,9 @@ ...@@ -96,6 +96,9 @@
{%- else %} {%- else %}
name: "sdr", name: "sdr",
{%- endif %} {%- endif %}
{% if slapparameter_dict.get('gps_sync', False) %}
sync: "gps",
{% endif %}
{%- set dev_argv = [] %} {%- set dev_argv = [] %}
{%- ru_cpri_dict = {} %} {# dev -> ru for ru with link_kind = cpri #} {%- ru_cpri_dict = {} %} {# dev -> ru for ru with link_kind = cpri #}
...@@ -111,21 +114,21 @@ ...@@ -111,21 +114,21 @@
{%- elif ru['ru_link_type'] == 'cpri' %} {%- elif ru['ru_link_type'] == 'cpri' %}
{%- do ru_cpri_dict[len(dev_argv)] = ru %} {%- do ru_cpri_dict[len(dev_argv)] = ru %}
{%- do dev_argv.append("dev%d=/dev/sdr%d@%d" % (len(dev_argv), ru['sdr_dev'], ru['sfp_port'])) %} {%- do dev_argv.append("dev%d=/dev/sdr%d@%d" % (len(dev_argv), ru['sdr_dev'], ru['sfp_port'])) %}
{# set cpri parameters to default {# set cpri parameters to default #}
{%- ru.setdefault('cpri_mapping', 'hw') %} XXX <- should be preset set by ru? (specific to ru?) {%- do ru.setdefault('cpri_mapping', 'hw') %} XXX <- should be preset set by ru? (specific to ru?)
{%- ru.setdefault('cpri_mult', 16) %} {%- do ru.setdefault('cpri_mult', 16) %}
{%- ru.setdefault('cpri_rx_delay', 0) %} {%- do ru.setdefault('cpri_rx_delay', 0) %}
{%- ru.setdefault('cpri_tx_delay', 0) %} {%- do ru.setdefault('cpri_tx_delay', 0) %}
{%- ru.setdefault('cpri_tx_dbm', 0) %} {%- do ru.setdefault('cpri_tx_dbm', 0) %}
{%- else %} {%- else %}
{{ bug('unreachable') %} {%- do bug('unreachable') %}
{%- endif %} {%- endif %}
{%- endfor %} {%- endfor %}
args: "{{dev_argv | join(',')}}", args: "{{dev_argv | join(',')}}",
{# emit cpri_* optins if a cpri ru is present #} {# emit cpri_* optins if a cpri ru is present #}
{# NOTE values for non-cpri links come as empty XXX recheck this is ok #} {# NOTE values for non-cpri links come as empty XXX recheck this is ok #}
{%- if ru_cpri_dict|length > 0 %} {%- if ru_cpri_dict|length > 0 %}
{%- set vcpri = [None]*(dev_argv|length) %} {%- set vcpri = [None]*(dev_argv|length) %}
{%- for dev, ru in ru_cpri_dict|dictsort %} {%- for dev, ru in ru_cpri_dict|dictsort %}
...@@ -147,9 +150,10 @@ ...@@ -147,9 +150,10 @@
{%- endfor %} {%- endfor %}
ifname: "{{ vtap | join(',') }}", ifname: "{{ vtap | join(',') }}",
{%- endif %} {%- endif %}
},
XXX tx_gain
} XXX rx_gain
# XXX <- trx_X # XXX <- trx_X
......
...@@ -9,10 +9,8 @@ if ru_link_type = "cpri": ...@@ -9,10 +9,8 @@ if ru_link_type = "cpri":
sfp_port number sfp_port number
//cpri_link: string # e.g. sdrX@Y //cpri_link: string # e.g. sdrX@Y
cpri_mult: int per port cpri_mult: int
cpri_mapping: standard|hw|spread|bf1) per port <- selected by ru model cpri_mapping: standard|hw|spread|bf1 <- selected by ru model ?
fast_cm_pointer: int per port cpri_rx_delay: int <- selected by ru model
vss_data ... cpri_tx_delay: int <- ? selected by ru or not ?
cpri_rx_delay: int <- selected by ru model
cpri_tx_delay: int <- ? selected by ru or not ?
cpri_tx_dbm: float cpri_tx_dbm: float
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