Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP4
powerpc-utils.20340
0003-hcnmgr-Avoid-using-ifcfg-file-for-checking...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0003-hcnmgr-Avoid-using-ifcfg-file-for-checking-bonding-i.patch of Package powerpc-utils.20340
From e25d71be411b610e5e889f8efaaf04b38c2d9ecb Mon Sep 17 00:00:00 2001 From: Mingming Cao <mmc@linux.vnet.ibm.com> Date: Fri, 12 Mar 2021 13:50:33 -0800 Subject: [PATCH 3/4] hcnmgr: Avoid using ifcfg file for checking bonding interface status References: bsc#1181956 ltc#190722 Upstream: accpeted, expected v1.3.9 Git-commit: e25d71be411b610e5e889f8efaaf04b38c2d9ecb When configuring migratable sr_iov into hybrid network, it checks if there is an existing HNV using the presense of ifcfg file location. This is not preferred as the location can be different on distros. This patch fixes this by using NetworkManager nmcli. Signed-off-by: Mingming Cao <mmc@linux.vnet.ibm.com> [tyreld: fixed spelling] Signed-off-by: Tyrel Datwyler <tyreld@linux.ibm.com> --- scripts/hcnmgr | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/hcnmgr b/scripts/hcnmgr index 0d20e7dab4b6..d66b5d1c3ea1 100644 --- a/scripts/hcnmgr +++ b/scripts/hcnmgr @@ -282,8 +282,7 @@ do_config_vdevice() { hcnlog DEBUG "Check if there is bond $BONDNAME with hcn id $HCNID" - hcnlog DEBUG "ifconfig file $IFCONFIG_PATH/ifconfig-$BONDNAME" - if [ ! -e "$IFCONFIG_PATH/ifcfg-$BONDNAME" ]; then + if ! nmcli -f NAME con show --active | grep -q "$BONDNAME\s"; then hcnlog INFO "nmcli con add type bond con-name $BONDNAME ifname $BONDNAME" nmcli con add type bond con-name "$BONDNAME" ifname "$BONDNAME" -- 2.26.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor