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

Fix trunk suffix calculation

parent 64493255
No related branches found
No related tags found
1 merge request!252Fix trunk suffix calculation
Pipeline #93214 passed
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
{# 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 %}
{% set trunk_suffix = '-'+wfo_trunk.iptrunk.iptrunk_description_suffix if wfo_trunk.iptrunk.iptrunk_description_suffix is string %} {% set trunk_suffix = '-'+wfo_trunk.iptrunk.iptrunk_description_suffix if wfo_trunk.iptrunk.iptrunk_description_suffix|length > 0 %}
{##} {##}
interfaces { interfaces {
replace: {{local.ae_name}} { replace: {{local.ae_name}} {
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
{% 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 %}
{% set trunk_suffix = '-'+wfo_trunk.iptrunk.iptrunk_description_suffix if wfo_trunk.iptrunk.iptrunk_description_suffix is string %} {% set trunk_suffix = '-'+wfo_trunk.iptrunk.iptrunk_description_suffix if wfo_trunk.iptrunk.iptrunk_description_suffix|length > 0 %}
{##} {##}
{% 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