search for: inet6_lookup_cmd

Displaying 2 results from an estimated 2 matches for "inet6_lookup_cmd".

2011 Aug 03
1
[PATCH] display ipv6 address in networking details page, also fix ipv6 netmask configurations
..."), 0, 2, anchorLeft = 1) diff --git a/scripts/ovirtfunctions.py b/scripts/ovirtfunctions.py index 271b16b..8c7bea5 100644 --- a/scripts/ovirtfunctions.py +++ b/scripts/ovirtfunctions.py @@ -854,18 +854,22 @@ def get_gateway(ifname): return result def get_ipv6_address(interface): - inet6_lookup_cmd = 'ifconfig ' + interface + ' |grep inet6|grep -v Global|awk {\'print $3\'}' + inet6_lookup_cmd = 'ifconfig ' + interface + ' |grep inet6|grep Global|awk {\'print $3\'}' inet6_lookup = subprocess.Popen(inet6_lookup_cmd, shell=True, stdout=PIPE...
2011 Aug 03
0
[PATCH] display ipv6 address in networking details page, also fix ipv6 netmask configurations.
..."), 0, 2, anchorLeft = 1) diff --git a/scripts/ovirtfunctions.py b/scripts/ovirtfunctions.py index 271b16b..6ef27d3 100644 --- a/scripts/ovirtfunctions.py +++ b/scripts/ovirtfunctions.py @@ -854,18 +854,22 @@ def get_gateway(ifname): return result def get_ipv6_address(interface): - inet6_lookup_cmd = 'ifconfig ' + interface + ' |grep inet6|grep -v Global|awk {\'print $3\'}' + inet6_lookup_cmd = "ip addr show dev %s | awk '$1==\"inet6\" && $4==\"global\" { print $2 }'" % interface inet6_lookup = subprocess.Popen(inet...