Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
system.linux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Simple Deploy- and Management
system.linux
Commits
f0f504d0
Commit
f0f504d0
authored
4 years ago
by
Pietsch, Martin
Browse files
Options
Downloads
Patches
Plain Diff
bugfix: static network addresses are not handled within DHCP networks
parent
daa62f53
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/answerfile.j2
+2
-2
2 additions, 2 deletions
templates/answerfile.j2
with
2 additions
and
2 deletions
templates/answerfile.j2
+
2
−
2
View file @
f0f504d0
...
@@ -29,7 +29,7 @@ export DISK_DEVICES
...
@@ -29,7 +29,7 @@ export DISK_DEVICES
{% if ifdata.ipv4 is defined %}
{% if ifdata.ipv4 is defined %}
{% if hostobj.network.classes[ifdata.class].dhcp is defined %}
{% if hostobj.network.classes[ifdata.class].dhcp is defined %}
{% if hostobj.network.classes[ifdata.class].dhcp.ipv4 is defined %}
{% if hostobj.network.classes[ifdata.class].dhcp.ipv4 is defined %}
{% if (ifdata.ipv4 | ip_in_range('%s-%s' | format(hostobj.network.classes[ifdata.class].dhcp.ipv4.from, hostobj.network.classes[ifdata.class].dhcp.ipv4.to))) == true %}
{% if (ifdata.ipv4 | ip_in_range('%s-%s' | format(hostobj.network.classes[ifdata.class].dhcp.ipv4.from, hostobj.network.classes[ifdata.class].dhcp.ipv4.to))) == true
and ifdata.static == False
%}
{% set ifresdata.ipv4_address = "DHCP" %}
{% set ifresdata.ipv4_address = "DHCP" %}
{% else %}
{% else %}
{% set ifresdata.ipv4_address = ifdata.ipv4 %}
{% set ifresdata.ipv4_address = ifdata.ipv4 %}
...
@@ -50,7 +50,7 @@ export DISK_DEVICES
...
@@ -50,7 +50,7 @@ export DISK_DEVICES
{% if ifdata.ipv6 is defined %}
{% if ifdata.ipv6 is defined %}
{% if hostobj.network.classes[ifdata.class].dhcp is defined %}
{% if hostobj.network.classes[ifdata.class].dhcp is defined %}
{% if hostobj.network.classes[ifdata.class].dhcp.ipv6 is defined %}
{% if hostobj.network.classes[ifdata.class].dhcp.ipv6 is defined %}
{% if (ifdata.ipv6 | ip_in_range('%s-%s' | format(hostobj.network.classes[ifdata.class].dhcp.ipv6.from, hostobj.network.classes[ifdata.class].dhcp.ipv6.to))) == true %}
{% if (ifdata.ipv6 | ip_in_range('%s-%s' | format(hostobj.network.classes[ifdata.class].dhcp.ipv6.from, hostobj.network.classes[ifdata.class].dhcp.ipv6.to))) == true
and ifdata.static == False
%}
{% set ifresdata.ipv6_address = "DHCP" %}
{% set ifresdata.ipv6_address = "DHCP" %}
{% else %}
{% else %}
{% set ifresdata.ipv6_address = ifdata.ipv6 %}
{% set ifresdata.ipv6_address = ifdata.ipv6 %}
...
...
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