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

Move base_config role templates to bc_templates folder

parent fefeccbb
No related branches found
No related tags found
1 merge request!167PE base config - integrated into `base_config` role.
Showing
with 26 additions and 6 deletions
...@@ -6,11 +6,11 @@ ...@@ -6,11 +6,11 @@
{% include 'sfm.j2' %} {% include 'sfm.j2' %}
{% include 'cards.j2' %} {% include 'cards.j2' %}
{% include 'connectors.j2' %} {% include 'connectors.j2' %}
{% include 'ntp.j2' %} {#{% include 'ntp.j2' %}#}
{% include 'ip_prefix_list.j2' %} {#{% include 'ip_prefix_list.j2' %}#}
{% include 'filters/cpm_filters.j2' %} {#{% include 'filters/cpm_filters.j2' %}#}
{% include 'syslog/syslog.j2' %} {#{% include 'syslog/syslog.j2' %}#}
{% include 'system/security/security.j2' %} {#{% include 'system/security/security.j2' %}#}
{% include 'qos/qos.j2' %} {#{% include 'qos/qos.j2' %}#}
</configure> </configure>
</config> </config>
{% for card in nokia_cards %} {% if router_tier == '3' %}
{% set cards=nokia_cards.sr2se %}
{% else %}
{% set cards=nokia_cards.sr7 %}
{% endif %}
{% for card in cards %}
<card xmlns="urn:nokia.com:sros:ns:yang:sr:conf" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nokia-attr="urn:nokia.com:sros:ns:yang:sr:attributes" alu:operation="replace"> <card xmlns="urn:nokia.com:sros:ns:yang:sr:conf" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nokia-attr="urn:nokia.com:sros:ns:yang:sr:attributes" alu:operation="replace">
<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>
{% if card.xiom is defined %} {% for mda in card.mdas %}
{#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