Create a helper class to provide a wrapper around nfdc.
Refs #3491
Change-Id: I2cc7cbb480a6ca81ee32bbfee47ef060dd8c51f4
diff --git a/bin/minindn b/bin/minindn
index f4cdf4e..eda63de 100755
--- a/bin/minindn
+++ b/bin/minindn
@@ -73,6 +73,9 @@
from ndn.remote_ndn_link import RemoteNdnLink, RemoteGRENdnLink
from ndn.placer import GuidedPlacer, PopulatePlacement
from ndn.util import ssh, scp, MiniNDNCLI
+from ndn.nlsr import Nlsr, NlsrConfigGenerator
+from ndn.nfd import Nfd
+from ndn.apps.nfdc import Nfdc
import os.path, time
import shutil
@@ -86,9 +89,6 @@
from functools import partial
import re
-from ndn.nlsr import Nlsr, NlsrConfigGenerator
-from ndn.nfd import Nfd
-
try:
import argcomplete
except ImportError:
@@ -470,7 +470,7 @@
"net": net,
"ctime": options.ctime,
"nPings": options.nPings,
- "strategy": Nfd.STRATEGY_BEST_ROUTE,
+ "strategy": Nfdc.STRATEGY_BEST_ROUTE,
"pctTraffic": options.pctTraffic,
"nlsrSecurity": options.nlsrSecurity,
"workDir": options.workDir,