From Fedora Project Wiki

m (add autolang to page)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Description ==
{{autolang|base=yes}}
This test case tests if /etc/udev/rules.d/70-persistent-net.rules of an existing install is honoured or not.


== Setup ==
{{QA/Test_Case
 
|description=This test case tests if network interface names in {{FedoraVersion|long|current}} remain the same after upgrading to {{FedoraVersion|long|next}} (or [[Releases/Rawhide|Rawhide]]).
Install Fedora 14 on your system.
|setup=
 
# Install {{FedoraVersion|long|current}} on your system.
== How to test ==
|actions=
 
# Inspect the network interface names on Fedora 14 using the command: {{command|ls /sys/class/net/}}
1. Verify /etc/udev/rules.d/70-persistent-net.rules exists and has the current names captured. For ex:
# Upgrade to the next Fedora release and boot into the upgraded system.  If {{FedoraVersion|long|next}} is not available, [[Releases/Rawhide|Rawhide]] may be used instead.
 
# Once again, inspect the interface names using the command: {{command|ls /sys/class/net/}}
This file was automatically generated by the /lib/udev/write_net_rules
|results=
program, run by the persistent-net-generator.rules rules file.
# Network interface names in Fedora Rawhide should be the same as they were in Fedora 14.  Sample expected output is listed below.
 
<pre># ls /sys/class/net/
You can modify it, as long as you keep each rule on a single
line, and change only the value of the NAME= key.
 
# PCI device 0x14e4:0x1639 (bnx2) (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:21:9b:9d:a5:76", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3"
 
# PCI device 0x14e4:0x1639 (bnx2) (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:21:9b:9d:a5:70", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
 
# PCI device 0x8086:0x10c9 (igb) (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1b:21:54:33:3c", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth4"
 
All the interface names can be seen by
 
<pre>[root@fedora14-r610 rules.d]# ls /sys/class/net/
eth0  eth1  eth2  eth3  eth4  eth5  lo
</pre>
 
2. Upgrade to Fedora Rawhide [[Releases/Rawhide|Rawhide]] and boot into Rawhide.
 
3. Once in Rawhide, verify that the file /etc/udev/rules.d/70-persistent-net.rules exists and names as defined in it are retained.
 
All the interface names can be seen by
 
<pre>[root@rawhide-r610 rules.d]# ls /sys/class/net/
eth0  eth1  eth2  eth3  eth4  eth5  lo
eth0  eth1  eth2  eth3  eth4  eth5  lo
</pre>
</pre>
}}


== Expected Results ==
[[Category:Package biosdevname test cases|b]]
 
Network interface names in Fedora Rawhide should be the same as they were in Fedora 14.

Latest revision as of 19:52, 21 January 2011


Description

This test case tests if network interface names in Fedora 39 remain the same after upgrading to Fedora 40 (or Rawhide).

Setup

  1. Install Fedora 39 on your system.

How to test

  1. Inspect the network interface names on Fedora 14 using the command: ls /sys/class/net/
  2. Upgrade to the next Fedora release and boot into the upgraded system. If Fedora 40 is not available, Rawhide may be used instead.
  3. Once again, inspect the interface names using the command: ls /sys/class/net/

Expected Results

  1. Network interface names in Fedora Rawhide should be the same as they were in Fedora 14. Sample expected output is listed below.
# ls /sys/class/net/
eth0  eth1  eth2  eth3  eth4  eth5  lo