Skip to content
Snippets Groups Projects
Commit aa06b983 authored by Simone Spinelli's avatar Simone Spinelli Committed by Aleksandr Kurbatov
Browse files

Update JUNOS and NOKIA trunk_interface template to manage interface removals

parent 57d54703
Branches
No related tags found
1 merge request!108Update JUNOS and NOKIA trunk_interface template to manage interface removals
......@@ -79,6 +79,13 @@
}
{% endfor %}
}
{% if removed_ae_members is defined %}
{% for member in removed_ae_members %}
replace: {{ member.interface_name }} {
description "PHY SPARE";
}
{% endfor %}
{% endif %}
protocols {
lldp {
{% for member in local.members %}
......
......@@ -43,6 +43,15 @@
</ethernet>
</port>
{% endfor %}
{% if removed_ae_members is defined %}
<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>
<admin-state>disable</admin-state>
<description>PHY SPARE</description>
</port>
{% for member in removed_ae_members %}
{% endfor %}
{% endif %}
<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>{{ local.ae_name | lower }}</lag-name>
<admin-state>enable</admin-state>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment