-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
rhel-10.2
-
None
-
None
-
None
-
rhel-net-mgmt
-
None
-
False
-
False
-
-
None
-
None
-
-
None
-
None
-
Unspecified
-
Unspecified
-
Unspecified
-
None
What were you trying to do that didn't work?
Cannot capture interface using alternative name
What is the impact of this issue to you?
OCP use nmpolicy to copy physical interface MAC and IP to OVS bridge after attached this physical interface to this OVS bridge.
Please provide the package NVR for which the bug is seen:
nmstate-2.2.57-1.el10
How reproducible is this bug?:
100%
Steps to reproduce
echo '
---
interfaces:
- name: port1
type: ethernet
identifier: mac-address
mac-address: 52:54:00:15:17:63
alt-names:
- name: port1
- name: primary' | sudo nmstatectl apply -
echo 'capture:
base-iface: interfaces.alt-name == "primary"
desired:
interfaces:
- name: br1
type: linux-bridge
state: up
mac-address: "{{ capture.base-iface.interfaces.0.mac-address }}"
ipv4: "{{ capture.base-iface.interfaces.0.ipv4 }}"
ipv6: "{{ capture.base-iface.interfaces.0.ipv6 }}"
bridge:
port:
- name: primary' > policy.yml
nmstatectl apply policy.yml
Expected results
Nmstate copy the MAC/IP of interface holding MAC 52:54:00:15:17:63 to newly created linux bridge.
Actual results
NmstateError: PolicyError: interface with 'alt-name=primary' not found
| interfaces.alt-name == "primary" |
| ........... |