From ddbbe53f78ac4af7019a20c58003845440cfec74 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 21 Mar 2016 16:42:49 -0400 Subject: [PATCH] Have ipv6 addresses always be represented as list IPv6 interfaces tend to emphasize more open ended use of aliases. To support this, have ipv6_addresses manifest as a list, to allow for implementations to extend to represent more complex situations. Change-Id: Ia5727ff4830da58f847a7090e45dc819d4f216b2 --- pyghmi/ipmi/oem/lenovo/handler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyghmi/ipmi/oem/lenovo/handler.py b/pyghmi/ipmi/oem/lenovo/handler.py index ae628649..735e398f 100755 --- a/pyghmi/ipmi/oem/lenovo/handler.py +++ b/pyghmi/ipmi/oem/lenovo/handler.py @@ -541,4 +541,5 @@ class OEMHandler(generic.OEMHandler): # fall back to a dumber, but more universal formatter ipv6str = binascii.b2a_hex(ipv6_addr) ipv6str = ':'.join([ipv6str[x:x+4] for x in xrange(0, 32, 4)]) - netdata['ipv6_address'] = '{0}/{1}'.format(ipv6str, ipv6_prefix) + netdata['ipv6_addresses'] = [ + '{0}/{1}'.format(ipv6str, ipv6_prefix)]