Skip to content
Snippets Groups Projects
Commit 6b31cfab authored by Aleksandr Kurbatov's avatar Aleksandr Kurbatov
Browse files

cards.j2 - accomodate SR2se

Add support to Sr2se cards with their `xiom`.
parent ebed01ec
No related branches found
No related tags found
1 merge request!167PE base config - integrated into `base_config` role.
...@@ -3,13 +3,31 @@ ...@@ -3,13 +3,31 @@
<slot-number>{{ card.slot }}</slot-number> <slot-number>{{ card.slot }}</slot-number>
<admin-state>enable</admin-state> <admin-state>enable</admin-state>
<card-type>{{ card.card_type }}</card-type> <card-type>{{ card.card_type }}</card-type>
{% for mda in card.mdas %} {% if card.xiom is defined %}
{#Xiom is the SR2se specific config#}
<xiom>
<xiom-slot>{{ card.xiom.slot }}</xiom-slot>
<level>{{ card.xiom.level }}</level>
<xiom-type>{{ card.xiom.type }}</xiom-type>
{% for mda in card.mdas %}
<mda>
<mda-slot>{{mda.mda_slot}}</mda-slot>
<admin-state>enable</admin-state>
<mda-type>{{ mda.mda_type }}</mda-type>
</mda>
{% endfor %}
</xiom>
{% else %}
{#The rest is for SR7#}
{% for mda in card.mdas %}
<mda> <mda>
<mda-slot>{{mda.mda_slot}}</mda-slot> <mda-slot>{{mda.mda_slot}}</mda-slot>
<admin-state>enable</admin-state> <admin-state>enable</admin-state>
<mda-type>{{ mda.mda_type }}</mda-type> <mda-type>{{ mda.mda_type }}</mda-type>
<level>{{ mda.mda_level }}</level> <level>{{ mda.mda_level }}</level>
</mda> </mda>
{% endfor %} {% endfor %}
{% endif %}
</card> </card>
{% endfor %} {% endfor %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment