Back to bug 2177733

Who When What Removed Added
Red Hat Bugzilla 2023-03-13 14:28:18 UTC Pool ID sst_networking_rhel_9
Logan McNaughton 2023-03-13 14:40:50 UTC CC lmcnaugh
Red Hat One Jira (issues.redhat.com) 2023-03-14 08:30:31 UTC Link ID Red Hat Issue Tracker NMT-383
Red Hat One Jira (issues.redhat.com) 2023-03-14 08:33:20 UTC CC sfaye
Flags needinfo?(nmagnezi)
Link ID Red Hat Issue Tracker RHELPLAN-151689
Nir Magnezi 2023-03-14 12:53:47 UTC Keywords Triaged
Flags needinfo?(nmagnezi) needinfo?(lmcnaugh)
Logan McNaughton 2023-03-14 14:08:31 UTC Flags needinfo?(lmcnaugh)
Gris Ge 2023-03-14 14:48:11 UTC Flags needinfo?(nmagnezi)
Gris Ge 2023-03-14 15:10:29 UTC Keywords FutureFeature
Nir Magnezi 2023-03-19 12:08:54 UTC Doc Type If docs needed, set a value Enhancement
Flags needinfo?(nmagnezi)
Gris Ge 2023-04-04 11:08:44 UTC Status NEW ASSIGNED
Link ID Github nmstate/nmstate/pull/2303
Gris Ge 2023-04-10 11:33:19 UTC Status ASSIGNED POST
Mayur Patil 2023-04-19 08:13:26 UTC Docs Contact maypatil
CC maypatil
Gris Ge 2023-04-23 23:30:39 UTC Fixed In Version nmstate-2.2.10-1.el9
Status POST MODIFIED
errata-xmlrpc 2023-04-23 23:34:29 UTC Status MODIFIED ON_QA
Mingyu Shi 2023-05-22 10:03:55 UTC Fixed In Version nmstate-2.2.10-1.el9 nmstate-2.2.10-3.el9
Status ON_QA VERIFIED
Mayur Patil 2023-05-26 11:33:22 UTC Flags needinfo?(fge)
CC fge
Gris Ge 2023-05-29 07:37:28 UTC Flags needinfo?(fge)
Doc Text Feature: Support assigning static IP address on DHCP enabled interface

Reason:

Customer of openshift assisted installer would like nmstate to support assigning static IP address on DHCP/auticonf enabled interface.

Result:

Introduced two properties for IP address:
* `valid-left`: seconds for IP address been valid. `forever` means
static.
* `preferred_left`: seconds for IP address been preferred. `forever`
means static.

With above properties, we can identify which certain IP address is
retrieved from DHCP/Autoconf so we don't convert dynamic IP address to
static when user apply the queried state back.

With this patch, user is allowed to set static IP address with
`dhcp: true` and/or `autoconf: true`.

When desire state has DHCP/Autoconf disabled but all desired IP
addresses are dynamic, nmstate will convert those dynamic IP to static.
This is common use case where user just copy retrieved dynamic IP and
hoping nmstate can convert it to static.

Back to bug 2177733