Support ipv6 for standard switches - #257

This commit is contained in:
Matt Churchyard
2018-10-16 09:20:04 +01:00
parent 5df10f2408
commit 985d49fb3f
2 changed files with 4 additions and 2 deletions

View File

@@ -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

View File

@@ -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}"