Displaying 1 result from an estimated 1 matches for "add_slave".
2010 Jul 21
1
[PATCH] Add support for tagged VLAN
...ast,
+ nic.gateway)
+ add_vlan(result, eth_vlan_name)
+ end
+ end # end of : usage.networks.map do |net|
+ end # end of : nic.network.usages.map do |usage|
end
end
end
@@ -121,4 +136,9 @@ class ManagedNodeConfiguration
def self.add_slave(result, mac, iface_name, master)
result.puts "ifcfg=#{mac}|#{iface_name}|MASTER=#{master}|SLAVE=yes|ONBOOT=yes"
end
+
+ def self.add_vlan(result, iface_name)
+ result.puts "ifcfg=none|#{iface_name}|BRIDGE=br#{iface_name}|ONBOOT=yes|VLAN=yes"
+ end
+
end
--
1.7.1