Gentoo Archives: gentoo-dev

From: Joe Peterson <lavajoe@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] config_eth0 deprecated - new name?
Date: Wed, 23 Apr 2008 18:48:08
Message-Id: 480F840B.1000102@gentoo.org
In Reply to: [gentoo-dev] config_eth0 deprecated - new name? by Roy Marples
1 Roy Marples wrote:
2 > config_eth0="1.2.3.4 netmask 255.255.255.0
3 > 5.6.7.8 netmask 255.255.0.0"
4 > routes_eth0="1.2.4.0 netmask 255.255.255.0 gw 1.2.3.6
5 > 5.6.7.9 gw 5.6.7.10
6 > default gw 1.2.3.1"
7
8 If one choose to separate by lines, will tabs or spaces be allowed in
9 subsequent lines? Like:
10
11 config_eth0="1.2.3.4 netmask 255.255.255.0
12 5.6.7.8 netmask 255.255.0.0"
13 routes_eth0="1.2.4.0 netmask 255.255.255.0 gw 1.2.3.6
14 5.6.7.9 gw 5.6.7.10
15 default gw 1.2.3.1"
16
17 I think this *greatly* improves readability. Also, the example file
18 should probably indent for clarity (I know I've talked with you about
19 this before...).
20
21 > address_eth0="1.2.3.4/24 5.6.7.8/16"
22 > routes_eth0="1.2.4.0/24 1.2.3.6 5.6.7.8 5.6.7.10 default 1.2.3.1"
23
24 That's a little confusing, i.e. not being able to see easily where the
25 pairs are separated. What about adopting commas and keeping "gw" and
26 "netmask" (if not CIDR), like:
27
28 address_eth0="1.2.3.4/24, 5.6.7.8/16"
29 routes_eth0="1.2.4.0/24 gw 1.2.3.6, 5.6.7.8 gw 5.6.7.10, default gw 1.2.3.1"
30
31 > Or we could adopt the BSD routing notation and do this
32 > routes_eth0="route_foo route_bar"
33 > route_foo="1.2.4.0/24 1.2.3.6 metric 5"
34 > route_bar="default 1.2.3.1"
35
36 Hmm, that might be good as an option, as long as the other way is
37 available too, but I'd keep "gw", etc., perhaps.
38
39 > Yes, I've used the same "routes_eth0" variable, but we can change it's syntax
40 > based on the existance of address_eth0/config_eth0.
41 >
42 > So what are peoples feelings on this? Are you happy with the names?
43 > address_eth0?
44 > addr_eth0?
45 > addresses_eth0?
46 > ipaddress_eth0?
47 > ipaddr_eth0?
48 > ipaddresses_ath0?
49 > routes_eth0?
50 > static_routes_eth0?
51 >
52 > Speak up, or I'll make a decision by myself which will probably be done over
53 > the weekend.
54
55 I like "ipaddr_eth0" or "ip_eth0", myself.
56
57 -Joe
58 --
59 gentoo-dev@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] config_eth0 deprecated - new name? Roy Marples <roy@×××××××.name>