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