2011-07-29 09:25:39 +00:00
|
|
|
start:makenetworks_h
|
|
|
|
description:help
|
|
|
|
cmd:makenetworks -h
|
|
|
|
check:rc==0
|
|
|
|
check:output=~Usage
|
|
|
|
end
|
|
|
|
|
|
|
|
start:makenetworks_help
|
|
|
|
description:help
|
|
|
|
cmd:makedhcp --help
|
|
|
|
check:rc==0
|
|
|
|
check:output=~Usage
|
|
|
|
end
|
|
|
|
|
|
|
|
start:makenetworks_v
|
|
|
|
description:version
|
|
|
|
cmd:makenetworks -v
|
|
|
|
check:rc==0
|
|
|
|
check:output=~Version
|
|
|
|
end
|
|
|
|
|
|
|
|
start:makenetworks_d
|
2011-12-08 06:24:29 +00:00
|
|
|
os:AIX
|
2011-07-29 09:25:39 +00:00
|
|
|
cmd:makenetworks -d > /tmp/mynetworksstanzas
|
|
|
|
check:rc==0
|
2011-12-08 06:24:29 +00:00
|
|
|
cmd:echo "auto-testnetworks:\n objtype=network\n gateway=1.2.3.0\n mask=255.255.255.0\n net=1.2.3.1\n" >> /tmp/mynetworksstanzas
|
2011-07-29 09:25:39 +00:00
|
|
|
cmd:cat /tmp/mynetworksstanzas | chdef -z
|
|
|
|
check:rc==0
|
|
|
|
cmd:tabdump networks
|
|
|
|
check:output=~("auto-testnetworks","1.2.3.1","255.255.255.0",,"1.2.3.0",,,,,,,,,,,,)
|
|
|
|
cmd:chtab -d netname=auto-testnetworks networks
|
|
|
|
cmd:rm -f /tmp/mynetworksstanzas
|
|
|
|
end
|
|
|
|
|
2011-12-08 06:24:29 +00:00
|
|
|
start:makenetworks_d
|
|
|
|
os:Linux
|
|
|
|
cmd:makenetworks -d > /tmp/mynetworksstanzas
|
|
|
|
check:rc==0
|
|
|
|
cmd:echo -ne "auto-testnetworks:\n objtype=network\n gateway=1.2.3.0\n mask=255.255.255.0\n net=1.2.3.1\n" >> /tmp/mynetworksstanzas
|
|
|
|
cmd:cat /tmp/mynetworksstanzas | chdef -z
|
|
|
|
check:rc==0
|
|
|
|
cmd:tabdump networks
|
|
|
|
check:output=~("auto-testnetworks","1.2.3.1","255.255.255.0",,"1.2.3.0",,,,,,,,,,,,)
|
|
|
|
cmd:chtab -d netname=auto-testnetworks networks
|
|
|
|
cmd:rm -f /tmp/mynetworksstanzas
|
|
|
|
end
|
|
|
|
|
|
|
|
|
2011-07-29 09:25:39 +00:00
|
|
|
start:makenetworks_d_V
|
|
|
|
description:display,verbose
|
|
|
|
cmd:makenetworks
|
|
|
|
check:rc==0
|
|
|
|
cmd:makenetworks -d -V
|
|
|
|
check:rc==0
|
|
|
|
check:output=~objtype=network
|
|
|
|
check:output=~(net=)
|
|
|
|
check:output=~(mask=)
|
|
|
|
end
|
|
|
|
|
|
|
|
start:makenetworks
|
2011-12-08 06:24:29 +00:00
|
|
|
os:Linux
|
2011-07-29 09:25:39 +00:00
|
|
|
description:makenetworks
|
2011-12-08 06:24:29 +00:00
|
|
|
cmd:num=`lsdef -t network |cut -d" " -f1 |tee /tmp/testnetworks|wc -l`;for((i=1;i<=$num;i++)) do rmdef -t network `cat /tmp/testnetworks|sed -n "${i}p"`; done
|
2011-07-29 09:25:39 +00:00
|
|
|
check:rc==0
|
2011-10-09 01:40:40 +00:00
|
|
|
check:output=~(definitions have been removed)
|
2011-07-29 09:25:39 +00:00
|
|
|
cmd:tabdump networks
|
|
|
|
check:rc==0
|
|
|
|
cmd:makenetworks
|
|
|
|
check:rc==0
|
|
|
|
cmd:tabdump networks
|
|
|
|
check:rc==0
|
2011-12-08 06:24:29 +00:00
|
|
|
cmd:lsdef -t network |cut -d" " -f1 > /tmp/inetworktest1
|
|
|
|
cmd:diff /tmp/testnetworks /tmp/inetworktest1
|
2011-09-09 02:11:11 +00:00
|
|
|
check:rc==0
|
2011-12-08 06:24:29 +00:00
|
|
|
cmd:rm -f /tmp/testnetworks
|
|
|
|
cmd:rm -f /tmp/inetworktest1
|
2011-07-29 09:25:39 +00:00
|
|
|
end
|
2011-12-08 06:24:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
|