Skip to content
Snippets Groups Projects

iptrunk_migration Nokia and Juniper templates update

Merged Aleksandr Kurbatov requested to merge fix/nokia_trunk_template into develop
3 files
+ 50
11
Compare changes
  • Side-by-side
  • Inline
Files
3
{##}
{# I need to sort the source and the destination alfabetically #}
{% set trunk_direction_name = [ wfo_trunk.iptrunk.iptrunk_sides[0].iptrunk_side_node.router_fqdn.split(".")[1], wfo_trunk.iptrunk.iptrunk_sides[1].iptrunk_side_node.router_fqdn.split(".")[1] ] %}
{% set trunk_direction_name_sorted = trunk_direction_name|sort %}
{% set trunk_direction_name = [ new_node.router.router_fqdn.split(".")[1] | upper, remaining_side.name.split(".")[1] | upper ] %}
{% set trunk_direction_name_sorted = trunk_direction_name|sort %}
{##}
{% if new_side is defined %}
interfaces {
@@ -9,8 +9,18 @@
description "LAG INFRASTRUCTURE BACKBONE ${{ new_side.port_sid }} | {{ trunk_direction_name_sorted[0] }}-{{ trunk_direction_name_sorted[1] }}";
mtu 9192;
aggregated-ether-options {
minimum-links {{new_side.minimum_links}};
{#link-speed {{common.link_speed}};#}
{% if new_side.trunk_type != "Dark_fiber" %}
bfd-liveness-detection {
minimum-interval {{ bfd_min_interval }};
neighbor {{ remaining_side['loopback'] }};
local-address {{ new_node.router.router_lo_ipv4_address }};
}
{% endif %}
{% if (new_side.minimum_links | int) > 0 %}
minimum-links {{ new_side.minimum_links }};
{% endif %}
minimum-links {{ new_side.minimum_links }};
{#link-speed {{new_side.link_speed}};#}
lacp {
active;
periodic fast;
Loading