Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
services
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
services
Commits
3cc161a8
Commit
3cc161a8
authored
Dec 14, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new
parent
8e03f7b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
3 deletions
+21
-3
outer-bird/docker-compose.yml.j2
outer-bird/docker-compose.yml.j2
+8
-0
outer-bird/templates/bird.conf.j2
outer-bird/templates/bird.conf.j2
+13
-3
No files found.
outer-bird/docker-compose.yml.j2
0 → 100644
View file @
3cc161a8
version: '2.4'
services:
bird:
cap_add: [NET_ADMIN, NET_BROADCAST, NET_RAW]
image: git-registry.mycard.moe/nanahira/docker-bird
network_mode: host
restart: always
volumes: ['./templates/bird.conf:/etc/bird/bird.conf:ro']
outer-bird/templates/bird.conf.j2
View file @
3cc161a8
log s
yslog
all;
log s
tderr
all;
router id {{ansible_ssh_host}};
protocol device {}
{% for interface in
interfa
ces %}
{% for interface in
sour
ces %}
protocol direct {
ipv4;
interface "{{interface}}";
}
{% endfor %}
{% for subnet in staticRanges %}
protocol static {
ipv4;
route {{subnet}} via "lo";
}
{% endfor %}
protocol ospf v2 {
ipv4 {
import all;
...
...
@@ -20,13 +27,16 @@ protocol ospf v2 {
area 0 {
networks {
{% for subnet in networks %}
{{subnet}};
{% endfor %}
};
{% for interface in
interface
s %}
{% for interface in
target
s %}
interface "{{interface}}" {
type broadcast;
cost 1;
hello 5;
authentication cryptographic;
password "{{ospfToken}}";
};
{% endfor %}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment