Page MenuHomeDevCentral

D2332.id5872.diff
No OneTemporary

D2332.id5872.diff

diff --git a/roles/core/network/files/FreeBSD/netif_ipv4.rc b/roles/core/network/files/FreeBSD/netif_ipv4.rc
--- a/roles/core/network/files/FreeBSD/netif_ipv4.rc
+++ b/roles/core/network/files/FreeBSD/netif_ipv4.rc
@@ -15,9 +15,9 @@
{% if dhcp_required %}
ifconfig_{{ interface }}="DHCP"
-{% else %}
+{%- else -%}
ifconfig_{{ interface }}="inet {{ ipv4_address }} netmask {{ ipv4_netmask }}"
-{% endif %}
-{% for ip in ipv4_aliases %}
+{% endif -%}
+{%- for ip in ipv4_aliases %}
ifconfig_{{ interface }}_alias{{ loop.index0 }}="inet {{ ip }} netmask 255.255.255.255"
-{% endfor %}
+{% endfor -%}
diff --git a/roles/core/network/files/FreeBSD/routing_ipv4.rc b/roles/core/network/files/FreeBSD/routing_ipv4.rc
--- a/roles/core/network/files/FreeBSD/routing_ipv4.rc
+++ b/roles/core/network/files/FreeBSD/routing_ipv4.rc
@@ -12,11 +12,10 @@
# Changes to this file may cause incorrect behavior
# and will be lost if the state is redeployed.
# </auto-generated>
-
{% if ipv4_ovh_failover %}
static_routes="net1 net2"
route_net1="-net {{ ipv4_gateway }}/32 -interface {{ ipv4_interface }}"
route_net2="default {{ ipv4_gateway }}"
-{% else %}
+{%- else -%}
defaultrouter="{{ ipv4_gateway }}"
-{% endif %}
+{% endif -%}

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 26, 17:23 (21 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2264354
Default Alt Text
D2332.id5872.diff (1 KB)

Event Timeline