Gentoo Archives: gentoo-dev

From: "Jorge Manuel B. S. Vicetto" <jmbsvicetto@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] rfc: *_iface variables in openrc network scripts
Date: Thu, 12 May 2011 23:50:11
Message-Id: 4DCC7202.5040201@gentoo.org
In Reply to: Re: [gentoo-dev] rfc: *_iface variables in openrc network scripts by William Hubbs
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Hi William.
5
6 On 12-05-2011 14:34, William Hubbs wrote:
7 > Hi Jorge,
8 >
9 > On Thu, May 12, 2011 at 02:01:19AM +0000, Jorge Manuel B. S. Vicetto wrote:
10 >> On 12-05-2011 01:45, William Hubbs wrote:
11 >>> In my opinion, the best way to fix this, and the best way forward, would
12 >>> be to stop doing this. My plan is something like this:
13 >>>
14 >>> For the next openrc release, put in a warning that config_* is
15 >>> deprecated and advise the use of ifconfig_* or ipconfig_* depending on
16 >>> which interface handler is being used. Then, at some point in the
17 >>> future, remove support for config_*.
18 >>>
19 >>> Does anyone have any thoughts?
20 >>
21 >> William,
22 >>
23 >> isn't that the whole point of the "modules" variable in the config file?
24 >> One of the first things I do when configuring a new system is to edit
25 >> /etc/conf.d/net and I start by adding modules="iproute2" to it.
26 >
27 > I'm not sure I follow. would you rather keep the config_* variable?
28
29 I think we should try to keep them.
30
31 > If so, how do you feel about requiring the syntax of the variable to
32 > match the tool you are using?
33 > That would mean that the following snippets would not work:
34 >
35 > modules="iproute2"
36 > config_iface="x.x.x.x netmask y.y.y.y broadcast z.z.z.z"
37 > # the above is using ifconfig syntax with the iproute2 module
38 >
39 > modules="ifconfig"
40 > config_iface="x.x.x.x/y broadcast z.z.z.z"
41 > # This is using iproute2 syntax with the ifconfig module.
42
43 That's exactly what I meant.
44 By choosing the module one would get tied to its syntax. That should
45 make it simpler to parse the data. I would also suggest making the
46 declaration of modules mandatory or for you to pick a default tool to be
47 used when someone doesn't declare modules.
48 I prefer iproute2 syntax, but I suspect most people would prefer
49 ifconfig. As long as I have an option to use iproute2, I don't have a
50 problem :)
51
52 > William
53
54 - --
55 Regards,
56
57 Jorge Vicetto (jmbsvicetto) - jmbsvicetto at gentoo dot org
58 Gentoo- forums / Userrel / Devrel / KDE / Elections / RelEng
59 -----BEGIN PGP SIGNATURE-----
60 Version: GnuPG v2.0.17 (GNU/Linux)
61 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
62
63 iQIcBAEBAgAGBQJNzHICAAoJEC8ZTXQF1qEP6qUQAMeBWdnItCG2IyQDcUfeDVh0
64 F6rbngiYPu/AETXvyBfcx0d0rmaszqrqQLWGoNEZVJlPIbHTGD3kTrBVYatTAsIb
65 ooDAcDa3G7yjc/NLu3FRXmJv7Ed+qNFOm9/jDCRH+bOS69rD23BoR0KiRhriFGg8
66 OwsNxyrFyvRFmoZH1CBfbOcXMlEUBP401iiaeGs+2zuSwFZErRWVIvUQcgaf8evI
67 6zYk4Lxyh/OHVHhBiumDrJ3izhZklBAVQnYvxvId+kbhvxKPLgI3sZjDZx/L1Qd5
68 oA7UaLJu+7qFfesj4UXH+VLj0uxIWl398Ka9ZU9h6H08MNde8l6N3rn2D+wkoMax
69 h5mSsWQiRKRqdUIS3vGddLJyd29LNhrixY7FRKnSnSJMgDpxcb25CYU66zJXga3I
70 dO4Fta9e4qdFtZwfsiTxuFAd4XVWrZ2+HkgIthULCXfk92bSgHxU2sdzkBlVju2U
71 1prywa79wK/hm5Y7miAaRbVkJ2iI/DI/46rphnny/JLDsbcD+M37xbG2Ypw6/Jt7
72 jmpuHs+Vu2PyFaAA84q/pBPQFJBckReyB0+8l+RDV15zPy4gPdc1nqj4HDhFAj27
73 SFBKjpYbGJ7VFW0vjZGO5k8E4z3Ecn/X2QlBtlPFrk3Nxk2EG6yTC7H0Q5/i+Pam
74 3DNpqx0iGmLIWixmjHyJ
75 =gDFf
76 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-dev] rfc: *_iface variables in openrc network scripts William Hubbs <williamh@g.o>