* Updated striker to only complain about unconfigured networks on nodes, not DR hosts.

* Updated anvil-configure-host to ignore gracefully unconfigured networks.

Signed-off-by: digimer <digimer@gravitar.alteeve.com>
main
digimer 2 years ago
parent b8b4352117
commit 64bb5ab8e1
  1. 2
      cgi-bin/striker
  2. 3
      tools/anvil-configure-host

@ -5825,7 +5825,7 @@ sub process_prep_network
if ((not $anvil->data->{cgi}{$link1_key}{value}) && (not $anvil->data->{cgi}{$link2_key}{value})) if ((not $anvil->data->{cgi}{$link1_key}{value}) && (not $anvil->data->{cgi}{$link2_key}{value}))
{ {
# If this is network 1, both are required. # If this is network 1, both are required.
if ($i == 1) if (($host_type eq "node") && ($i == 1))
{ {
# Required. # Required.
my $error_message = $anvil->Words->string({key => "warning_0021"}); my $error_message = $anvil->Words->string({key => "warning_0021"});

@ -406,6 +406,9 @@ ORDER BY
's2:variable_name' => $variable_name, 's2:variable_name' => $variable_name,
's3:variable_value' => $variable_value, 's3:variable_value' => $variable_value,
}}); }});
# An undefined interface will have the MAC address value set to '1', ignore those.
next if $variable_value = 1;
if ($variable_name =~ /form::config_step2::(.*?)_mac_to_set::value/) if ($variable_name =~ /form::config_step2::(.*?)_mac_to_set::value/)
{ {

Loading…
Cancel
Save