mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-31 10:06:39 +00:00
This case is to verify bug 2521 to test when there is mgtifname is defined as remote networks, makedhcp could work correctly and create entrys in dhcp lease file
This commit is contained in:
parent
fd3e9f3d18
commit
3b114aa353
@ -176,3 +176,31 @@ check:output!~$$CN
|
||||
cmd:makedhcp -a
|
||||
end
|
||||
|
||||
start:makedhcp_remote_network_bug2521
|
||||
descriptiion:This case is to verify bug 2521 to test when there is mgtifname='!remote!<nicname>', makedhcp could work correctly and create entrys in dhcp lease file.
|
||||
cmd:mkdef -t network -o testnetwork net=100.100.100.0 mask=255.255.255.0 mgtifname='!remote!eth0' gateway=100.100.100.1
|
||||
check:rc==0
|
||||
cmd:lsdef -t network
|
||||
check:rc==0
|
||||
check:output=~testnetwork
|
||||
check:rc==0
|
||||
cmd:mkdef -t node -o testnode ip=100.100.100.2 groups=all mac=42:3d:0a:05:27:0b
|
||||
check:rc==0
|
||||
cmd: cp -f /etc/hosts /etc/hosts.bak
|
||||
cmd:echo "100.100.100.2 testnode" >> /etc/hosts
|
||||
check:rc==0
|
||||
cmd:makedhcp testnode
|
||||
check:rc==0
|
||||
cmd:makdhcp -q testnode
|
||||
check:rc==0
|
||||
check:output=~testnode: ip-address = 100.100.100.2
|
||||
cmd:makdhcp -d testnode
|
||||
check:rc==0
|
||||
cmd:makedhcp -n
|
||||
check:rc==0
|
||||
cmd:noderm testnode
|
||||
check:rc==0
|
||||
cmd:chtab -d netname=testnetwork networks
|
||||
check:rc==0
|
||||
cmd:cp -f /etc/hosts.bak /etc/hosts
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user