Add Nfdc functionality to enable working with FaceID rather than FaceURI exclusively
refs: #5130
Change-Id: I1b7ca1846cafdde8e959663ba53d5bd50b455b39
diff --git a/examples/psync/full_sync.py b/examples/psync/full_sync.py
index 1a54a73..d256a3b 100644
--- a/examples/psync/full_sync.py
+++ b/examples/psync/full_sync.py
@@ -35,8 +35,8 @@
for node in ndn.net.hosts:
for neighbor in node.connectionsTo(host):
ip = node.IP(neighbor[0])
- Nfdc.createFace(host, ip)
- Nfdc.registerRoute(host, syncPrefix, ip)
+ faceID = Nfdc.createFace(host, ip)
+ Nfdc.registerRoute(host, syncPrefix, faceID)
if __name__ == '__main__':
setLogLevel('info')