Verified on 25.10 systemd* 257.9-0ubuntu2.1
Tested (according to Test Plan -> Test 2):
- Adding ID_NET_NAME_INCLUDE_DOMAIN to 20-net-ifname.hwdb 
 sudo systemd-hwdb update
rmalz@rmalz:~$  systemd-hwdb query "pci:v00001AF4d00001041*"
ID_VENDOR_FROM_DATABASE=Red Hat, Inc.
ID_MODEL_FROM_DATABASE=Virtio 1.0 network device
ID_NET_NAME_INCLUDE_DOMAIN=0

- udevadm test-builtin net_id with umockdev
rmalz@rmalz:~$  umockdev-run --device domain1.umockdev -- bash
rmalz@rmalz:~$ udevadm test-builtin net_id 
/sys/devices/pci0001:00/0001:00:02.0/0001:01:00.0/virtio1/net/enp1s0/
ID_NET_NAME_PATH=enp1s0
As expected

- extraa, udevadm test-builtin net_id with umockdev but with umockdev file 
without ID_NET_NAME_INCLUDE_DOMAIN=0
rmalz@rmalz:~$ umockdev-run --device domain1_dont_ignore.umockdev -- bash
rmalz@rmalz:~$  udevadm test-builtin net_id 
/sys/devices/pci0001:00/0001:00:02.0/0001:01:00.0/virtio1/net/enp1s0/
ID_NET_NAME_PATH=enP1p1s0
As expected

- extra, udevadm test-builtin net_id with umockdev file with 
ID_NET_NAME_INCLUDE_DOMAIN=1
rmalz@rmalz:~$ umockdev-run --device domain1_ignore_true.umockdev -- bash
rmalz@rmalz:~$ udevadm test-builtin net_id 
/sys/devices/pci0001:00/0001:00:02.0/0001:01:00.0/virtio1/net/enp1s0/
ID_NET_NAME_PATH=enP1p1s0
As expected



** Tags removed: verification-needed-questing
** Tags added: verification-done-questing

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2134334

Title:
  Add ID_NET_NAME_INCLUDE_DOMAIN property support to systemd

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/2134334/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to