Commit 895441c0 authored by Federico Sismondi's avatar Federico Sismondi

_type in tun mesasge to be compliant with API

parent 0fa8ebcb
......@@ -507,6 +507,8 @@ class OpenTunLinux(object):
log.debug("This is my routing key: %s" % routing_key)
# dispatch to EventBus
msg = json.dumps({
"_type": "packet.raw",
"interface_name": self.ifname,
"msg_id": str(uuid.uuid1()),
"timestamp": str(time.time()),
"routing_key": routing_key,
......@@ -689,6 +691,8 @@ class OpenTunMACOS(object):
log.debug("This is my routing key: %s" % routing_key)
# dispatch to EventBus
msg = json.dumps({
"_type": "packet.raw",
"interface_name":self.ifname,
"msg_id": str(uuid.uuid1()),
"timestamp": str(time.time()),
"routing_key": routing_key,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment