Feature #1949

Fill DHCP reservation form from lease cache

Added by Alessio Fattorini about 8 years ago. Updated over 7 years ago.

Status:CLOSEDStart date:11/19/2013
Priority:NormalDue date:11/20/2013
Assignee:-% Done:

100%

Category:nethserver-dnsmasq
Target version:v6.5-beta3
Resolution: NEEDINFO:No

Description

If i need to make a reservation for a mac address i need to know it, NethServer should show all dhcp temporary assignment (and maybe netbios name) for make a quick reservation only clicking on item. A clear example could be NethSecurity dhcp management


Related issues

Related to NethServer 6 - Feature #1048: Display current lease status CLOSED 04/17/2012 11/20/2013

Associated revisions

Revision 6877aa25
Added by Davide Principi over 7 years ago

LazyLoaderAdapter: lazyInitialization() is now "protected". Refs #1949

Revision 7ffbb7c1
Added by Davide Principi over 7 years ago

New Dhcp\Reserve UI module. Refs #1949 #1048

The Reserve action fills a DHCP reservation form with values read from
DHCP lease cache. Moreover the lease status (expired/valid) is
displayed in the table view as a small icon.

History

#1 Updated by Alessio Fattorini about 8 years ago

  • Subject changed from List of dhcp assignment for quick reservation to List of dhcp assignments for quick reservation

#2 Updated by Giacomo Sanchietti about 8 years ago

  • Status changed from NEW to 10

Duplicate of #1048

#3 Updated by Alessio Fattorini about 8 years ago

Absolutely not obvious that feature #1048 speaks about that :-\

#4 Updated by Davide Principi about 8 years ago

  • Target version set to v6.4-beta2

#5 Updated by Davide Principi about 8 years ago

  • Status changed from 10 to NEW

Alessio Fattorini wrote:

Absolutely not obvious that feature #1048 speaks about that :-\

You're right: #1048 is about displaying the lease status on the tabular view.

I think this feature is about implementing an action.

The action can fill the actual creation form with values from dnsmasq cache, as a shortcut that saves the user from typing the host name and/or MAC address.

#6 Updated by Alessio Fattorini about 8 years ago

Davide Principi wrote:

You're right: #1048 is about displaying the lease status on the tabular view.

Uhh :-) :-) Thanks.

I think this feature is about implementing an action.

The action can fill the actual creation form with values from dnsmasq cache, as a shortcut that saves the user from typing the host name and/or MAC address.

You find the target :-D

#7 Updated by Filippo Carletti about 8 years ago

  • Target version changed from v6.4-beta2 to ~FUTURE

#8 Updated by Filippo Carletti almost 8 years ago

  • Target version changed from ~FUTURE to v6.5-beta3

#9 Updated by Davide Principi over 7 years ago

  • Assignee set to Davide Principi

#10 Updated by Davide Principi over 7 years ago

  • Due date set to 11/20/2013
  • Status changed from NEW to TRIAGED
  • Start date set to 11/19/2013
  • % Done changed from 0 to 20
  • Estimated time set to 4.00

#11 Updated by Davide Principi over 7 years ago

  • Status changed from TRIAGED to ON_DEV
  • % Done changed from 20 to 30

#12 Updated by Davide Principi over 7 years ago

  • Subject changed from List of dhcp assignments for quick reservation to Fill DHCP reservation form from lease cache

#13 Updated by Davide Principi over 7 years ago

  • Status changed from ON_DEV to MODIFIED
  • Assignee deleted (Davide Principi)
  • % Done changed from 30 to 60

Modified

Added Reserve action to Hosts/Dhcp UI module

Test case

If you need a DHCP client, download and compile dhtest

  1. Install the modified version of nethserver-nethgui and nethserver-dnsmasq
  2. Enable the DHCP server, set the IP addresses range
  3. Obtain some IP addresses from DHCP clients in green network
  4. In Hosts > Dhcp tab, click on the Reserve action for the existing records from DHCP cache (grey)
  5. In Hosts > Dhcp tab, create a new record
  6. In Hosts > Dhcp tab, delete an existing DB record (black)

#14 Updated by Davide Principi over 7 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70

In nethserver-testing:
nethserver-nethgui-1.2.4-13.0gitb814d52a.ns6.noarch.rpm
nethserver-dnsmasq-1.0.6-2.0git7ffbb7c1.ns6.noarch.rpm

Verify both issues #1048 #1949

#15 Updated by Giacomo Sanchietti over 7 years ago

  • Assignee set to Giacomo Sanchietti

#16 Updated by Giacomo Sanchietti over 7 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 70 to 90

All test cases passed. Tested using a Windows XP virtual machine as DHCP client.

Marking as VERIFIED.

#17 Updated by Davide Principi over 7 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100

In nethserver-updates:
nethserver-samba-1.4.0-1.ns6.noarch.rpm
nethserver-directory-1.3.0-1.ns6.noarch.rpm
nethserver-dnsmasq-1.1.0-1.ns6.noarch.rpm
nethserver-shorewall-1.0.3-1.ns6.noarch.rpm
nethserver-mail-server-1.5.0-1.ns6.noarch.rpm
nethserver-mail-filter-1.1.4-1.ns6.noarch.rpm
nethserver-nethgui-1.3.0-1.ns6.noarch.rpm
nethserver-base-1.5.0-1.ns6.noarch.rpm
nethserver-lib-1.4.0-1.ns6.noarch.rpm
nethserver-httpd-admin-1.1.0-1.ns6.noarch.rpm
nethserver-yum-1.2.0-1.ns6.noarch.rpm
nethserver-ntopng-1.1.0-1.ns6.noarch.rpm

Also available in: Atom PDF