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
c5f45a74
Commit
c5f45a74
authored
Sep 27, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support custom dhclient
parent
90a24748
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
network.yaml
network.yaml
+8
-0
variables.yaml
variables.yaml
+1
-0
No files found.
network.yaml
View file @
c5f45a74
...
@@ -125,6 +125,14 @@
...
@@ -125,6 +125,14 @@
bootp-broadcast-always;
bootp-broadcast-always;
timeout 300;
timeout 300;
{% for br in bridges %}
{% if br.dhclient is defined and br.dhclient %}
interface "{{br.name}}" {
{{br.dhclient}}
}
{% endif %}
{% endfor %}
dest
:
/etc/dhcp/dhclient.conf
dest
:
/etc/dhcp/dhclient.conf
-
name
:
remove dhclient resolved hook
-
name
:
remove dhclient resolved hook
become
:
true
become
:
true
...
...
variables.yaml
View file @
c5f45a74
...
@@ -52,6 +52,7 @@ vars:
...
@@ -52,6 +52,7 @@ vars:
address
:
null
address
:
null
moreAddresses
:
null
moreAddresses
:
null
masq
:
true
masq
:
true
dhclient
:
null
# 自定义 dhclient 配置
gateways
:
# 网关定义,DHCP关闭自动获取网关,需要手写地址。
gateways
:
# 网关定义,DHCP关闭自动获取网关,需要手写地址。
-
id
:
0
# 网关ID,关乎mark和table。该网关的table计算方法为 1100+id
-
id
:
0
# 网关ID,关乎mark和table。该网关的table计算方法为 1100+id
address
:
10.198.21.1
# 网关地址,填写 _use_first 使用可用地址第一个,填写 _use_last 使用可用地址最后一个
address
:
10.198.21.1
# 网关地址,填写 _use_first 使用可用地址第一个,填写 _use_last 使用可用地址最后一个
...
...
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