summaryrefslogtreecommitdiff
path: root/scripts/vyatta_net_name
AgeCommit message (Collapse)Author
2011-03-03Fix network name scan for wirelessStephen Hemminger
Bug 6818 The regex to extract wireless name was incorrect. Recode for clarity rather than adding more complex regex.
2011-02-01Bugfix 6156: Allow time for renaming to complete before running biosdevnameBob Gilligan
It appears that biosdevname can be confused if interface renaming is being performed by other udev worker processes at the same time that it is running. Since vyatta_net_name does protect the body of its code with a lock, we can be sure that no other renaming will be started in other udev worker processes while this one is running in vyatta_net_name. But renaming being performed by other udev worker processes that were triggered by previous executions of vyatta_net_name may still be in progress. This change gives any interface renaming that was called for by previous invocations of vyatta_net_name a chance to complete before we call biosdevname. (cherry picked from commit 9dd41e8481e84bf80fcb0e9c3d7843c8a0b20059)
2011-01-24Don't fail if config.boot does not existStephen Hemminger
Bug 6718 On livecd config.boot does not exist yet, so no existing hw-id mappings. (cherry picked from commit 37bbcaef6083a843cb3dd9976854a30ab7cebe16)
2011-01-24Add more debug outputStephen Hemminger
Put more messages in to help debug current problem and future ones (cherry picked from commit 8cc21571cb4efde31f3cf6b58ad8e3d80d4487cf)
2011-01-24Add logging to coldplugStephen Hemminger
Log to file /dev/udev/net-name.log since that is available tmpfs (cherry picked from commit 15ce02d66348ed35308f5813991e171d74561248)
2011-01-24Revert "Add debug logging."Stephen Hemminger
This reverts commit b1af934db367d589cf7c78b84e2181a1e72b2aaf. Loggging to /var/log does not work during boot. The root filesystem is read-only when udev is running this script. (cherry picked from commit 47301dbc029652f97847c9288d58c951db56d916)
2011-01-20Add debug logging.Bob Gilligan
This restores logging that we had in the previous release, which has proven useful in troubleshooting interface renaming problems.
2011-01-16Bugfix 6156: Policy must be given on command line.Bob Gilligan
In the new version of biosdevname (version 0.3.4), the default policy generates interface names of the form "em1". That's not the naming convention that we use. The "all_ethN" policy does use the traditional ethernet naming convention. (cherry picked from commit f05a91c02e27bb19717ddf8e1ffc07ed7b1bbbc5)
2010-11-24Don't let biosdevname look at wireless devicesStephen Hemminger
Bug 6445 Biosdevname program converts everything to eth devices.
2010-10-26Change vyatta_net_name into a perl scriptStephen Hemminger
Use existing config parser and perl to handle udev device naming. Do renaming early in udev boot, and fixup config file later. This avoids rescanning udev devices on boot and adds preliminary support for hotplug.
2010-02-05Bugfix 5120: Use biosdevname to generate the canonical name for an interface.Bob Gilligan
Network interfaces are discovered at boot time in non-deterministic order, so their names are non-deterministic. The vyatta_net_name script is responsible for ensuring that network interface names are changed to match their Vyatta config file entry when a match based on MAC address is found. With this change, when a match is not found, we use the biosdevname tool to to find the canonical name for an interface, then change the interface's name to that name. This ensures that NICs are named in a deterministic and systemmatic fashion.
2010-01-19Restiction on filtering of udev rulesJon Andersson
2008-11-05Fix for bug http://bugzilla.vyatta.com/show_bug.cgi?id=2426rbalocca
2008-10-13Bugfix: 3226Bob Gilligan
Handle case where udev state file doesn't exist.
2008-10-09Bugfix: 3226Bob Gilligan
Several different cases were being handled incorrectly.
2008-03-10Update to GPLv2Stephen Hemminger
Replace references to VPL 1.0 with GPLv2
2008-02-22use vyattacfg for config filesAn-Cheng Huang
2008-02-11fix for bug 2547: don't require/output ':' after "hw-id".An-Cheng Huang
2008-01-23fix bug 2658Tom Grennan
udev appears to be threaded where sub-scripts may be context switch; so, defer config file interface updates to rl-system.init
2008-01-23Revert "fix bug 2658"Tom Grennan
This reverts commit b45bba4286e83f8babcd70eef908f2ea2f8fff3c.
2008-01-21fix bug 2658Tom Grennan
silently write test BOOTFILE before trying too add/mod itf
2008-01-15fix for bug 2534 and prep for larson's vif link detect fixesRobert Bays
2007-12-17support stand-alone validationTom Grennan
2007-12-14move config file interface mods to udev handlerTom Grennan
2007-12-14test for config file missing interface or interface hwidTom Grennan
2007-12-13process device persistence through udev rules rather than init scriptTom Grennan