Suppress unnecessary error messages in NFDC createFace for face-updated
Refs #5315
Change-Id: Ic88127fa5e9a8604ecdba7a99c4eba18d39d4568
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 @@
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