3 .
${networkdir}/functions
5 .
${testdir}/constants.sh
10 SPLIT_PREFIX_TEST_VALID_NETWORKS
=(
13 2001:470:1f09
:1249::/64
18 SPLIT_PREFIX_TEST_VALID_ADRESSES
=(
28 for network
in ${SPLIT_PREFIX_TEST_VALID_NETWORKS[@]}; do
29 address
=$
(ip_split_prefix
${network})
30 if [[ $?
== 0 ]] && [[ "${address}" == "${SPLIT_PREFIX_TEST_VALID_ADRESSES[$i]}" ]]; then
31 echo "OK: Split prefix of network ${network} was successful [${address}]"
33 echo "ERROR: Split prefix of network ${network} was not successful [${address}]"