We shouldn't change the confd answer, because if we do we break the cache. Create a local copy and append only to that one.
Signed-off-by: Guido Trotter <[email protected]> --- daemons/ganeti-nld | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/daemons/ganeti-nld b/daemons/ganeti-nld index 1ea884b..09816d7 100755 --- a/daemons/ganeti-nld +++ b/daemons/ganeti-nld @@ -88,10 +88,11 @@ class NLDConfdCallback(object): """Update dynamic iptables rules from the node list """ - node_list = up.server_reply.answer - node_list.extend(self.nld_config.endpoints) - logging.debug("Updating trusted NBMA nodes: %s" % node_list) - iptables.UpdateIptablesRules(node_list) + peer_list = [] + peer_list.extend(up.server_reply.answer) + peer_list.extend(self.nld_config.endpoints) + logging.debug("Updating trusted NBMA nodes: %s" % peer_list) + iptables.UpdateIptablesRules(peer_list) def UpdateMCIPList(self, up): """Update dynamic iptables rules from the node list -- 1.6.5
