Added support for bridge interfaces on Centos and Fedora
This commit is contained in:
parent
c64947271f
commit
6013834928
2 changed files with 17 additions and 2 deletions
|
@ -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 -%>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue