util: Create Face with canonical FaceUri
refs: #1911
Change-Id: I13cc6522b5456d91a793365e33b2e53f9bd13e46
diff --git a/src/route/fib.cpp b/src/route/fib.cpp
index 1815b27..16ed8a8 100644
--- a/src/route/fib.cpp
+++ b/src/route/fib.cpp
@@ -294,12 +294,7 @@
const CommandSucceedCallback& onSuccess,
const CommandFailCallback& onFailure)
{
- ndn::nfd::ControlParameters faceParameters;
- faceParameters
- .setUri(faceUri);
- m_controller.start<ndn::nfd::FaceCreateCommand>(faceParameters,
- onSuccess,
- onFailure);
+ m_faceController.createFace(faceUri, onSuccess, onFailure);
}
void