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

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

Trunk suffix addition

See merge request !251
parents 7b9b9065 9b6e98b1
Branches
Tags
1 merge request!251Trunk suffix addition
Pipeline #93204 passed
...@@ -25,6 +25,7 @@ ...@@ -25,6 +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 %}
{##} {##}
interfaces { interfaces {
replace: {{local.ae_name}} { replace: {{local.ae_name}} {
...@@ -48,7 +49,7 @@ ...@@ -48,7 +49,7 @@
} }
} }
unit 0 { unit 0 {
description "SRV_GLOBAL INFRASTRUCTURE BACKBONE #{{ trunk_direction_name_sorted[0] }}-{{ trunk_direction_name_sorted[1] }}-IPTRUNK ${{ trunk.id }}| {{ trunk_direction_name_sorted[0] }}-{{ trunk_direction_name_sorted[1] }} | {{ common.description }}"; description "SRV_GLOBAL INFRASTRUCTURE BACKBONE #{{ trunk_direction_name_sorted[0] }}-{{ trunk_direction_name_sorted[1] }}{{ trunk_suffix if trunk_suffix is defined }}-IPTRUNK ${{ trunk.id }}| {{ trunk_direction_name_sorted[0] }}-{{ trunk_direction_name_sorted[1] }} | {{ common.description }}";
family inet { family inet {
accounting { accounting {
source-class-usage { source-class-usage {
......
...@@ -25,6 +25,8 @@ ...@@ -25,6 +25,8 @@
{# 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 %}
{##} {##}
{% 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">
...@@ -96,7 +98,7 @@ ...@@ -96,7 +98,7 @@
<interface alu:operation="replace"> <interface alu:operation="replace">
<interface-name>{{ local.ae_name | lower }}.0</interface-name> <interface-name>{{ local.ae_name | lower }}.0</interface-name>
<admin-state>enable</admin-state> <admin-state>enable</admin-state>
<description>SRV_GLOBAL INFRASTRUCTURE BACKBONE #{{ trunk_direction_name_sorted[0] }}-{{ trunk_direction_name_sorted[1] }}-IPTRUNK ${{ trunk.id }} | {{ trunk_direction_name_sorted[0] }}-{{ trunk_direction_name_sorted[1] }} | {{ common.description }}</description> <description>SRV_GLOBAL INFRASTRUCTURE BACKBONE #{{ trunk_direction_name_sorted[0] }}-{{ trunk_direction_name_sorted[1] }}{{ trunk_suffix if trunk_suffix is defined }}-IPTRUNK ${{ trunk.id }} | {{ trunk_direction_name_sorted[0] }}-{{ trunk_direction_name_sorted[1] }} | {{ common.description }}</description>
<ip-mtu>{{ mtu_ip }}</ip-mtu> <ip-mtu>{{ mtu_ip }}</ip-mtu>
<port>{{ local.ae_name | lower }}</port> <port>{{ local.ae_name | lower }}</port>
<ipv4> <ipv4>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment