Commit ca8d8232 by Heechul Kim

fixed dhcp update bug when provisioning

parent 96f48a34
Showing with 4 additions and 1 deletions
......@@ -126,7 +126,10 @@ def provision_machine(name):
s_msg = 'ip should exist.'
return (False, s_msg)
# Add dhcp entry of host.
# Delete and Add dhcp entry of host.
s_cmd = "{} -r {}".format(DHCPEDIT, name)
log.debug(s_cmd)
cmd(s_cmd, b_sudo=True)
s_cmd = "{} {} {} {}".format(DHCPEDIT, name, d['mac'], d['ip'])
log.debug(s_cmd)
cmd(s_cmd, b_sudo=True)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment