Re: Proposed F19 Feature: systemd/udev Predictable Network Interface Names

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jan 29, 2013 at 12:05:44PM -0600, Andrew McNabb wrote:

> I suppose I could have written a script that goes through the list of
> interfaces, filters out hardcoded names like "lo", "wlan", "tun", and
> "tap", and then assumes that whatever is left is the ethernet device.
> And then I could have fixed such a script each time it breaks when types
> of devices are added and renamed (surely the current discussion is only
> the next phase in a long sequence of renames).  In the end, though, I
> just disabled biosdevname.  Having a static "eth0" name is much less
> brittle, even on many multi-interface machines.

Walk /sys/class/net, filter on type, filter out bridges, filter out 
wireless if you want to. sysfs should have all the information you need 
without name-based heuristics.

-- 
Matthew Garrett | mjg59@xxxxxxxxxxxxx
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux