From 29a3e77425f30615994595fd61eafbcbd0b0631c Mon Sep 17 00:00:00 2001 From: Tony Finch Date: Tue, 15 Mar 2022 17:01:34 +0000 Subject: [PATCH] MacOS needs more IP addresses to run the system tests The launchd script only counted up to 8 whereas ifconfig.sh went all the way up to 10, and even a bit further than that. --- bin/tests/system/org.isc.bind.system | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/bin/tests/system/org.isc.bind.system b/bin/tests/system/org.isc.bind.system index 31c5615764..276437ad6e 100644 --- a/bin/tests/system/org.isc.bind.system +++ b/bin/tests/system/org.isc.bind.system @@ -11,8 +11,17 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -for ns in 1 2 3 4 5 6 7 8 +ifup() { + /sbin/ifconfig lo0 10.53.$1.$3 alias + /sbin/ifconfig lo0 inet6 fd92:7065:b8e:${2}ff::${3} alias +} + +for ns in 1 2 3 4 5 6 7 8 9 10 do - /sbin/ifconfig lo0 10.53.0.$ns alias - /sbin/ifconfig lo0 inet6 fd92:7065:b8e:ffff::$ns alias + ifup 0 ff $ns +done +for ns in 1 2 +do + ifup 1 99 $ns + ifup 2 00 $ns done