Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3780896
D2332.id5871.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D2332.id5871.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 26, 17:32 (21 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2264354
Default Alt Text
D2332.id5871.diff (1 KB)
Attached To
Mode
D2332: Improve whitelines in Jinja2 templates
Attached
Detach File
Event Timeline
Log In to Comment