From a43c241de2d6fd6921fe269bec06bcd529fe9b46 Mon Sep 17 00:00:00 2001 From: awlane Date: Tue, 2 Apr 2024 14:14:45 -0500 Subject: [PATCH] Suppress unnecessary error messages in NFDC createFace for face-updated Refs #5315 Change-Id: Ic88127fa5e9a8604ecdba7a99c4eba18d39d4568 --- minindn/helpers/nfdc.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/minindn/helpers/nfdc.py b/minindn/helpers/nfdc.py index 9468d8b..f2558d5 100644 --- a/minindn/helpers/nfdc.py +++ b/minindn/helpers/nfdc.py @@ -86,10 +86,12 @@ def createFace(node, remoteNodeAddress, protocol='udp', isPermanent=False, allow output = node.cmd(cmd) debug(output) Minindn.sleep(SLEEP_TIME) - if "face-created" in output or (allowExisting and "face-exists" in output): + if "face-created" in output or (allowExisting and ("face-exists" in output or "face-updated" in output)): faceID = output.split(" ")[1][3:] + if "face-exists" in output or "face-updated" in output: + debug("[{}] Existing face found: {}\n".format(node.name, faceID)) return faceID - warn("["+ node.name + "] Face register failed: " + output) + warn("[{}] Face register failed: {}\n".format(node.name, output)) return -1 @staticmethod