This patch updates "[PATCH v2] Option to enable timestamp" in order to
enable "timestamp" without option and make it the standard feature for
Fujita-San's comment.
With this patch, we can get the received time of each message.
$ git diff
diff --git a/ryu/app/simple_switch_13.py b/ryu/app/simple_switch_13.py
index 3e7c598..8b53fa5 100644
--- a/ryu/app/simple_switch_13.py
+++ b/ryu/app/simple_switch_13.py
@@ -89,6 +89,7 @@ class SimpleSwitch13(app_manager.RyuApp):
self.mac_to_port.setdefault(dpid, {})
self.logger.info("packet in %s %s %s %s", dpid, src, dst, in_port)
+ self.logger.info('with timestamp: %s', ev.timestamp)
# learn a mac address to avoid FLOOD next time.
self.mac_to_port[dpid][src] = in_port
$ ryu-manager ryu/app/simple_switch_13.py
...(snip)...
packet in 1 4e:94:3b:80:26:6f 33:33:00:00:00:16 1
with timestamp: 1500946087.7320635
...(snip)...
IWASE Yusuke (1):
ofp_event: Timestamp when OpenFlow event was generated
ryu/controller/ofp_event.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
--
2.7.4
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel