On May 24, 2011 6:55 AM, "Tom Gundersen" firstname.lastname@example.org wrote:
On Sun, May 22, 2011 at 4:43 PM, Dave Reisner email@example.com wrote:
I'm resubmitting my work of migrating to iproute2 from net-tools at
request. It's pretty much the same, but with the feedback from Dan, I've
some extremely simple deprecation logic to yell at the user when he or
still using the net-tools variables.
The new logic uses some fairly simple (and generic) declarations:
address, netmask, and gateway. If interface is undefined, we fire off
deprecation warning, as this is the _only_ variable required to
a connection via iproute2. If address is undefined, we skip reading
and gateway, and assume usage of dhcp. If address _is_ defined, we
the need for gateway and netmask.
I've opted to make this warning fairly common, firing it both on
and bringing down interfaces, as I think this needs to be made very
given the severity of the change.
Along with this change, we would need to do a little bit of juggling
coreutils and yp-tools in order to make net-tools truly optional:
- coreutils is currently built without hostname. enable this, removing
- yp-tools is currently in extra. we would need to bring this into core
to support setting a domainname, and remove the symlinks to hostname
As always, comments, criticisms, and tomatoes are welcome.
I pushed these patches now. I probably will hold off on a release for some time, to give people a chance to test this a bit more as a bug in this code could be critical.
Thanks again for your work!
Sounds good to me! Thanks for merging!