• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

What is ['uniqid'] in function get_configured_carp_interface_list of util.inc

Scheduled Pinned Locked Moved HA/CARP/VIPs
3 Posts 1 Posters 1.1k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    ssheikh
    last edited by Jan 24, 2015, 8:55 AM

    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

    1 Reply Last reply Reply Quote 0
    • S Offline
      ssheikh
      last edited by Jan 24, 2015, 9:06 AM

      Forgot to mention that I am looking at 2.2 code.

      This was "vhid" in 2.1.5 /etc/inc/utili.inc

      -Shahid

      1 Reply Last reply Reply Quote 0
      • S Offline
        ssheikh
        last edited by Jan 24, 2015, 5:28 PM

        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

        1 Reply Last reply Reply Quote 0
        3 out of 3
        • First post
          3/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received