mgmt: replace FaceFlags with individual fields

refs #1992

Change-Id: I41d55b3227c916a253705aaeefbe66c7c18e22a9
diff --git a/daemon/mgmt/face-manager.cpp b/daemon/mgmt/face-manager.cpp
index b31f841..5b7c08d 100644
--- a/daemon/mgmt/face-manager.cpp
+++ b/daemon/mgmt/face-manager.cpp
@@ -29,7 +29,6 @@
 #include "core/face-uri.hpp"
 #include "core/network-interface.hpp"
 #include "fw/face-table.hpp"
-#include "face/face-flags.hpp"
 #include "face/tcp-factory.hpp"
 #include "face/udp-factory.hpp"
 #include "core/config-file.hpp"
@@ -1030,11 +1029,8 @@
 FaceManager::onAddFace(shared_ptr<Face> face)
 {
   ndn::nfd::FaceEventNotification notification;
-  notification.setKind(ndn::nfd::FACE_EVENT_CREATED)
-              .setFaceId(face->getId())
-              .setRemoteUri(face->getRemoteUri().toString())
-              .setLocalUri(face->getLocalUri().toString())
-              .setFlags(getFaceFlags(*face));
+  notification.setKind(ndn::nfd::FACE_EVENT_CREATED);
+  face->copyStatusTo(notification);
 
   m_notificationStream.postNotification(notification);
 }
@@ -1043,16 +1039,12 @@
 FaceManager::onRemoveFace(shared_ptr<Face> face)
 {
   ndn::nfd::FaceEventNotification notification;
-  notification.setKind(ndn::nfd::FACE_EVENT_DESTROYED)
-              .setFaceId(face->getId())
-              .setRemoteUri(face->getRemoteUri().toString())
-              .setLocalUri(face->getLocalUri().toString())
-              .setFlags(getFaceFlags(*face));
+  notification.setKind(ndn::nfd::FACE_EVENT_DESTROYED);
+  face->copyStatusTo(notification);
 
   m_notificationStream.postNotification(notification);
 }
 
-
 bool
 FaceManager::extractLocalControlParameters(const Interest& request,
                                            ControlParameters& parameters,