nixup
February 8, 2024, 2:24pm
1
It has been basically dead for over a decade. I think that we shouldn’t include it by default, since there are commands that have taken on it’s role.
More info can be found here:
opened 09:34AM - 04 Jun 20 UTC
closed 08:30PM - 09 Jun 23 UTC
Feature
severity-high
tech-debt
**Is your feature request related to a problem? Please describe.**
The linux `n… et-tools` package has been deprecated since 2011, and provides commands including `arp`, `ifconfig`, `iptunnel`, `iwconfig`, `nameif`, `netstat`, and `route`.
Some salt modules make use of these commands, causing failures when they're not available (#57513).
**Describe the solution you'd like**
Code should be rewritten, preferring first native python (e.g. `pyroute2`) then the `iproute2` tools (e.g. `ip`), then only falling back to `net-tools` if that's all that is available. If every supported platform has already migrated to `iproute2` then the fallback is not required.
**Describe alternatives you've considered**
Continue to depend on systems providing the `net-tools` package. This won't work forever.
**Additional context**
Replacement commands:
net-tools | iproute2
-- | --
arp | ip neighbor
ifconfig | ip addr, ip link, ip -stats
iptunnel | ip tunnel
iwconfig | iw
nameif | ip link
netstat | ss
route | ip route
https://iamhow.com/Technical_Notes/Replacement_commands_for_net-tools_cheatsheet.html
Whad do you think about it?
2 Likes
+1. Perhaps we can add an option like programs.nettools.enable
(which defaults to true) first.
I remember that archiso seemed to have removed net-tools last year (but I’m not sure)
2 Likes