Added support for bridge interfaces on Centos and Fedora

This commit is contained in:
Ossi Salmi 2011-07-20 00:43:05 +03:00 committed by Timo Mkinen
parent c64947271f
commit 6013834928
2 changed files with 17 additions and 2 deletions

View file

@ -1,5 +1,5 @@
DEVICE=<%= name %>
<% if name !~ /bond[0-9]/ && has_variable?("macaddress_" + name) -%>
<% if name !~ /(bond|br)[0-9]/ && has_variable?("macaddress_" + name) -%>
HWADDR=<%= scope.lookupvar("macaddress_" + name) %>
<% end -%>
ONBOOT=yes
@ -23,6 +23,11 @@ IPV6INIT=yes
IPV6ADDR=<%= ip6addr %>/<%= ip6netmask %>
<% end -%>
<% end -%>
<% if name =~ /br[0-9]/ -%>
TYPE=Bridge
DELAY=0
LINKDELAY=10
<% end -%>
<% options.each do |val| -%>
<%= val %>
<% end -%>