mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-09 06:16:10 +02:00
send secure_channel_state notificaiton
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
2cfa9b6f2c
commit
b5174ce2ab
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user