-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Tech-Debt] Avoid use of deprecated net-tools #57541
Comments
The issue described here #55416 could probably be fixed at the same time. |
I don't know if I would called this a feature - I see it as an enhancement to something that currently exists and is not working due to an upstream dependency deprecation some time ago (2011?!), but I don't have a template for |
@sagetherage the only options are Bug and Feature |
yes, I put those in place, mostly putting notes for myself :) |
Closely related: Ubuntu doesn't use |
I think the whole of |
Note: the old net-tools cannot be totally removed since still have to support older OS's, for example: Solaris 10, some of the underlying OS's on some switch/routers, AIX. But as stated above, have the net-tools as a fall back for when more modern implementations are not available. |
Capturing a thread from community slack here From: @OrangeDog
From @terminalmage
So, need to do a root and branch update of networking when handling replacement of net-tools, allowing for older OS's (Solaris, AIX) and what is available on older Linux platforms, for example: Debian 9, Ubuntu 16.04, and FreeBSD too. |
I think you misread, @dmurphy18. I wasn't saying I did any of that, I was saying that I implemented network teaming already, which is entirely unrelated to this. |
@dmurphy18 That should've been Debian 9 and Ubuntu 16.04 also have |
@terminalmage sorry about that, was grouping network work together, or at least anything with the word network in it :) |
likely we need an epic created in planning and listing out all the different tasks to track we don't miss something |
I did a quick grep of the code and then checked the matching files. Here's what I found, though I welcome people doing their own analysis in case I missed something:
|
There's also this changelog entry I'm not exactly sure what it refers to, but if
|
Fedora 36 no longer has the iwtools package. This has broken the iwtools module for Saltstack. |
@Ch3LL we probably need to check for those old tools usage before tagging Phosphorous |
Quick check of replacement commands in master branch as April 2023:
:) English spelling for neighbour |
Capturing my dev comments for future reference: I did a quick grep of the code and then checked the matching files. Here's what I found, though I welcome people doing their own analysis in case I missed something: salt/modules/bridge.py - Seems to be used for BSD only. Not sure if this is a problem. Quick check of replacement commands in master branch as April 2023: chk net-tools iproute2 CommentX arp ip neighbour need to replace depending on OS ifconfig netstat arp route |
Is your feature request related to a problem? Please describe.
The linux
net-tools
package has been deprecated since 2011, and provides commands includingarp
,ifconfig
,iptunnel
,iwconfig
,nameif
,netstat
, androute
.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 theiproute2
tools (e.g.ip
), then only falling back tonet-tools
if that's all that is available. If every supported platform has already migrated toiproute2
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:
The text was updated successfully, but these errors were encountered: