Skip to content
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

Replace deprecated ifup, ifdown iface with ip link set iface up, down #52670

Merged
merged 2 commits into from
Apr 26, 2019

Conversation

dmurphy18
Copy link
Contributor

What does this PR do?

Replaces use of deprecated ifup and ifdown on Debian based systems (Debian and Ubuntu).
In Ubuntu 18.04.1 LTS, the use of ifupdown packages was removed and is not installed by default.
see url: https://wiki.ubuntu.com/BionicBeaver/ReleaseNotes/18.04.1#Network_configuration

Recommendation is to utilize ip link set iface up|down

What issues does this PR fix or reference?

see #49078

Previous Behavior

On a clean installed Ubuntu 18.04, failures using ifup or ifdown since package is not installed.

New Behavior

Removes dependency on ifup or ifdown and utilizes ip link set iface up or down

Tests written?

No, existing unit.modules.test_debian_ip suffices with test_down and test_up

Commits signed with GPG?

No

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.

@garethgreenaway garethgreenaway merged commit c49ccae into saltstack:2018.3 Apr 26, 2019
garethgreenaway added a commit to garethgreenaway/salt that referenced this pull request Sep 19, 2019
dwoz added a commit that referenced this pull request Dec 4, 2019
@dmurphy18 dmurphy18 deleted the deprecat_ifupdown branch April 20, 2021 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants