[Nix-dev] [Nix-commits] SVN commit: nix - r34635 - configurations/trunk/tud
Nicolas Pierron
nicolas.b.pierron at gmail.com
Sun Oct 28 02:41:58 CET 2012
Hi;
On Fri, Oct 26, 2012 at 9:28 PM, Eelco Dolstra <e.dolstra at tudelft.nl> wrote:
> Log:
> * Udev no longer assigns persistent names to network devices, so we
> have to do it ourselves :-( Use "internal" and "external" instead
> of eth0 and eth1.
>
> Modified:
> configurations/trunk/tud/cartman.nix
>
> Modified: configurations/trunk/tud/cartman.nix
> ==============================================================================
> --- configurations/trunk/tud/cartman.nix Fri Oct 26 10:00:29 2012 (r34634)
> +++ configurations/trunk/tud/cartman.nix Fri Oct 26 19:28:41 2012 (r34635)
> @@ -172,11 +172,11 @@
> domain = "buildfarm";
>
> interfaces = [
> - { name = "eth1";
> + { name = "external";
> ipAddress = myIP;
> subnetMask = "255.255.254.0";
> }
> - { name = "eth0";
> + { name = "internal";
> ipAddress = (findSingle (m: m.hostName == "cartman") {} {} machines).ipAddress;
> subnetMask = "22";
> }
> @@ -224,27 +224,33 @@
>
> [...]
>
> services = {
>
> + udev.extraRules =
> + ''
> + ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="00:19:d1:19:28:bf", NAME="external"
> + ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="00:04:23:df:f7:bf", NAME="internal"
> + '';
> +
This sounds like a common thing which should probably be shared if the
MAC address is defined as part of the network interface and so prevent
users from digging in udev syntax.
--
Nicolas Pierron
http://www.linkedin.com/in/nicolasbpierron - http://nbp.name/
More information about the nix-dev
mailing list