diff --git a/ryu/controller/api.py b/ryu/controller/api.py index c64c93f6..ce217d27 100644 --- a/ryu/controller/api.py +++ b/ryu/controller/api.py @@ -364,6 +364,15 @@ class RPCApi(app_manager.RyuApp): dp.send_msg(m) self.dp_joined = True + if ev.enter: + params = {'secure_channel_state': 'Up'} + else: + params = {'secure_channel_state': 'Down'} + + for s in self.sessions: + m = s.session.create_notification('state', [params]) + s.send_queue.put(m) + def handle_port_status(self, msg): reason = msg.reason datapath = msg.datapath