]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/networking/templates/default/shorewall-interfaces.erb
Specify raw device explicitly for vlan interfaces
[chef.git] / cookbooks / networking / templates / default / shorewall-interfaces.erb
index 89d8a2d54ae8a5887606a358c267787ab7b86dff..d8a5705d27b8ee4370ca7ca4c52a32f4a5c0dc72 100644 (file)
@@ -2,7 +2,7 @@
 
 # ZONE INTERFACE       BROADCAST       OPTIONS
 <% node[:networking][:interfaces].each do |name,interface| -%>
-<% if interface[:family] == "inet" -%>
+<% if interface[:interface] && interface[:family] == "inet" -%>
 <% if interface[:role] == "internal" -%>
 loc    <%= interface[:interface] %>            detect          nosmurfs,tcpflags
 <% elsif interface[:role] == "external" -%>