Signed-off-by: Satoshi Fujimoto <[email protected]>
---
doc/source/library_ovsdb_manager.rst | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/doc/source/library_ovsdb_manager.rst
b/doc/source/library_ovsdb_manager.rst
index 104f4b6..b36a933 100644
--- a/doc/source/library_ovsdb_manager.rst
+++ b/doc/source/library_ovsdb_manager.rst
@@ -20,6 +20,7 @@ on a bridge.
import uuid
from ryu.base import app_manager
+ from ryu.controller.handler import set_ev_cls
from ryu.services.protocols.ovsdb import api as ovsdb
from ryu.services.protocols.ovsdb import event as ovsdb_event
@@ -28,8 +29,11 @@ on a bridge.
@set_ev_cls(ovsdb_event.EventNewOVSDBConnection)
def handle_new_ovsdb_connection(self, ev):
system_id = ev.system_id
+ addr = ev.client.address
self.logger.info('New OVSDB connection from system id %s',
- systemd_id)
+ system_id)
+ self.logger.info('The connection address id %s',
+ addr)
def create_port(self, system_id, bridge_name, name):
new_iface_uuid = uuid.uuid4()
--
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