Project

General

Profile

Bug #28780

Delete static address after switching to DHCP

Added by BloodyIron - over 1 year ago. Updated 12 months ago.

Status:
Done
Priority:
Expected
Assignee:
Brandon Schneider
Category:
Middleware
Target version:
Seen in:
Severity:
Low Medium
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

I have an interface where it was using a static IP/24 configuration. I wanted to switch it back to DHCP, so I checked DHCP in the webgui (the checkbox), but did not clear the fields for IP or Subnet Mask, so the old static IP and Subnet Mask was still "populating" the field, but were greyed out. After hitting save/apply, I got a DHCP IP on that interface, HOWEVER that same interface also kept the static IP and Subnet Mask, AND the old static IP was able to serve me webGUI content and do stuff.

This seems like a bug to me, but if it is working as intended, perhaps make it so the user knows this will happen?

Seen in 11.1-U2

Associated revisions

Revision 5ba12d1c (diff)
Added by Brandon Schneider about 1 year ago

Remove all addresses if dhcp is set

Ticket: #28780

Revision 9143a1d3 (diff)
Added by Brandon Schneider about 1 year ago

Remove all addresses if dhcp is set (#1215)

  • Remove all addresses if dhcp is set

Ticket: #28780

  • Address Review by William

This should nuke the addresses before the aliases get added.

History

#1 Updated by Dru Lavigne over 1 year ago

  • Category set to Middleware
  • Assignee changed from Release Council to William Grzybowski
  • Target version set to 11.2-RC2

William: does the middleware do the right thing? If so, please pass to Erin for the new UI.

#2 Updated by William Grzybowski over 1 year ago

  • Priority changed from No priority to Expected
  • Severity set to Low Medium

Still showing in the field but as disabled is fine however you're right it shouldnt keep them usable, of course.

#3 Updated by William Grzybowski about 1 year ago

  • Assignee changed from William Grzybowski to Brandon Schneider
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

This should be fairly straightforward. We dont need to account for the primary ip address if DHCP is enabled.

#4 Updated by Brandon Schneider about 1 year ago

  • Status changed from Not Started to In Progress

#5 Updated by Brandon Schneider about 1 year ago

#6 Updated by Dru Lavigne about 1 year ago

  • Subject changed from Interface when switched back to DHCP, but IP not cleared from field, both DHCP IP and "old" static IP are usable to Delete static address after switching to DHCP
  • Target version changed from 11.2-RC2 to 11.2-BETA1

#7 Updated by Brandon Schneider about 1 year ago

  • Status changed from In Progress to Ready for Testing

#8 Updated by Eric Turgeon 12 months ago

  • Status changed from Ready for Testing to Passed Testing
  • Needs QA changed from Yes to No

From FreeNAS-11.2-MASTER-201806210906 (5c68c6963) it seems to work without on real hardware and BHYVE.

#9 Updated by Dru Lavigne 12 months ago

  • Status changed from Passed Testing to Done

Also available in: Atom PDF