|
Bugzilla – Full Text Bug Listing |
| Summary: | yast: remove interface alias | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE 11.4 | Reporter: | Jan Engelhardt <jengelh> |
| Component: | Network | Assignee: | Michal Zugec <mzugec> |
| Status: | RESOLVED INVALID | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | mantel, mt, mvidner |
| Version: | Factory | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Found By: | Beta-Customer | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: | first step change | ||
|
Description
Jan Engelhardt
2009-01-31 03:25:08 UTC
Created attachment 269061 [details]
first step change
Maybe more is needed, but this seems like that first thing that's gonna be needed. Now yast also needs to be instructed not to emit LABEL_ lines for /etc/sysconfig/network/ifcfg-xyz if this patch does not already imply that. YCP is an absolute mystery language so far.
Marius, what's your opinion about alias labels? I agree that we shouldn't "promote them" in any way -- it is legacy code
to preserve compatibility with Linux-2.0 net aliases.
But I don't know if it makes sense to remove the support from yast2 or
not. I think, it makes more sense to say the people, that they are
legacy code.
A better way would be IMO to display a "legacy code" warning before every
save when labels are in use... But please: let the user enough time to
read what's about, but close the popup box automatically after some time
and continue.
I've adopted the "ifcfg" manual page in svn to make it clear:
"[...]
LABEL[suffix]
Each IPv4 address may be tagged with a label string in order to
preserve compatibility with Linux-2.0 net aliases. This string
must coincide with the name of the interface or must be prefixed
with the interface name followed by colon.
Labels are ignored for IPv6 addresses.
Note: Labels and ifconfig are legacy code and should not be used
any more. The resulting "alias" interfaces are not true inter-
faces and can't be used e.g. in firewall scripts. The total
length of interface name (inclusive of the colon and label) is
limited to 15 characters and the obsolete ifconfig utility trun-
cates it after 9 characters.
See also Multiple addresses (see below).
[...]
Multiple addresses
You can extend the variable name IPADDR by any string you like. For
example IPADDR_1, IPADDR-FOO or IPADDRxxx. Use these variables for
your IP addresses. If you need some additional parameters for these
addresses, then just add the same extension to these variable names:
BROADCAST, NETMASK, PREFIXLEN, REMOTE_IPADDR, LABEL, SCOPE, IP_OPTIONS.
Example:
IPADDR=10.10.0.1/16
IPADDR_1=10.10.1.1
NETMASK_1=255.255.0.0
BROADCAST_1=10.10.255.255
IPADDR_2=10.10.2.1/16
IPADDR_3=10.10.3.1/16
IPADDR_6=2001:DB8:BEEF::1/64
... and so on ...
You do not need to set labels for any address. Please use the ip com-
mand (ip addr show) to manage interface addresses instead of the obso-
lete ifconfig command. If you want to use ifconfig and label, then omit
the label for your main address and use a number as label for every
additional address.
[...]"
OK? Feedback to improve manual pages is always welcome!
fixed in yast2-2.18.12, yast2-network-2.18.12 I'll add there some text about legacy labels before closing bug added help text *** Bug 495142 has been marked as a duplicate of this bug. *** Reopening to reconsider removing the label field from yast2-network. Michael, decide yourself on about when to close this bug. I don't see any reason to remove functionality customers are using. Uh this provides no additional functionality. YaST just reflects sysconfig settings. And this should be backward compatible (because of AutoYaST for example). Removing backward compatibility brings more problems that it solve. because of bnc#732346 I am tracking down the fix in all the code streams: openSUSE-11.2: http://svn.opensuse.org/viewvc/yast?view=revision&revision=55738 http://svn.opensuse.org/viewvc/yast?view=revision&revision=55741 SLE10-SP3: http://svn.opensuse.org/viewvc/yast?view=revision&revision=55840 http://svn.opensuse.org/viewvc/yast?view=revision&revision=55843 SLE11-SP1: http://svn.opensuse.org/viewvc/yast?view=revision&revision=56335 http://svn.opensuse.org/viewvc/yast?view=revision&revision=56912 (unused but equivalent to the following) http://svn.opensuse.org/viewvc/yast?view=revision&revision=57523 |