1
0
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:
Javi Fontan 2013-08-21 15:29:04 +02:00
parent 68e413c27c
commit a1adef11a5
2 changed files with 2 additions and 0 deletions

View File

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

View File

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