Actions
Bug #2661
closedDHCP: ms_native fails to delete reservation
Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
DHCP
Target version:
-
Description
A VM is created and a lease is assigned for some IP (1.2.3.4 with mac 00:01:02:03:04:05. When deleting the host, the proxy uses the following command to delete the host:
netsh dhcp server 1.1.1.1 scope 1.2.3.0 delete reservedip 1.2.3.4 00:01:02:03:04:05
This is incorrect and causes an invalid parameter error in netsh. The correct command removes the colons from the mac address -
netsh dhcp server 1.1.1.1 scope 1.2.3.0 delete reservedip 1.2.3.4 000102030405
This is correct and works as expected.
Updated by Kal Aeolian almost 11 years ago
What's interesting is I see this in code in the delRecord method but I still get the error above -
mac = record.mac.gsub(/:/,"")
Updated by Kal Aeolian almost 11 years ago
Please close this issue, I am a bit blind today and completely missed the error after too long of looking at a problem.... :(
Actions