From: Michael Tremer Date: Sun, 10 May 2015 19:07:50 +0000 (+0000) Subject: conntrack: Show protocol in object representation X-Git-Tag: 002~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b54c3e0210d3dd9b5f38c26eed116d5a17c1f992;p=telemetry.git conntrack: Show protocol in object representation --- diff --git a/src/collecty/plugins/conntrack.py b/src/collecty/plugins/conntrack.py index 9a25ab2..0cef77b 100644 --- a/src/collecty/plugins/conntrack.py +++ b/src/collecty/plugins/conntrack.py @@ -182,6 +182,9 @@ class ConntrackProtocolWithStatesObject(ConntrackObject): ConntrackObject.init(self, conntrack_table) self.protocol = protocol + def __repr__(self): + return "<%s %s>" % (self.__class__.__name__, self.protocol) + @property def states(self): return ConntrackTable._stateful_layer4_protocols.get(self.protocol)