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

Merge branch 'NAT_178_refinements_on_iptrunk_modification' into 'develop'

Update JUNOS and NOKIA trunk_interface template to manage interface removals

See merge request !108
parents 57d54703 6a223b98
No related branches found
No related tags found
1 merge request!108Update JUNOS and NOKIA trunk_interface template to manage interface removals
Pipeline #87176 passed
...@@ -4,3 +4,4 @@ skip_list: ...@@ -4,3 +4,4 @@ skip_list:
- 'no-free-form' # Avoid using free-form when calling module actions. (ansible.builtin.set_fact) - 'no-free-form' # Avoid using free-form when calling module actions. (ansible.builtin.set_fact)
- 'role-name[path]' # Avoid using paths when importing roles. - 'role-name[path]' # Avoid using paths when importing roles.
- 'var-naming[no-role-prefix]' # - 'var-naming[no-role-prefix]' #
- 'fqcn[canonical]' # Avoid errors "You should use canonical module name `junipernetworks.junos.junos` instead of `junipernetworks.junos.junos_config`."
...@@ -78,13 +78,23 @@ ...@@ -78,13 +78,23 @@
} }
} }
{% endfor %} {% endfor %}
{% if removed_ae_members is defined %}
{% for member in removed_ae_members %}
replace: {{ member.interface_name }} {
description "PHY SPARE";
}
{% endfor %}
{% endif %}
} }
protocols { protocols {
lldp { lldp {
{% for member in local.members %} {% for member in local.members %}
replace: interface {{ member.interface_name }} ; replace: interface {{ member.interface_name }} ;
{% endfor %} {% endfor %}
{% if removed_ae_members is defined %}
{% for member in removed_ae_members %}
replace: interface {{ member.interface_name }} disable ;
{% endfor %}
} }
} }
{% endif %} {% endif %}
......
...@@ -43,6 +43,15 @@ ...@@ -43,6 +43,15 @@
</ethernet> </ethernet>
</port> </port>
{% endfor %} {% 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 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> <lag-name>{{ local.ae_name | lower }}</lag-name>
<admin-state>enable</admin-state> <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