make the re-dhcp on entry to the network screen a little more discreet
This commit is contained in:
parent
099e658670
commit
b485cf487b
|
@ -365,6 +365,8 @@ class NetworkController(BaseController):
|
|||
if not silent:
|
||||
dev.set_dhcp_state(v, "PENDING")
|
||||
self.network_event_receiver.update_link(dev.ifindex)
|
||||
else:
|
||||
dev.set_dhcp_state(v, "RECONFIGURE")
|
||||
dhcp_device_versions.append((dev, v))
|
||||
if dev.info is None:
|
||||
continue
|
||||
|
|
|
@ -209,6 +209,8 @@ class NetworkView(BaseView):
|
|||
address_info.append((label, s))
|
||||
elif dev.dhcp_state(v) == "TIMEDOUT":
|
||||
address_info.append((label, Text(_("timed out"))))
|
||||
elif dev.dhcp_state(v) == "RECONFIGURE":
|
||||
address_info.append((label, Text(_("-"))))
|
||||
else:
|
||||
address_info.append((
|
||||
label,
|
||||
|
|
Loading…
Reference in New Issue