Blame SOURCES/0018-team-link-watchers-fixes-rh1533926.patch

c48088
From 97d153d9e34916b386bc6ef5d824859328acb569 Mon Sep 17 00:00:00 2001
c48088
From: Francesco Giudici <fgiudici@redhat.com>
c48088
Date: Fri, 19 Jan 2018 19:27:44 +0100
c48088
Subject: [PATCH 1/2] nmcli: clear link-watchers before adding the new ones we
c48088
 want to set
c48088
c48088
(cherry picked from commit ff16252a71306716677885d8de1ece140407f551)
c48088
---
c48088
 clients/common/nm-meta-setting-desc.c | 2 ++
c48088
 1 file changed, 2 insertions(+)
c48088
c48088
diff --git a/clients/common/nm-meta-setting-desc.c b/clients/common/nm-meta-setting-desc.c
c48088
index d4f162fb4..53d8350d7 100644
c48088
--- a/clients/common/nm-meta-setting-desc.c
c48088
+++ b/clients/common/nm-meta-setting-desc.c
c48088
@@ -4038,6 +4038,7 @@ _set_fcn_team_link_watchers (ARGS_SET_FCN)
c48088
 	const char *const*iter;
c48088
 	NMTeamLinkWatcher *watcher;
c48088
 
c48088
+	nm_setting_team_clear_link_watchers (NM_SETTING_TEAM (setting));
c48088
 	strv = nmc_strsplit_set (value, ",", 0);
c48088
 	for (iter = (const char *const*) strv; *iter; iter++) {
c48088
 		watcher = _parse_team_link_watcher (*iter, error);
c48088
@@ -4110,6 +4111,7 @@ _set_fcn_team_port_link_watchers (ARGS_SET_FCN)
c48088
 	const char *const*iter;
c48088
 	NMTeamLinkWatcher *watcher;
c48088
 
c48088
+	nm_setting_team_port_clear_link_watchers (NM_SETTING_TEAM_PORT (setting));
c48088
 	strv = nmc_strsplit_set (value, ",", 0);
c48088
 	for (iter = (const char *const*) strv; *iter; iter++) {
c48088
 		watcher = _parse_team_link_watcher (*iter, error);
c48088
-- 
c48088
2.14.3
c48088
c48088
c48088
From 4f76b01f10397dd84c5a6a75ea53cf89592e341d Mon Sep 17 00:00:00 2001
c48088
From: Francesco Giudici <fgiudici@redhat.com>
c48088
Date: Fri, 19 Jan 2018 19:53:10 +0100
c48088
Subject: [PATCH 2/2] doc: fix describe message for team link watchers
c48088
c48088
(cherry picked from commit d7f3c79881f0c4db5e14f7cce01b90ef63cacb4f)
c48088
---
c48088
 clients/common/nm-meta-setting-desc.c | 4 ++--
c48088
 1 file changed, 2 insertions(+), 2 deletions(-)
c48088
c48088
diff --git a/clients/common/nm-meta-setting-desc.c b/clients/common/nm-meta-setting-desc.c
c48088
index 53d8350d7..46b06fd40 100644
c48088
--- a/clients/common/nm-meta-setting-desc.c
c48088
+++ b/clients/common/nm-meta-setting-desc.c
c48088
@@ -4959,10 +4959,10 @@ static const NMMetaPropertyType _pt_gobject_devices = {
c48088
 	   "Properties available for the 'nsna_ping' link watcher:\n" \
c48088
 	   "  'init-wait', 'interval', 'missed-max', 'target-host'*\n\n" \
c48088
 	   "Properties available for the 'arp_ping' include all the ones for 'nsna_ping' and:\n" \
c48088
-	   "  'source-host', 'validate-active', 'validate-inactive', 'send-always'.\n\n" \
c48088
+	   "  'source-host'*, 'validate-active', 'validate-inactive', 'send-always'.\n\n" \
c48088
 	   "Properties flagged with a '*' are mandatory.\n\n" \
c48088
 	   "Example:\n" \
c48088
-	   "   name=arp_ping,source-host=172.16.1.1,target-host=172.16.1.254; name=ethtool,delay-up=3\n")
c48088
+	   "   name=arp_ping source-host=172.16.1.1 target-host=172.16.1.254, name=ethtool delay-up=3\n")
c48088
 
c48088
 
c48088
 #define DEFINE_DCB_PROPRITY_PROPERTY_TYPE \
c48088
-- 
c48088
2.14.3
c48088