Definition of Done:
Please mark each item below with ( / ) if completed or ( x ) if incomplete:
( ) The acceptance criteria defined below are met.
Given Interface eth1 exists with primary name 'eth1' and alt-names ['port1', 'longlongalt-name'] and interface eth2 exists with primary name 'port1' (no alt-names),
When a sysadmin applies state with:
interfaces:
- name: longlongalt-name
state: up
ipv4:
enabled: false
interfaces:
- name: port1
state: up
interfaces:
- name: eth1
state: up
Then, nmstate resolves names correctly: 'longlongalt-name' with eth1, 'port1' with eth2 (primary precedence), 'eth1' with eth1, applies configuration successfully, and nmstatectl show <interface> reflects the applied state with exit code 0
—
Given interface eth1 exists with primary name 'eth1' and alt-names ['port1'] and interface eth2 exists with primary name 'eth2' and alt-names ['port1'] and no interface named 'nonexistent' exists and no alt-name 'nonexistent' exists,
When a sysadmin applies state with:
interfaces:
- name: port1
state: up
interfaces:
- name: nonexistent,
state: up
Then nmstate exits with code 1 and error message indicating:
- For 'port1': alt-name is ambiguous (used by multiple interfaces: eth1 and eth2)
- For 'nonexistent': interface not found by name or alt-name
( ) Integration test case is available upstream.
( ) Code is reviewed and merged upstream.
( ) Preliminary testing is done.
( ) Upstream documentation is written in the upstream MR.
( ) Release notes text is written in the RHEL issue.
( ) A demo is recorded