This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Red Hat Issue Tracker .
Bug 2203080 - Please enable `autoconf: true` if desiring `dhcp: true` only
Summary: Please enable `autoconf: true` if desiring `dhcp: true` only
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: nmstate
Version: 9.2
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Gris Ge
QA Contact: Mingyu Shi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-05-11 07:50 UTC by Gris Ge
Modified: 2023-08-17 12:19 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-17 12:19:31 UTC
Type: Story
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker NMT-539 0 None None None 2023-05-12 06:57:41 UTC
Red Hat Issue Tracker   RHEL-1432 0 None None None 2023-08-17 12:19:30 UTC
Red Hat Issue Tracker RHELPLAN-157083 0 None None None 2023-05-12 06:55:31 UTC

Description Gris Ge 2023-05-11 07:50:54 UTC
Description of problem:

Nmstate user might not know IPv6 has `autconf` property, so they might only have

```
ipv6:
  enabled: true
  dhcp: true
```

The state nmstate applied is not what customer desired as DHCPv6 does not have IPv6 routing information.


Hence nmstate should generate a warning message to user indicating nmstate is auto-fixing the desire state by enabling autoconf also.

Version-Release number of selected component (if applicable):
nmstate-2.2

How reproducible:
100%

Steps to Reproduce:
1. Use nmstate to apply this YAML:

```yml
---
interfaces:
  - name: eth1
    state: up
    ipv6:
      enabled: true
      dhcp: true
```
2.
3.

Actual results:

Only DHCPv6 enabled on this interface. Hence no IPv6 routing.

Expected results:

Both autoconf and DHCPv6 are enabled.

Additional info:


Note You need to log in before you can comment on or make changes to this bug.