From Fedora Project Wiki

Line 7: Line 7:


== How to test ==
== How to test ==
1. Verify /etc/udev/rules.d/70-persistent-net.rules exists and has the current names captured. For ex:
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# 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"
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.
== Expected Results ==
== Expected Results ==

Revision as of 07:26, 17 January 2011

Description

This test case tests if /etc/udev/rules.d/70-persistent-net.rules of an existing install is honoured or not.

Setup

Install Fedora 14 on your system.

How to test

1. Verify /etc/udev/rules.d/70-persistent-net.rules exists and has the current names captured. For ex:

  1. This file was automatically generated by the /lib/udev/write_net_rules
  2. program, run by the persistent-net-generator.rules rules file.
  3. You can modify it, as long as you keep each rule on a single
  4. line, and change only the value of the NAME= key.
  1. 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"

  1. 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"

  1. 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"

2. Upgrade to Fedora 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.

Expected Results