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

template cleanup

parent 5e99a92a
No related branches found
No related tags found
1 merge request!184Updates to the edge_port role
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<port 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"> <port 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">
<port-id>{{ member.interface_name }}</port-id> <port-id>{{ member.interface_name }}</port-id>
<admin-state>enable</admin-state> <admin-state>enable</admin-state>
<description>PHY {{ ep.edge_port_type }} {{ partner_name }} P_{{ ep.edge_port_name }} | {{ member.interface_description }}</description> <description>PHY {{ ep.edge_port_type }} {{ partner_name }} P_{{ ep.edge_port_name }} | {{ member.interface_description }}</description>
<ethernet> <ethernet>
<mode>access</mode> <mode>access</mode>
<mtu>{{ mtu_phy | default(9192) }}</mtu> <mtu>{{ mtu_phy | default(9192) }}</mtu>
...@@ -37,13 +37,13 @@ ...@@ -37,13 +37,13 @@
<lag 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"> <lag 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">
<lag-name>{{ ep.edge_port_name | lower }}</lag-name> <lag-name>{{ ep.edge_port_name | lower }}</lag-name>
<admin-state>enable</admin-state> <admin-state>enable</admin-state>
{% if ep.edge_port_geant_ga_id is string %} {% if ep.geant_ga_id is string %}
<description>LAG {{ ep.edge_port_type }} {{ partner_name }} ${{ ep.edge_port_geant_ga_id }} | </description> <description>LAG {{ ep.edge_port_type }} {{ partner_name }} ${{ ep.geant_ga_id }} |</description>
{% else %} {% else %}
<description>LAG {{ ep.edge_port_type }} {{ partner_name }} | </description> <description>LAG {{ ep.edge_port_type }} {{ partner_name }} |</description>
{% endif %} {% endif %}
<mode>access</mode> <mode>access</mode>
{% if ep.edge_port_enable_lacp is true %} {% if ep.enable_lacp is true %}
<lacp> <lacp>
<mode>active</mode> <mode>active</mode>
<administrative-key>{{ (ep.edge_port_name|split("-"))[1] }}</administrative-key> <administrative-key>{{ (ep.edge_port_name|split("-"))[1] }}</administrative-key>
...@@ -54,9 +54,9 @@ ...@@ -54,9 +54,9 @@
<port-id>{{ member.interface_name }}</port-id> <port-id>{{ member.interface_name }}</port-id>
</port> </port>
{% endfor %} {% endfor %}
{% if ( ep.edge_port_minimum_links | int) > 1 %} {% if ( ep.minimum_links | int) > 1 %}
<port-threshold> <port-threshold>
<value>{{ ( ep.edge_port_minimum_links | int) - 1 }}</value> <value>{{ ( ep.minimum_links | int) - 1 }}</value>
<action>down</action> <action>down</action>
</port-threshold> </port-threshold>
{% endif %} {% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment