Comment 5 for bug 1875927

Revision history for this message
Eric Desrochers (slashd) wrote :

ddstreet's concern were right.

[Bionic w/ v4.15 kernel w/o cloud-init installed/configured]
** cloud-init rename the interface for some reasons after systemd that is why I uninstalled it for this test on my MAAS server deployment **

6: ens1f0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop portid 000f5331c120 state DOWN mode DEFAULT group default qlen 1000
link/ether 00:0f:53:31:c1:20 brd ff:ff:ff:ff:ff:ff

$ cat /sys/class/net/ens1f0/phys_port_name
p0

[Same thing as above with a systemd test packages + its derived packages]

4: ens1f0np0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop portid 000f5331c120 state DOWN mode DEFAULT group default qlen 1000
link/ether 00:0f:53:31:c1:20 brd ff:ff:ff:ff:ff:ff

cat /sys/class/net/ens1f0np0/phys_port_name
p0

Result:
The switchdev interface changes name to introduce the phys_port_name in the naming scheme.