Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GAP Ansible Collection
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GÉANT Orchestration and Automation Team
GAP
GAP Ansible Collection
Merge requests
!147
iptrunk_migration Nokia and Juniper templates update
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
iptrunk_migration Nokia and Juniper templates update
fix/nokia_trunk_template
into
develop
Overview
0
Commits
4
Pipelines
2
Changes
3
Merged
Aleksandr Kurbatov
requested to merge
fix/nokia_trunk_template
into
develop
10 months ago
Overview
0
Commits
4
Pipelines
2
Changes
3
Expand
Interface descriptions
BFD
Min links
0
0
Merge request reports
Compare
develop
version 1
1af56b53
10 months ago
develop (base)
and
latest version
latest version
e3166847
4 commits,
10 months ago
version 1
1af56b53
2 commits,
10 months ago
3 files
+
50
−
11
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
geant/gap_ansible/roles/iptrunk_migration/templates/juniper/trunk_interface.j2
+
14
−
4
Options
{##}
{# 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