mirror of
https://github.com/clearlinux/hyperstart.git
synced 2026-09-04 20:51:27 +00:00
do not remove lo device in cleanup net
Signed-off-by: Gao feng <omarapazanadi@gmail.com>
This commit is contained in:
@@ -707,6 +707,11 @@ static int hyper_cleanup_interface(struct rtnl_handle *rth,
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Don't down&remove lo device */
|
||||
if (strcmp(iface->device, "lo") == 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (hyper_down_nic(rth, iface->ifindex) < 0) {
|
||||
fprintf(stderr, "up device %d failed\n", iface->ifindex);
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user