Skip to content
Snippets Groups Projects
Commit bf3b6d98 authored by Simone Spinelli's avatar Simone Spinelli
Browse files

Update JUNOS and NOKIA trunk_interface template to manage interface removals

parent 85b9a7b1
No related branches found
No related tags found
No related merge requests found
Pipeline #85747 passed
......@@ -77,6 +77,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