PHP error when upgrading from before configuration revision 21.6, ``ipsec_create_vtimap()`` is undefined
In function upgrade_215_to_216() in /etc/inc/upgrade_config.inc:6411 there is a call to ipsec_create_vtimap()
This function was removed in this commit https://gitlab.netgate.com/pfSense/pfSense/-/commit/bec6dcfbbef4832b34d47ca60b0671b23dc185d8?view=inline
That results in an error when trying to import a config that calls that function.
Updated by Jim Pingle over 1 year ago
I thought we had a workaround in place for that but I'm not seeing it now.
The function in question could be copied back into
upgrade_config.inc as a local function declaration inside
upgrade_215_to_216() with its name changed to be specific to that function as well. It could also likely remove a few parts of the original function that are redundant in the new location (no need to initialize things already initialized in the upgrade function).
function upgrade219_get_ipsecifnum() for example.
Updated by Christopher Cope over 1 year ago
- Status changed from New to Pull Request Review