CP-9795: Use ip tool instead of ifconfig

The output of ifconfig varies by version so rather parse the output
of the ip tool.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>