EOX GitLab Instance
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
internet router role
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ansible-public
internet router role
Commits
ff83b66d
Commit
ff83b66d
authored
2 months ago
by
Karl Grube
Browse files
Options
Downloads
Patches
Plain Diff
avernus_ranges now being added...
parent
3aba3aa0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/frr_conf.j2
+4
-7
4 additions, 7 deletions
templates/frr_conf.j2
with
4 additions
and
7 deletions
templates/frr_conf.j2
+
4
−
7
View file @
ff83b66d
...
...
@@ -82,10 +82,7 @@ router bgp {{bgp_asn}}
{% endfor %}
!
address-family ipv6 unicast
{% for range in dc_ranges %}
aggregate-address {{range}} route-map reject_local_origin
{% endfor %}
{% for range in anycast_ranges %}
{% for range in (dc_ranges + anycast_ranges) %}
aggregate-address {{range}} route-map reject_local_origin
{% endfor %}
network ::/0
...
...
@@ -157,14 +154,14 @@ ipv6 prefix-list internet seq 370 deny 2001:0:cb00:7100::/56 le 128
ipv6 prefix-list internet seq 380 deny 2001:0:e000::/36 le 128
ipv6 prefix-list internet seq 390 deny 2001:0:f000::/36 le 128
ipv6 prefix-list internet seq 400 deny 2001:0:ffff:ffff::/64 le 128
{% for prefix in dc_ranges%}
{% for prefix in dc_ranges
%}
ipv6 prefix-list internet seq {{(loop.index|int)*10+400}} deny {{prefix|regex_replace('ge.*','')|regex_replace('le.*','')}} le 128
{% if loop.last %}
ipv6 prefix-list internet seq {{(loop.index|int)*10+410}} permit any
{% endif %}
{% endfor %}
!
{% for range in dc_ranges + anycast_ranges %}
{% for range in dc_ranges + anycast_ranges
+ avernus_ranges
%}
ipv6 prefix-list my-networks seq {{(loop.index|int)*10}} permit {{range}}
{% if loop.last %}
ipv6 prefix-list my-networks seq {{(loop.index|int)*10+10}} deny any
...
...
@@ -172,7 +169,7 @@ ipv6 prefix-list my-networks seq {{(loop.index|int)*10+10}} deny any
{% endfor %}
!
ipv6 prefix-list nat64 seq 10 permit 64:ff9b::/96
{% for range in dc_ranges + anycast_ranges %}
{% for range in dc_ranges + anycast_ranges
+ avernus_ranges
%}
ipv6 prefix-list internal seq {{(loop.index|int)*20-10}} permit {{range}}
ipv6 prefix-list internal seq {{(loop.index|int)*20}} permit {{range}} ge {{((range|regex_replace('.*/',''))|int)+1}}
{% if loop.last %}
...
...
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