tools: nfdc route commands accept and print RouteOrigin strings
refs #3987
Change-Id: I47594546e3fe9279fff5ea6ade9ce38cb3b05b6c
diff --git a/tools/nfdc/command-definition.cpp b/tools/nfdc/command-definition.cpp
index 18eee1e..a2ceb33 100644
--- a/tools/nfdc/command-definition.cpp
+++ b/tools/nfdc/command-definition.cpp
@@ -54,6 +54,8 @@
return os << "FaceId or FaceUri";
case ArgValueType::FACE_PERSISTENCY:
return os << "FacePersistency";
+ case ArgValueType::ROUTE_ORIGIN:
+ return os << "RouteOrigin";
}
return os << static_cast<int>(vt);
}
@@ -80,6 +82,8 @@
return "face";
case ArgValueType::FACE_PERSISTENCY:
return "persistency";
+ case ArgValueType::ROUTE_ORIGIN:
+ return "origin";
}
BOOST_ASSERT(false);
return "";
@@ -260,6 +264,9 @@
case ArgValueType::FACE_PERSISTENCY:
return parseFacePersistency(token);
+
+ case ArgValueType::ROUTE_ORIGIN:
+ return boost::lexical_cast<RouteOrigin>(token);
}
BOOST_ASSERT(false);