Commit 5508ab74 authored by David Johnson's avatar David Johnson

Update the wireless-specific interface_settings handling code to actually

do what the comments say it should do.  I'm not convinced that this is the
right thing to do in terms of what we claim to support in the wireless
tutorial... but it will stop the odd interface_settings dup key
insert errors that wireless users occasionally generates.
parent 8209a5b1
......@@ -2852,20 +2852,20 @@ foreach $lan (keys(%virt_lans)) {
#
# And lastly, these override anything the user says to do.
#
DBQueryFatal("insert into interface_settings ".
DBQueryFatal("replace into interface_settings ".
" (node_id, iface, capkey, capval) ".
"values ('$pnode', '$pport', 'protocol', '$protocol')");
printdb("interface_setting: $pnode $pport protocol $protocol\n");
DBQueryFatal("insert into interface_settings ".
DBQueryFatal("replace into interface_settings ".
" (node_id, iface, capkey, capval) ".
"values ('$pnode', '$pport', 'ssid', '$ssid')");
printdb("interface_setting: $pnode $pport ssid $ssid\n");
if (defined($ap)) {
DBQueryFatal("insert into interface_settings ".
DBQueryFatal("replace into interface_settings ".
" (node_id, iface, capkey, capval) ".
"values ('$pnode', '$pport', 'accesspoint', '$ap')");
printdb("interface_setting: $pnode $pport accesspoint $ap\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment