Bug 2203080

Summary: Please enable `autoconf: true` if desiring `dhcp: true` only
Product: Red Hat Enterprise Linux 9 Reporter: Gris Ge <fge>
Component: nmstateAssignee: Gris Ge <fge>
Status: CLOSED MIGRATED QA Contact: Mingyu Shi <mshi>
Severity: low Docs Contact:
Priority: unspecified    
Version: 9.2CC: ferferna, jiji, jishi, network-qe, sfaye, till
Target Milestone: rcKeywords: FutureFeature, MigratedToJIRA, Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-17 12:19:31 UTC Type: Story
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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: