ovs.jsonrpc: Remove Connection.get_name()--clients can use 'name' directly.
authorBen Pfaff <blp@nicira.com>
Tue, 23 Aug 2011 17:40:24 +0000 (10:40 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 24 Aug 2011 19:06:52 +0000 (12:06 -0700)
Suggested-by: Reid Price <reid@nicira.com>
python/ovs/jsonrpc.py

index 66c260fa13ea7b834935a1e505f323b318a2c8eb..1cc36964d5a32c18da0f37e9b20390b694de9384 100644 (file)
@@ -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)