summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/chef/provider/ifconfig/redhat.rb4
-rw-r--r--lib/chef/resource/ifconfig.rb4
2 files changed, 7 insertions, 1 deletions
diff --git a/lib/chef/provider/ifconfig/redhat.rb b/lib/chef/provider/ifconfig/redhat.rb
index 2fbb9ff958..a7f73c43dc 100644
--- a/lib/chef/provider/ifconfig/redhat.rb
+++ b/lib/chef/provider/ifconfig/redhat.rb
@@ -78,10 +78,12 @@ VLAN=<%= new_resource.vlan %>
<% if new_resource.gateway -%>
GATEWAY=<%= new_resource.gateway %>
<% end -%>
+<% if new_resource.bridge -%>
+BRIDGE=<%= new_resource.bridge %>
+<% end -%>
}
@config_path = "/etc/sysconfig/network-scripts/ifcfg-#{new_resource.device}"
end
-
end
end
end
diff --git a/lib/chef/resource/ifconfig.rb b/lib/chef/resource/ifconfig.rb
index ed62ab5952..091b95a579 100644
--- a/lib/chef/resource/ifconfig.rb
+++ b/lib/chef/resource/ifconfig.rb
@@ -102,6 +102,10 @@ class Chef
property :gateway, String,
introduced: "14.4",
description: "The gateway to use for the interface."
+
+ property :bridge, String,
+ introduced: "16.7",
+ description: "The bridge interface this interface is a member of on Red Hat based systems."
end
end
end