[ovs-dev] [python 25/31] ovs.jsonrpc: Remove Connection.get_name()--clients can use 'name' directly.

Ben Pfaff blp at nicira.com
Tue Aug 23 21:05:19 UTC 2011


Suggested-by: Reid Price <reid at nicira.com>
---
 python/ovs/jsonrpc.py |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/python/ovs/jsonrpc.py b/python/ovs/jsonrpc.py
index 66c260f..1cc3696 100644
--- a/python/ovs/jsonrpc.py
+++ b/python/ovs/jsonrpc.py
@@ -215,9 +215,6 @@ class Connection(object):
         else:
             return len(self.output)
 
-    def get_name(self):
-        return self.name
-
     def __log_msg(self, title, msg):
         logging.debug("%s: %s %s" % (self.name, title, msg))
 
@@ -371,7 +368,7 @@ class Session(object):
     def open_unreliably(jsonrpc):
         reconnect = ovs.reconnect.Reconnect(ovs.timeval.msec())
         reconnect.set_quiet(True)
-        reconnect.set_name(jsonrpc.get_name())
+        reconnect.set_name(jsonrpc.name)
         reconnect.set_max_tries(0)
         reconnect.connected(ovs.timeval.msec())
         return Session(reconnect, jsonrpc)
-- 
1.7.4.4




More information about the dev mailing list