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

Merge branch 'fix/iptrunk-name-suffix' into 'develop'

Update calculation of `trunk_suffix`

See merge request !256
parents 41193e4b 2c6362e3
No related branches found
No related tags found
1 merge request!256Update calculation of `trunk_suffix`
Pipeline #93390 passed
...@@ -25,7 +25,10 @@ ...@@ -25,7 +25,10 @@
{# I need to sort the source and the destination alfabetically #} {# 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 = [ local.name.split(".")[1] | upper, remote.name.split(".")[1] | upper ] %}
{% set trunk_direction_name_sorted = trunk_direction_name|sort %} {% set trunk_direction_name_sorted = trunk_direction_name|sort %}
{% if wfo_trunk.iptrunk.iptrunk_description_suffix is not none %}
{% set trunk_suffix = '-'+wfo_trunk.iptrunk.iptrunk_description_suffix if wfo_trunk.iptrunk.iptrunk_description_suffix|length > 0 %} {% set trunk_suffix = '-'+wfo_trunk.iptrunk.iptrunk_description_suffix if wfo_trunk.iptrunk.iptrunk_description_suffix|length > 0 %}
{% endif %}
{##} {##}
interfaces { interfaces {
replace: {{local.ae_name}} { replace: {{local.ae_name}} {
......
...@@ -26,7 +26,9 @@ ...@@ -26,7 +26,9 @@
{% set trunk_direction_name = [ local.name.split(".")[1] | upper, remote.name.split(".")[1] | upper ] %} {% set trunk_direction_name = [ local.name.split(".")[1] | upper, remote.name.split(".")[1] | upper ] %}
{% set trunk_direction_name_sorted = trunk_direction_name|sort %} {% set trunk_direction_name_sorted = trunk_direction_name|sort %}
{% if wfo_trunk.iptrunk.iptrunk_description_suffix is not none %}
{% set trunk_suffix = '-'+wfo_trunk.iptrunk.iptrunk_description_suffix if wfo_trunk.iptrunk.iptrunk_description_suffix|length > 0 %} {% set trunk_suffix = '-'+wfo_trunk.iptrunk.iptrunk_description_suffix if wfo_trunk.iptrunk.iptrunk_description_suffix|length > 0 %}
{% endif %}
{##} {##}
{% for member in local.members %} {% 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="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">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment