From 91ac7b3488f458ee5fbdde9471a0956dccfb04ec Mon Sep 17 00:00:00 2001 From: Mark Gurevich Date: Tue, 25 Jul 2017 16:04:14 -0400 Subject: [PATCH] Catch multiple ips on the same adapter better --- xCAT-server/lib/xcat/plugins/openbmc.pm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/openbmc.pm b/xCAT-server/lib/xcat/plugins/openbmc.pm index af4f42edb..d60978882 100644 --- a/xCAT-server/lib/xcat/plugins/openbmc.pm +++ b/xCAT-server/lib/xcat/plugins/openbmc.pm @@ -1519,16 +1519,16 @@ sub rspconfig_response { ($path, $adapter_id) = (split(/ipv4\//, $key_url)); - unless ($address =~ /n\/a/) { - # We have already processed an entry with adapter information. - # This must be a second entry. Display an error. Currently only supporting - # an adapter with a single IP address set. - $error = "Interfaces with multiple IP addresses are not supported"; - last; - } if ($adapter_id) { if (defined($content{Address}) and $content{Address}) { + unless ($address =~ /n\/a/) { + # We have already processed an entry with adapter information. + # This must be a second entry. Display an error. Currently only supporting + # an adapter with a single IP address set. + $error = "Interfaces with multiple IP addresses are not supported"; + last; + } $address = $content{Address}; } if (defined($content{Gateway}) and $content{Gateway}) {