Developing lightweight computation at the DSG edge

Commit c5eb2036 authored by Simó Albert i Beltran's avatar Simó Albert i Beltran
Browse files

Remove unneeded grep in qmp_get_ip6_fast function of to optimize.

parent 3a1f25dd
......@@ -286,7 +286,7 @@ qmp_get_ip6_fast() {
local addr_long=$( ipv6calc -q --in ipv6 $addr --showinfo -m 2>&1 | grep IPV6= | awk -F'=' '{print $2}' )
local addr_long=$( ipv6calc -q --in ipv6 $addr --showinfo -m 2>&1 | awk -F'=' '/IPV6=/{print $2}' )
local fake_prefix16="20a2" # original input is manipulated because ipv6calc complains about reserved ipv6 addresses
local addr_prefix16="$(echo $addr_long | awk -F':' '{print $1}')"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment