xcat-core/xCAT-test/autotest/testcase/makedhcp/cases0

41 lines
858 B
Plaintext
Raw Normal View History

start:makedhcp_n
os:Linux
cmd:mv -f /etc/dhcp/dhcpd.conf /etc/dhcp/dhcpd.conf.bak
cmd:makedhcp -n
check:rc==0
cmd:ls /etc/dhcp/dhcpd.conf
check:rc==0
cmd:ps -e | grep dhcpd
check:rc==0
check:output=~dhcpd
cmd:mv -f /etc/dhcp/dhcpd.conf.bak /etc/dhcp/dhcpd.conf
end
start:makedhcp_a
os:Linux
cmd:lsdef -l $$CN -z > /tmp/$$CN.stanza
cmd:chdef -t node -o $$CN mac=11:22:33:44:55:66
cmd:makedhcp -a
check:rc==0
cmd:cat /var/lib/dhcpd/dhcpd.leases
check:output=~$$CN
check:output=~11:22:33:44:55:66
cmd:chdef -t node -o $$CN mac=
cmd:cat /tmp/$$CN.stanza | chdef -z
end
start:makedhcp_a_d
os:Linux
cmd:makedhcp -a -d
check:rc==0
cmd:cat /var/lib/dhcpd/dhcpd.leases | grep $$CN
check:output!~$$CN
cmd:makedhcp -a
end
start:makedhcp_d
os:Linux
cmd:makedhcp -d $$CN
check:rc==0
cmd:cat /var/lib/dhcpd/dhcpd.leases | grep $$CN
check:output!~$$CN
cmd:makedhcp -a
end