Added options parameter for network::vlan
Allows adding VLAN interfaces to bridges.
This commit is contained in:
parent
be8a487695
commit
6ed4c9aafd
1 changed files with 5 additions and 1 deletions
|
@ -491,6 +491,8 @@ class network::helper::vlan {
|
||||||
# -
|
# -
|
||||||
# $netmask:
|
# $netmask:
|
||||||
# -
|
# -
|
||||||
|
# $options:
|
||||||
|
# -
|
||||||
#
|
#
|
||||||
# === Sample usage
|
# === Sample usage
|
||||||
#
|
#
|
||||||
|
@ -500,7 +502,8 @@ class network::helper::vlan {
|
||||||
# netmask => "255.255.0.0",
|
# netmask => "255.255.0.0",
|
||||||
# }
|
# }
|
||||||
#
|
#
|
||||||
define network::vlan($device, $ipaddr = "none", $netmask = "none") {
|
define network::vlan($device, $ipaddr = "none", $netmask = "none",
|
||||||
|
$options = []) {
|
||||||
case $operatingsystem {
|
case $operatingsystem {
|
||||||
openbsd: {
|
openbsd: {
|
||||||
network::interface { "vlan${name}":
|
network::interface { "vlan${name}":
|
||||||
|
@ -514,6 +517,7 @@ define network::vlan($device, $ipaddr = "none", $netmask = "none") {
|
||||||
network::interface { "${device}.${name}":
|
network::interface { "${device}.${name}":
|
||||||
ipaddr => $ipaddr,
|
ipaddr => $ipaddr,
|
||||||
netmask => $netmask,
|
netmask => $netmask,
|
||||||
|
options => $options,
|
||||||
require => Augeas["enable-vlan-support"],
|
require => Augeas["enable-vlan-support"],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue