summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-03-02 13:32:29 +0200
committerimarom <imarom@cisco.com>2016-03-02 13:35:10 +0200
commit106a9ecd9ef7e353d867aaf00fcc8353ccf000b9 (patch)
treea0748d48652df95ef79011d3a9775827f58ff204
parent59a3b58d240661a2bc06c6ede473d2eda4eb5e55 (diff)
PAUSE JSON event was deleted accidently
-rw-r--r--src/stateless/cp/trex_stateless_port.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/stateless/cp/trex_stateless_port.cpp b/src/stateless/cp/trex_stateless_port.cpp
index 257af546..7302e05d 100644
--- a/src/stateless/cp/trex_stateless_port.cpp
+++ b/src/stateless/cp/trex_stateless_port.cpp
@@ -319,6 +319,10 @@ TrexStatelessPort::pause_traffic(void) {
/* change state */
change_state(PORT_STATE_PAUSE);
+
+ Json::Value data;
+ data["port_id"] = m_port_id;
+ get_stateless_obj()->get_publisher()->publish_event(TrexPublisher::EVENT_PORT_PAUSED, data);
}