Project

General

Profile

Actions

Bug #2661

closed

DHCP: ms_native fails to delete reservation

Added by Kal Aeolian almost 11 years ago. Updated almost 11 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
DHCP
Target version:
-
Difficulty:
trivial
Triaged:
Fixed in Releases:
Found in Releases:

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.

Actions #1

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(/:/,"")
Actions #2

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 #3

Updated by Dominic Cleal almost 11 years ago

  • Status changed from New to Rejected

No problem :)

Actions

Also available in: Atom PDF