Skip to content

Commit

Permalink
Suppress unnecessary error messages in NFDC createFace for face-updated
Browse files Browse the repository at this point in the history
Refs #5315

Change-Id: Ic88127fa5e9a8604ecdba7a99c4eba18d39d4568
  • Loading branch information
awlane committed Apr 3, 2024
1 parent dbbb356 commit a43c241
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions minindn/helpers/nfdc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a43c241

Please sign in to comment.