From 5345a466c6a5071e73f77c2f2feeafe929482ad2 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 9 Dec 2021 11:41:04 -0500 Subject: [PATCH] Fix bmc network configuration over ipv6 client Change-Id: I62c6f774085a863e28481918d7072faff8594c5e --- pyghmi/redfish/command.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyghmi/redfish/command.py b/pyghmi/redfish/command.py index 40f570dc..73b46c00 100644 --- a/pyghmi/redfish/command.py +++ b/pyghmi/redfish/command.py @@ -254,6 +254,7 @@ class Command(object): self._varfwinventory = None self._oem = None self._gpool = pool + self._bmcv4ip = None for addrinf in socket.getaddrinfo(bmc, 0, 0, socket.SOCK_STREAM): if addrinf[0] == socket.AF_INET: self._bmcv4ip = socket.inet_pton(addrinf[0], addrinf[-1][0])