<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 15 Aug 2024 at 15:18, Silvio Knizek <<a href="mailto:killermoehre@gmx.net">killermoehre@gmx.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Am Donnerstag, dem 15.08.2024 um 14:57 +0100 schrieb Henti Smith:<br>
<br>
> > Hi Henti,<br>
> > <br>
> > why can't you [Match] onto `Property="ID_NET_LABEL_ONBOARD=Onboard ETHERNET Controller"`? Is your systemd older than 243? Than you should really update.<br>
> > <br>
> > BR <br>
> > Silvio<br>
<br>
> Hi Silvio, <br>
> <br>
> I'm on systemd 245 (Ubuntu focal) and I can likely match on Property="ID_NET_LABEL_ONBOARD=Onboard ETHERNET Controller". I'll give that a test as well. <br>
> <br>
> My existing config is using Path=pci-0000:05:00.0 and that works, but when I try to match on Property=Path=pci-0000:05:00.0 Driver=oak,it doesn't. this doesn't make sense to me. <br>
> <br>
> I was hoping that I can have specific matches for hte PCI addresses and Drivers that I can use to match both sets of configuration with and without the hotplug board. <br>
> <br>
> Henti <br>
<br>
<br>
<br>
Wait, what? I think, you have the property line wrong.<br>
<br>
```ini <br>
[Match]<br>
Property="ID_NET_LABEL_ONBOARD=Onboard ETHERNET Controller"<br>
<br>
[Link]<br>
Name=onboard <br>
```<br>
<br>
and<br>
<br>
```ini <br>
[Match] <br>
Property=!"ID_NET_LABEL_ONBOARD=Onboard ETHERNET Controller"<br>
Driver=oak<br>
<br>
[Link]<br>
Name=oak-interface<br>
```<br>
<br>
Does this help?<br>
<br>
BR <br>
Silvio<br>
<br></blockquote><div><br></div><div>Hi Silvio. </div><div><br></div><div>I cannot use
Property="ID_NET_LABEL_ONBOARD=Onboard ETHERNET Controller" as it will match the 3 or 4 (de pending on whether the PCIe hotplug board is attached) onboard network cards on the device. <br></div><div><br></div><div>The full device list (when configured correctly) is:</div><div>E: DEVPATH=/devices/pci0000:00/0000:00:0c.0/0000:01:00.0/net/eno1<br>E: DEVPATH=/devices/pci0000:00/0000:00:0d.0/0000:02:00.0/net/eth1<br>E: DEVPATH=/devices/pci0000:00/0000:00:10.0/0000:05:00.0/net/mvc-sw1<br>E: DEVPATH=/devices/pci0000:00/0000:00:11.0/0000:06:00.0/net/mvc-sw2<br></div><div><br></div><div>The eth1 device is the hotplug board. <br></div><div><br></div><div>The last two devices are the ones I'm trying to have consistent interface names regardless of the PCIe Ethernet card attached or not. <br></div><div><br></div><div>In the current configuration I had expected the match of Property=Path=pci-0000:05:00.0 Driver=oak to match mvc-sw1, but this does not work. <br></div><div><br></div><div>At the end of the day I need to be able to reliably identify the last two ethernet devices and name them correctly regardless of whether the additional PCI hotplug board is attached or not. <br></div><div><br></div><div>I was hoping that the combination of the Path and Driver information can be used to create 4 link files that would alternatively match the devices both with and without the PCIe hotplug board attached. <br></div><div><br></div><div>This seems to be the only way to reliably match the PCI bus state at boot time based on the man page. <br></div><div><br></div><div>I hope this clarifies the situation. <br></div><div><br></div><div>Kind regards</div><div>Henti <br></div><div></div></div></div>