diff --git a/pyghmi/redfish/command.py b/pyghmi/redfish/command.py index bc1fb4e2..8eeb7c1d 100644 --- a/pyghmi/redfish/command.py +++ b/pyghmi/redfish/command.py @@ -474,6 +474,9 @@ class Command(object): if not ipv4: raise exc.PyghmiException('Unable to locate network information') retval = {} + if len(netcfg['IPv4Addresses']) != 1: + netcfg['IPv4Addresses'] = [x for x in + netcfg['IPv4Addresses'] if x['Address'] != '0.0.0.0'] if len(netcfg['IPv4Addresses']) != 1: raise exc.PyghmiException('Multiple IP addresses not supported') currip = netcfg['IPv4Addresses'][0]