mgmt: include capacity and enablement flags in cs/info dataset
refs #4050
Change-Id: I3de0692ec9f26429733bade80a96e154865928fe
diff --git a/daemon/mgmt/cs-manager.cpp b/daemon/mgmt/cs-manager.cpp
index 5c6c450..20ee279 100644
--- a/daemon/mgmt/cs-manager.cpp
+++ b/daemon/mgmt/cs-manager.cpp
@@ -70,6 +70,10 @@
ndn::mgmt::StatusDatasetContext& context) const
{
ndn::nfd::CsInfo info;
+ info.setCapacity(m_cs.getLimit());
+ info.setEnableAdmit(m_cs.shouldAdmit());
+ info.setEnableServe(m_cs.shouldServe());
+ info.setNEntries(m_cs.size());
info.setNHits(m_fwCnt.nCsHits);
info.setNMisses(m_fwCnt.nCsMisses);