Skip to content

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

Merged
garethgreenaway merged 2 commits into
saltstack:2018.3from
dmurphy18:deprecat_ifupdown
Apr 26, 2019
Merged

garethgreenaway merged 2 commits into
saltstack:2018.3from
dmurphy18:deprecat_ifupdown

Conversation

@dmurphy18

Copy link
Copy Markdown
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