mirror of
https://github.com/churchers/vm-bhyve.git
synced 2025-12-11 17:30:23 +01:00
Support ipv6 for standard switches - #257
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
VERSION=1.3-devel
|
||||
VERSION_INT=103029
|
||||
VERSION_INT=103030
|
||||
VERSION_BSD=$(uname -K)
|
||||
PATH=${PATH}:/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin
|
||||
|
||||
|
||||
@@ -57,7 +57,9 @@ switch::standard::init(){
|
||||
|
||||
# try to set ip address
|
||||
config::core::get "_addr" "addr_${_name}"
|
||||
[ -n "${_addr}" ] && ifconfig "${_id}" inet ${_addr}
|
||||
[ -n "${_addr}" ] && ifconfig "${_id}" inet ${_addr} 2>/dev/null
|
||||
config::core::get "_addr" "addr6_${_name}"
|
||||
[ -n "${_addr}" ] && ifconfig "${_id}" inet6 ${_addr} 2>/dev/null
|
||||
|
||||
# custom mtu?
|
||||
config::core::get "_mtu" "mtu_${_name}"
|
||||
|
||||
Reference in New Issue
Block a user