ndn/experiments: add tests for psync
refs: #4670
Change-Id: I4c4ac9960eb5411ced1db855e641471c7251a046
diff --git a/ndn/apps/nfdc.py b/ndn/apps/nfdc.py
index 41d479f..9f1b312 100644
--- a/ndn/apps/nfdc.py
+++ b/ndn/apps/nfdc.py
@@ -1,6 +1,6 @@
# -*- Mode:python; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
#
-# Copyright (C) 2015-2018, The University of Memphis,
+# Copyright (C) 2015-2019, The University of Memphis,
# Arizona Board of Regents,
# Regents of the University of California.
#
@@ -34,12 +34,12 @@
PROTOCOL_ETHER = "ether"
@staticmethod
- def registerRoute(node, namePrefix, remoteNode, protocol=PROTOCOL_UDP, origin=255, cost=0,
- inheritFlag=True, captureFlag=False, expirationInMillis=None):
+ def registerRoute(node, namePrefix, remoteNodeAddress, protocol=PROTOCOL_UDP, origin=255,
+ cost=0, inheritFlag=True, captureFlag=False, expirationInMillis=None):
cmd = ("nfdc route add {} {}://{} origin {} cost {} {}{}").format(
namePrefix,
protocol,
- remoteNode,
+ remoteNodeAddress,
origin,
cost,
"no-inherit " if not inheritFlag else "",
@@ -51,23 +51,23 @@
time.sleep(0.5)
@staticmethod
- def unregisterRoute(node, namePrefix, remoteNode, origin=255):
- cmd = "nfdc route remove {} {} {}".format(namePrefix, remoteNode, origin)
+ def unregisterRoute(node, namePrefix, remoteNodeAddress, origin=255):
+ cmd = "nfdc route remove {} {} {}".format(namePrefix, remoteNodeAddress, origin)
time.sleep(0.5)
@staticmethod
- def createFace(node, remoteNode, protocol="udp", isPermanent=False):
+ def createFace(node, remoteNodeAddress, protocol="udp", isPermanent=False):
cmd = ("nfdc face create {}://{} {}".format(
protocol,
- remoteNode,
+ remoteNodeAddress,
"permanent" if isPermanent else "persistent"
))
debug(node.cmd(cmd))
time.sleep(0.5)
@staticmethod
- def destroyFace(node, remoteNode, protocol="udp"):
- debug(node.cmd("nfdc face destroy {}://{}".format(protocol, remoteNode)))
+ def destroyFace(node, remoteNodeAddress, protocol="udp"):
+ debug(node.cmd("nfdc face destroy {}://{}".format(protocol, remoteNodeAddress)))
time.sleep(0.5)
@staticmethod