#!/bin/sh

set -e

# The listing holds one line per address family: ip_type holds 4 for an
# IPv4 address and 6 for an IPv6 address, and the eventual IPv6 of each
# network is displayed with the same ipaddr column.
. ./lib.sh
trap 'rm -f ocicli_machine_ip_list.fn.sh actual.txt' EXIT

ocicli_machine_ip_list 00AA11BB22CC >actual.txt

if ! diff -u expected-default.txt actual.txt ; then
	echo "machine-ip-list output doesn't match"
	exit 1
fi
exit 0
