Skip to content

Commit

Permalink
Disable autoconf and dhcp in acm manifests for ztp with static ne…
Browse files Browse the repository at this point in the history
…tworking (#554)
  • Loading branch information
akrzos authored Sep 23, 2024
1 parent c020320 commit f85a67b
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ spec:
state: up
{{ "ipv6" if hostvars[groups['hv_vm'][vm]]['ip'] | ansible.utils.ipv6 else "ipv4" }}:
enabled: true
autoconf: false
dhcp: false
address:
- ip: {{ hostvars[groups['hv_vm'][vm]]['ip'] }}
prefix-length: {{ hostvars[groups['hv_vm'][vm]]['network_prefix'] }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ spec:
{% if hostvars[groups['hv_vm'][vm]]['hv_ip'] | ansible.utils.ipv4 %}
ipv4:
enabled: true
autoconf: false
dhcp: false
address:
- ip: "{{ hostvars[groups['hv_vm'][vm]]['ip'] }}"
prefix-length: {{ hostvars[groups['hv_vm'][vm]]['network_prefix'] }}
Expand All @@ -119,6 +121,8 @@ spec:
enabled: false
ipv6:
enabled: true
autoconf: false
dhcp: false
address:
- ip: "{{ hostvars[groups['hv_vm'][vm]]['ip'] }}"
prefix-length: {{ hostvars[groups['hv_vm'][vm]]['network_prefix'] }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ spec:
state: up
{{ "ipv6" if hostvars[inventory_hostname]['ip'] | ansible.utils.ipv6 else "ipv4" }}:
enabled: true
autoconf: false
dhcp: false
address:
- ip: {{ hostvars[inventory_hostname]['ip'] }}
prefix-length: {{ hostvars[inventory_hostname]['network_prefix'] }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ spec:
{% if hostvars[inventory_hostname]['ip'] | ansible.utils.ipv4 %}
ipv4:
enabled: true
autoconf: false
dhcp: false
address:
- ip: "{{ hostvars[inventory_hostname]['ip'] }}"
prefix-length: {{ hostvars[inventory_hostname]['network_prefix'] }}
Expand All @@ -154,6 +156,8 @@ spec:
enabled: false
ipv6:
enabled: true
autoconf: false
dhcp: false
address:
- ip: "{{ hostvars[inventory_hostname]['ip'] }}"
prefix-length: {{ hostvars[inventory_hostname]['network_prefix'] }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ spec:
# state: up
# {{ "ipv6" if hostvars[groups['hv_vm'][vm]]['ip'] | ansible.utils.ipv6 else "ipv4" }}:
# enabled: true
# autoconf: false
# dhcp: false
# address:
# - ip: {{ hostvars[groups['hv_vm'][vm]]['ip'] }}
# prefix-length: {{ hostvars[groups['hv_vm'][vm]]['network_prefix'] }}
Expand Down Expand Up @@ -244,6 +246,8 @@ spec:
state: up
{{ "ipv6" if hostvars[groups['hv_vm'][vm]]['ip'] | ansible.utils.ipv6 else "ipv4" }}:
enabled: true
autoconf: false
dhcp: false
address:
- ip: {{ hostvars[groups['hv_vm'][vm]]['ip'] }}
prefix-length: {{ hostvars[groups['hv_vm'][vm]]['network_prefix'] }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ spec:
{% if hostvars[groups['hv_vm'][vm]]['hv_ip'] | ansible.utils.ipv4 %}
ipv4:
enabled: true
autoconf: false
dhcp: false
address:
- ip: "{{ hostvars[groups['hv_vm'][vm]]['ip'] }}"
prefix-length: {{ hostvars[groups['hv_vm'][vm]]['network_prefix'] }}
Expand All @@ -124,6 +126,8 @@ spec:
enabled: false
ipv6:
enabled: true
autoconf: false
dhcp: false
address:
- ip: "{{ hostvars[groups['hv_vm'][vm]]['ip'] }}"
prefix-length: {{ hostvars[groups['hv_vm'][vm]]['network_prefix'] }}
Expand Down

0 comments on commit f85a67b

Please sign in to comment.