Added IPv6 support for network module.
This commit is contained in:
parent
2592ca9fad
commit
61c3a1d3a3
3 changed files with 16 additions and 1 deletions
|
@ -34,6 +34,11 @@ class network::helper::restart {
|
|||
# if interface just needs to be brought up. Defaults to none.
|
||||
# $netmask:
|
||||
# Netmask for interface. Required only when $ipaddr is used.
|
||||
# $ip6addr:
|
||||
# IPv6 address for interface. Use auto for autoconfigured address.
|
||||
# Defaults to none.
|
||||
# $ip6netmask:
|
||||
# IPv6 netmask length. Defaults to 64.
|
||||
# $options:
|
||||
# Custom options for interface (used only on OpenBSD).
|
||||
#
|
||||
|
@ -44,7 +49,7 @@ class network::helper::restart {
|
|||
# netmask => "255.255.0.0",
|
||||
# }
|
||||
#
|
||||
define network::interface($options = [], $ipaddr = "none", $netmask = "none") {
|
||||
define network::interface($options = [], $ipaddr = "none", $netmask = "none", ip6addr = "none", ip6netmask = "64") {
|
||||
|
||||
include network::helper::restart
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue