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.0k 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
      ssheikh
      last edited by

      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
        ssheikh
        last edited by

        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
          ssheikh
          last edited by

          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
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.