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
Commits
fefeccbb
Commit
fefeccbb
authored
10 months ago
by
Aleksandr Kurbatov
Browse files
Options
Downloads
Patches
Plain Diff
update to bgp_base
parent
dcb53162
No related branches found
No related tags found
1 merge request
!167
PE base config - integrated into `base_config` role.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
geant/gap_ansible/roles/promote_p_to_pe/templates/routers/nokia/router/bgp_base.j2
+55
-0
55 additions, 0 deletions
...romote_p_to_pe/templates/routers/nokia/router/bgp_base.j2
with
55 additions
and
0 deletions
geant/gap_ansible/roles/promote_p_to_pe/templates/routers/nokia/router/bgp_base.j2
+
55
−
0
View file @
fefeccbb
{% if bgp_context == 'vprn' %}
{% if bgp_base_obj.families is defined %}
{% for fam in bgp_base_obj.families %}
<{{ fam }}>true</{{ fam }}>
{% endfor %}
{% endif %}
{% endif %}
{% if bgp_base_obj.best_path_selection is defined %}
<best-path-selection>
{% for bps in bgp_base_obj.best_path_selection %}
<{{ bps }}>true</{{ bps }}>
{% endfor %}
</best-path-selection>
{% endif %}
{% if bgp_base_obj.error_handling is defined %}
<error-handling>
<{{ bgp_base_obj.error_handling }}>true</{{ pe_bgp_base.error_handling }}>
</error-handling>
{% endif %}
{% if bgp_base_obj.next_hop_resolution.shortcut_tunnel is defined %}
<next-hop-resolution>
<shortcut-tunnel>
{% for nhr in bgp_base_obj.next_hop_resolution.shortcut_tunnel %}
<family>
<family-type>{{ nhr.type }}</family-type>
<resolution-filter>
<{{ nhr.resolution_filter }}>true</{{ nhr.resolution_filter }}>
</resolution-filter>
</family>
{% endfor %}
</shortcut-tunnel>
</next-hop-resolution>
{% endif %}
{% if bgp_base_obj.multipath is defined %}
<multipath alu:operation="replace">
{% if bgp_base_obj.multipath.ibgp is defined %}
<ibgp>{{ bgp_base_obj.multipath.ibgp }}</ibgp>
{% endif %}
{% if bgp_base_obj.multipath.ebgp is defined %}
<ebgp>{{ bgp_base_obj.multipath.ebgp }}</ebgp>
{% endif %}
{% if bgp_base_obj.multipath.ipv4 is defined %}
<family>
<family-type>ipv4</family-type>
<max-paths>{{ bgp_base_obj.multipath.ipv4 }}</max-paths>
</family>
{% endif %}
{% if bgp_base_obj.multipath.ipv6 is defined %}
<family>
<family-type>ipv6</family-type>
<max-paths>{{ bgp_base_obj.multipath.ipv6 }}</max-paths>
</family>
{% endif %}
</multipath>
{% endif %}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment