summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSatoshi Fujimoto <satoshi.fujimoto7@gmail.com>2017-06-16 11:45:45 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-06-23 12:08:18 +0900
commitea23ebdadfc4f629e990c28b1b91c4adc988e2d5 (patch)
treed134a839e99a6309cd523793a81e8d262abad641
parent10b9273928f95c3126c45492794cd7115c2854fb (diff)
doc/ovsdb_manager: Update Sample Code
Signed-off-by: Satoshi Fujimoto <satoshi.fujimoto7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--doc/source/library_ovsdb_manager.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/source/library_ovsdb_manager.rst b/doc/source/library_ovsdb_manager.rst
index 104f4b68..b36a9335 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()