summaryrefslogtreecommitdiffstats
path: root/src/publisher
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2015-11-19 17:17:38 +0200
committerimarom <imarom@cisco.com>2015-11-19 17:17:38 +0200
commit2ae2e4e860194ee8d2b5ec5c4a1375751f51dd98 (patch)
tree30b4c1f6363e5c70e5c2b21d9f7f500e6e94253a /src/publisher
parentf3d60d71ccd9275ac42b7c9dc619cc6797e1fb12 (diff)
full async DP stop support
Diffstat (limited to 'src/publisher')
-rw-r--r--src/publisher/trex_publisher.cpp2
-rw-r--r--src/publisher/trex_publisher.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/publisher/trex_publisher.cpp b/src/publisher/trex_publisher.cpp
index 1afb558a..35653069 100644
--- a/src/publisher/trex_publisher.cpp
+++ b/src/publisher/trex_publisher.cpp
@@ -86,7 +86,7 @@ TrexPublisher::publish_event(event_type_e type, const Json::Value &data) {
Json::Value value;
std::string s;
- value["name"] = "event";
+ value["name"] = "trex-event";
value["type"] = type;
value["data"] = data;
diff --git a/src/publisher/trex_publisher.h b/src/publisher/trex_publisher.h
index 07d06678..82603fda 100644
--- a/src/publisher/trex_publisher.h
+++ b/src/publisher/trex_publisher.h
@@ -39,7 +39,7 @@ public:
void publish_json(const std::string &s);
enum event_type_e {
- EVENT_PORT_STOPPED = 1
+ EVENT_PORT_STOPPED = 0
};
void publish_event(event_type_e type, const Json::Value &data);