Bug #13097 ยป 13097.patch
| src/etc/inc/upgrade_config.inc | ||
|---|---|---|
|
return;
|
||
|
}
|
||
|
/* Deprecated method. */
|
||
|
function upgrade216_ipsec_create_vtimap($ikeid, $idx) {
|
||
|
$assigned = array_column($config['ipsec']['vtimaps']['item'], 'ifnum');
|
||
|
asort($assigned, SORT_NUMERIC);
|
||
|
$new = 1;
|
||
|
foreach ($assigned as $ipsecifnum) {
|
||
|
if ($ipsecifnum != $new) {
|
||
|
break;
|
||
|
}
|
||
|
if ($new++ > 32767) {
|
||
|
return(NULL);
|
||
|
}
|
||
|
}
|
||
|
return array(
|
||
|
"reqid" => $ikeid,
|
||
|
"index" => $idx,
|
||
|
"ifnum" => $new
|
||
|
);
|
||
|
}
|
||
|
$iflist = get_configured_interface_list_by_realif(true);
|
||
|
foreach ($config['ipsec']['vtimaps']['item'] as $idx => $vtimap) {
|
||
| ... | ... | |
|
continue;
|
||
|
}
|
||
|
$new_vtimap = ipsec_create_vtimap($vtimap['reqid'],
|
||
|
$new_vtimap = upgrade216_ipsec_create_vtimap($vtimap['reqid'],
|
||
|
$vtimap['index']);
|
||
|
/*
|
||