mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
fix dhcp lease entry wrong hostname (#4064)
When Guest VM add secondary nic, will get wrong hostname "infiniteh" from dhcp server infiniteh -->infinite cat /etc/dhcphosts.txt 02:00:0b:ef:00:04,set:192_168_4_18,192.168.4.18,gumd-tes3,infiniteh
This commit is contained in:
parent
8173741742
commit
60d7215a06
@ -188,7 +188,7 @@ class CsDhcp(CsDataBag):
|
||||
lease))
|
||||
else:
|
||||
tag = entry['ipv4_address'].replace(".", "_")
|
||||
self.cloud.add("%s,set:%s,%s,%s,%sh" % (entry['mac_address'],
|
||||
self.cloud.add("%s,set:%s,%s,%s,%s" % (entry['mac_address'],
|
||||
tag,
|
||||
entry['ipv4_address'],
|
||||
entry['host_name'],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user