ndn-stack-helper: Update method was added
Change-Id: I1e4bafe8559ef87135de6cb6f209fc94dfa232b1
Refs: #2717
diff --git a/helper/ndn-stack-helper.hpp b/helper/ndn-stack-helper.hpp
index a05e520..472f0ab 100644
--- a/helper/ndn-stack-helper.hpp
+++ b/helper/ndn-stack-helper.hpp
@@ -182,6 +182,36 @@
static KeyChain&
getKeyChain();
+ /**
+ * \brief Update Ndn stack on a given node (Add faces for new devices)
+ *
+ * \param node The node on which to update the stack.
+ */
+ void
+ Update(Ptr<Node> node);
+
+ /**
+ *\brief Update Ndn stack on given nodes (Add faces for new devices)
+ *
+ * \param c The nodes on which to update the stack.
+ */
+ void
+ Update(const NodeContainer& c);
+
+ /**
+ *\brief Update Ndn stack on a given node name (Add faces for new devices)
+ *
+ * \param nodeName The name of the node on which to update the stack.
+ */
+ void
+ Update(const std::string& nodeName);
+
+ /**
+ *\brief Update Ndn stack on all the nodes (Add faces for new devices)
+ */
+ void
+ UpdateAll();
+
private:
shared_ptr<NetDeviceFace>
DefaultNetDeviceCallback(Ptr<Node> node, Ptr<L3Protocol> ndn, Ptr<NetDevice> netDevice) const;
@@ -189,6 +219,8 @@
shared_ptr<NetDeviceFace>
PointToPointNetDeviceCallback(Ptr<Node> node, Ptr<L3Protocol> ndn,
Ptr<NetDevice> netDevice) const;
+ shared_ptr<NetDeviceFace>
+ createAndRegisterFace(Ptr<Node> node, Ptr<L3Protocol> ndn, Ptr<NetDevice> device) const;
public:
void