summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-07-11 15:27:58 +0200
committerThomas Haller <thaller@redhat.com>2018-07-11 15:39:41 +0200
commita26cf2b64d027bdd093e09fe306a2b855b9d53a3 (patch)
tree88310987d8a415c40b7896168b8381831480a133
parentfe0b66ad82d82ebb5df9d1270332d21b47cf00a8 (diff)
downloadNetworkManager-a26cf2b64d027bdd093e09fe306a2b855b9d53a3.tar.gz
fixup! ifcfg-rh: SR-IOV support
-rw-r--r--src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c b/src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c
index 91b83a3df3..2a08e9c984 100644
--- a/src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c
+++ b/src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c
@@ -2161,6 +2161,8 @@ write_sriov_setting (NMConnection *connection, shvarFile *ifcfg)
b = nm_setting_sriov_get_autoprobe_drivers (s_sriov);
if (b != NM_TERNARY_DEFAULT)
svSetValueInt64 (ifcfg, "SRIOV_AUTOPROBE_DRIVERS", b);
+ else
+ svUnsetValue (ifcfg, "SRIOV_AUTOPROBE_DRIVERS");
num = nm_setting_sriov_get_num_vfs (s_sriov);
for (i = 0; i < num; i++) {