mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-26 10:03:37 +03:00
bug #2269: get IPV6 and IP6 in context packages
The core in 4.2 sets the IPv6 in context as IP6 instead of IPV6 as done in OpenNebula 4.0. This change makes the context packages compatible with both variables.
This commit is contained in:
parent
68e413c27c
commit
a1adef11a5
@ -151,6 +151,7 @@ EOT
|
||||
GATEWAY=$(get_gateway)
|
||||
|
||||
IPV6=$(get_iface_var "IPV6")
|
||||
[[ -z $IPV6 ]] && IPV6=$(get_iface_var "IP6")
|
||||
GATEWAY6=$(get_iface_var "GATEWAY6")
|
||||
CONTEXT_FORCE_IPV4=$(get_iface_var "CONTEXT_FORCE_IPV4")
|
||||
|
||||
|
@ -142,6 +142,7 @@ gen_network_configuration()
|
||||
GATEWAY=$(get_gateway)
|
||||
|
||||
IPV6=$(get_iface_var "IPV6")
|
||||
[[ -z $IPV6 ]] && IPV6=$(get_iface_var "IP6")
|
||||
GATEWAY6=$(get_iface_var "GATEWAY6")
|
||||
CONTEXT_FORCE_IPV4=$(get_iface_var "CONTEXT_FORCE_IPV4")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user