What is ['uniqid'] in function get_configured_carp_interface_list of util.inc
-
Can someone put a second pair of eyes on this please -
I am looking at lines 957 and 987 of /etc/inc/util.inc.
if ($carpinterface == "_vip{$vip['uniqid']}") {
and
$iflist["_vip{$vip['uniqid']}"] = $vip['subnet'];
What is "uniqid"? Is there somehow a conversion taking place of "vhid" to "uniqid" in the parsing of config.xml?
Thanks.
-Shahid
-
Forgot to mention that I am looking at 2.2 code.
This was "vhid" in 2.1.5 /etc/inc/utili.inc
-Shahid
-
Ok, I see uniqids got introduced in https://github.com/pfsense/pfsense/commit/89f171b052fbe72aed654d2a1c3d5a24e9bf9902
hmmm… Need to stop tinkering with this since its beyond my understanding. For sure I thought uniqid should show up in config.xml for CARP VIPs but maybe some sort of magic is going on behind the scenes someplace.
-Shahid
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.