From: Ben Pfaff Date: Tue, 23 Aug 2011 17:40:24 +0000 (-0700) Subject: ovs.jsonrpc: Remove Connection.get_name()--clients can use 'name' directly. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22bb61e9ee9576e77495c0c5c71fa2d243a98fb6;p=openvswitch ovs.jsonrpc: Remove Connection.get_name()--clients can use 'name' directly. Suggested-by: Reid Price --- diff --git a/python/ovs/jsonrpc.py b/python/ovs/jsonrpc.py index 66c260fa..1cc36964 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)