Skip to content
Snippets Groups Projects

Update calculation of `trunk_suffix`

Merged Aleksandr Kurbatov requested to merge fix/iptrunk-name-suffix into develop
2 files
+ 5
0
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -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}} {
Loading