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:
|
||||
# -
|
||||
# $options:
|
||||
# -
|
||||
#
|
||||
# === Sample usage
|
||||
#
|
||||
|
@ -500,7 +502,8 @@ class network::helper::vlan {
|
|||
# netmask => "255.255.0.0",
|
||||
# }
|
||||
#
|
||||
define network::vlan($device, $ipaddr = "none", $netmask = "none") {
|
||||
define network::vlan($device, $ipaddr = "none", $netmask = "none",
|
||||
$options = []) {
|
||||
case $operatingsystem {
|
||||
openbsd: {
|
||||
network::interface { "vlan${name}":
|
||||
|
@ -514,6 +517,7 @@ define network::vlan($device, $ipaddr = "none", $netmask = "none") {
|
|||
network::interface { "${device}.${name}":
|
||||
ipaddr => $ipaddr,
|
||||
netmask => $netmask,
|
||||
options => $options,
|
||||
require => Augeas["enable-vlan-support"],
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue