mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-30 17:46:38 +00:00
Merge pull request #3715 from tingtli/makedhcp
fix some typo in case makedhcp_remote_network
This commit is contained in:
commit
929778ca61
@ -189,13 +189,13 @@ check:rc==0
|
||||
cmd: cp -f /etc/hosts /etc/hosts.bak
|
||||
cmd:echo "100.100.100.2 testnode" >> /etc/hosts
|
||||
check:rc==0
|
||||
cmd:makdhcp -d testnode
|
||||
cmd:makedhcp -d testnode
|
||||
cmd:makedhcp testnode
|
||||
check:rc==0
|
||||
cmd:makdhcp -q testnode
|
||||
cmd:makedhcp -q testnode
|
||||
check:rc==0
|
||||
check:output=~testnode: ip-address = 100.100.100.2
|
||||
cmd:makdhcp -d testnode
|
||||
cmd:makedhcp -d testnode
|
||||
check:rc==0
|
||||
cmd:makedhcp -n
|
||||
check:rc==0
|
||||
|
@ -33,11 +33,13 @@ description:delete known node entry from $ROOTHOME/.ssh
|
||||
cmd:makeknownhosts $$CN
|
||||
cmd:cat ~/.ssh/known_hosts|grep $$CN
|
||||
check:output=~$$CN
|
||||
cmd:cat ~/.ssh/known_hosts|grep __GETNODEATTR($$CN,ip)__
|
||||
check:rc==0
|
||||
cmd:makeknownhosts $$CN -d
|
||||
check:rc==0
|
||||
cmd:cat ~/.ssh/known_hosts|grep $$CN
|
||||
cmd:cat ~/.ssh/known_hosts|grep __GETNODEATTR($$CN,ip)__
|
||||
check:rc!=0
|
||||
check:output!~$$CN
|
||||
check:output!~__GETNODEATTR($$CN,ip)__
|
||||
end
|
||||
|
||||
start:makeknownhosts_node_v
|
||||
|
Loading…
x
Reference in New Issue
Block a user