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

Merge branch 'v1.0.50' into 'develop'

V1.0.50

See merge request !113
parents 3c6f2348 c2c98f8f
No related branches found
No related tags found
1 merge request!113V1.0.50
Pipeline #85857 passed
# GAP Ansible changelog # GAP Ansible changelog
1.0.50:
- basic support for the iptrunk_migration workflow:
mx-mx trunk -> mx-nokia trunk.
1.0.49:
- get rid of the hardcoded `remote_user` in playbooks.
1.0.48: 1.0.48:
- fix PIM fw filter - fix PIM fw filter
- add redundancy rollback config - add redundancy rollback config
......
...@@ -8,7 +8,7 @@ namespace: geant ...@@ -8,7 +8,7 @@ namespace: geant
name: gap_ansible name: gap_ansible
# The version of the collection. Must be compatible with semantic versioning # The version of the collection. Must be compatible with semantic versioning
version: 1.0.48 version: 1.0.50
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection # The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md readme: README.md
......
<config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:alu="urn:ietf:params:xml:ns:netconf:base:1.0">
<configure xmlns="urn:nokia.com:sros:ns:yang:sr:conf">
{##}
{% for trunk in trunks %}
{% if inventory_hostname == trunk.config.nodeA.name %}
{% set local= trunk.config.nodeA %}
{% set remote= trunk.config.nodeB %}
{% set common= trunk.config.common %}
{% endif %}
{% if inventory_hostname == trunk.config.nodeB.name %}
{% set local= trunk.config.nodeB %}
{% set remote= trunk.config.nodeA %}
{% set common= trunk.config.common %}
{% endif %}
{% if local is defined %}
{##}
{# I need to sort the source and the destination alfabetically #}
{% set trunk_direction_name = [ local.name.split(".")[1] | upper, remote.name.split(".")[1] | upper ] %}
{% set trunk_direction_name_sorted = trunk_direction_name|sort %}
{##}
{% for member in local.members %}
<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="delete">
<port-id>{{ member.interface_name }}</port-id>
</port>
{% endfor %}
<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="delete">
<lag-name>{{ local.ae_name }}</lag-name>
</lag>
<router 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">
<router-name>Base</router-name>
<interface alu:operation="delete">
<interface-name>{{ local.ae_name }}.0</interface-name>
</interface>
<isis 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">
<isis-instance>0</isis-instance>
<interface 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="delete">
<interface-name>{{ local.ae_name }}.0</interface-name>
</interface>
</isis>
<mpls 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">
<interface alu:operation="delete">
<interface-name>{{ local.ae_name | lower }}.0</interface-name>
</interface>
</mpls>
<pim 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">
<interface alu:operation="delete">
<interface-name>{{ local.ae_name | lower }}.0</interface-name>
</interface>
</pim>
<rsvp 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">
<interface alu:operation="delete">
<interface-name>{{ local.ae_name | lower }}.0</interface-name>
</interface>
</rsvp>
</router>
{% endif %}
{% endfor %}
</configure>
</config>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment