2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-13 01:40:26 +00:00

Merge pull request #4515 from whowutwut/workaround_zeroconfig_bug

[OpenBMC] Check for LinkLocal and 169.254 IP for ZeroConfig to ignore
This commit is contained in:
xuweibj
2017-12-14 15:59:54 +08:00
committed by GitHub

View File

@ -2833,7 +2833,10 @@ sub rspconfig_response {
my ($path, $adapter_id) = (split(/\/ipv4\//, $key_url));
if ($adapter_id) {
if (defined($content{Origin}) and ($content{Origin} =~ /LinkLocal/)) {
if ( (defined($content{Origin}) and $content{Origin} =~ /LinkLocal/) or
(defined($content{Address}) and $content{Address} =~ /^169.254/) ) {
# OpenBMC driver has a interim bug where ZeroConfigIP comes up as DHCP instead of LinkLocal.
# To protect xCAT while the drivers change, check the 169.254 IP also
if ($xcatdebugmode) {
my $debugmsg = "Found LocalLink " . $content{Address} . " for interface " . $key_url . " Ignoring...";
process_debug_info($node, $debugmsg);