Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Fernando Fernández Mancera
NetworkManager-ci
Commits
734f17a4
Commit
734f17a4
authored
Nov 15, 2021
by
Vladimír Beneš
☮
Browse files
vethsetup: do not remove orig-wlanX in vethsetup teardown
parent
c09de6fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
prepare/vethsetup.sh
View file @
734f17a4
...
...
@@ -418,8 +418,8 @@ function teardown_veth_env ()
ip
link set
dev
$ORIGDEV
up
fi
# Rename original devices back
for
DEV
in
$(
nmcli
-f
DEVICE
-t
d |
grep
'^orig-'
|
sed
's/^orig-//'
)
;
do
# Rename original
ethernet
devices back
for
DEV
in
$(
nmcli
-f
DEVICE
,TYPE
-t
d |
grep
ethernet|
grep
'^orig-'
|
sed
's/^orig-//'
|sed
's/:ethernet//'
)
;
do
ip
link set
orig-
$DEV
down
ip
link set
orig-
$DEV
name
$DEV
# Rename their profiles if these exist
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment