Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
nextgen-router
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
MyCard
nextgen-router
Commits
f25499df
Commit
f25499df
authored
Dec 10, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
optional bonds and vlans
parent
740fabe3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
+17
-2
files/interfaces.j2
files/interfaces.j2
+14
-0
files/netplan.yaml.j2
files/netplan.yaml.j2
+2
-2
network.yaml
network.yaml
+1
-0
No files found.
files/interfaces.j2
View file @
f25499df
...
...
@@ -17,6 +17,9 @@ iface {{link.name}} inet6 manual
{% endfor %}
# end Links
{% if bonds is defined and bonds and bonds | length > 0 %}
# Bonds
{% for bond in bonds %}
...
...
@@ -38,6 +41,10 @@ bond-xmit-hash-policy layer2+3
{% endfor %}
# end bonds
{% endif %}
{% if vlans is defined and vlans and vlans | length > 0 %}
# Vlans
{% for vlan in vlans %}
...
...
@@ -48,6 +55,9 @@ iface {{vlan.link}}.{{vlan.tag}} inet6 manual
{% endfor %}
# end Vlans
{% endif %}
### end non-ubuntu
{% endif %}
...
...
@@ -80,6 +90,8 @@ pre-down {{ansible_user_dir}}/nextgen-router/scripts/{{br.name}}/pre-down.sh
{% endfor %}
# end Bridges
# PPPs
{% for ppp in ppps %}
...
...
@@ -92,3 +104,5 @@ post-down {{ansible_user_dir}}/nextgen-router/scripts/ppp{{ppp.id}}/post-down.sh
provider ppp{{ppp.id}}
{% endfor %}
# end PPPs
files/netplan.yaml.j2
View file @
f25499df
...
...
@@ -7,7 +7,7 @@ network:
dhcp4: false
dhcp6: false
{% endfor %}
{% if bonds | length > 0 %}
{% if bonds
is defined and bonds and bonds
| length > 0 %}
bonds:
{% for bond in bonds %}
'{{bond.name}}':
...
...
@@ -27,7 +27,7 @@ network:
dhcp6: false
{% endfor %}
{% endif %}
{% if vlans | length > 0 %}
{% if vlans
is defined and vlans and vlans
| length > 0 %}
vlans:
{% for vlan in vlans %}
'{{vlan.link}}.{{vlan.tag}}':
...
...
network.yaml
View file @
f25499df
...
...
@@ -101,6 +101,7 @@
with_items
:
-
pap
-
chap
when
:
pppoeUsers is defined and pppoeUsers and pppoeUsers | length >
0
-
name
:
pppoe post scripts
become
:
true
template
:
...
...
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