aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/snmp6.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-10-03 12:51:00 +0200
committerMattias Andrée <maandree@kth.se>2016-10-03 12:51:00 +0200
commitf241128b429f725f4f4da893c7d2cb0e4373e77a (patch)
tree011e6ad00f2253c6394979d1917b212141446ab5 /src/plugins/snmp6.py
parentfix softirqs (diff)
downloadxpybar-f241128b429f725f4f4da893c7d2cb0e4373e77a.tar.gz
xpybar-f241128b429f725f4f4da893c7d2cb0e4373e77a.tar.bz2
xpybar-f241128b429f725f4f4da893c7d2cb0e4373e77a.tar.xz
snmp, snmp6: add keys
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/plugins/snmp6.py')
-rw-r--r--src/plugins/snmp6.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/snmp6.py b/src/plugins/snmp6.py
index afe6de6..bd2ce1c 100644
--- a/src/plugins/snmp6.py
+++ b/src/plugins/snmp6.py
@@ -23,6 +23,8 @@ from util import *
class SNMP6:
'''
IPv6 SNMP data
+
+ @variable keys:list<str> List of avaiable keys
'''
@@ -38,8 +40,10 @@ class SNMP6:
snmp6 = map(lambda x : filter_(x.split(' ')), filter_(snmp6.split('\n')))
self.__info = {}
+ self.keys = []
for field, value in snmp6:
self.__info[field] = int(value)
+ self.keys.append(field)
def __contains__(self, key):