Project

General

Profile

Bug #343

DHCP Server static map edits wrong entry

Added by Chris Buechler over 10 years ago. Updated about 10 years ago.

Status:
Resolved
Priority:
High
Assignee:
-
Category:
DHCP Server
Target version:
Start date:
02/06/2010
Due date:
% Done:

100%

Estimated time:
Affected Version:
2.0
Affected Architecture:

Description

Clicking edit for static map entries edits the wrong entry.

Config example:

        <dhcpd>
                <lan>
                        <enable/>
                        <range>
                                <from>192.168.1.100</from>
                                <to>192.168.1.199</to>
                        </range>
                        <staticmap>
                                <mac>00:26:18:0e:71:a5</mac>
                                <ipaddr/>
                                <hostname>test1</hostname>
                                <descr/>
                        </staticmap>
                        <staticmap>
                                <mac>00:26:18:0e:71:b3</mac>
                                <ipaddr/>
                                <hostname>test2</hostname>
                                <descr/>
                        </staticmap>
                        <defaultleasetime/>
                        <maxleasetime/>
                        <netmask></netmask>
                        <failover_peerip/>
                        <gateway/>
                        <domain/>
                        <domainsearchlist/>
                        <ddnsdomain/>
                        <tftp/>
                        <ldap/>
                        <next-server/>
                        <filename/>
                        <rootpath/>
                </lan>
        </dhcpd>

Clicking e next to test1 actually edits test2 and vice versa.

Associated revisions

Revision 556917a6 (diff)
Added by Pierre POMES over 10 years ago

Sort dhcp mapping array once, only before writing config. Ticket #343

Revision bb9689bd (diff)
Added by Erik Fonnesbeck about 10 years ago

Ticket #343. Move sorting of DHCP static mappings to after the item is set. Previous behavior caused the wrong entry to get overwritten.

History

#1 Updated by Chris Buechler over 10 years ago

possibly related to #338, though this is a completely diff issue.

#2 Updated by Pierre POMES over 10 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

#3 Updated by Pierre POMES over 10 years ago

  • Status changed from Resolved to Feedback

#4 Updated by Chris Buechler over 10 years ago

  • Status changed from Feedback to Resolved

fixed

#5 Updated by Erik Fonnesbeck about 10 years ago

Fixed for real now.

Also available in: Atom PDF