Repository: Azure/WALinuxAgent
Pull request #3078 (2024-03-04 21:30:36)

Add DistroVersion class to compare distro versions
A previous PR added a copy of distuls/version.py as a temporary workaround to use LooseVersion (since it is deprecated and will be removed from Python). This PR replaces that copy with a new class: DistroVersion that implements the same behavior in terms of comparing versions.

The results of some of the comparisons done with LooseVersion/DistroVersion are not always intuitive and can lead to subtle code bugs (e.g. "1" != "1.0" != "1.0.0", etc). There are a couple of places in the code where we use similar comparisons; be careful with those.

Also, we have another class that deals with versions,  FlexibleVersion, with its own behavior. This creates confusion as to what class to use when comparing versions.

I'll do another iteration of this code to merge DistroVersion and FlexibleVersion.




Patch:
diff --git a/azurelinuxagent/common/future.py b/azurelinuxagent/common/future.py
index e9bb7e93..bb914775 100644
--- a/azurelinuxagent/common/future.py
+++ b/azurelinuxagent/common/future.py
@@ -68,16 +68,6 @@ elif sys.version_info[0] == 2:
 else:
     raise ImportError("Unknown python version: {0}".format(sys.version_info))
 
-#
-# distutils has been removed from Python >= 3.12; use the copy from azurelinuxagent instead
-#
-if sys.version_info[0] == 3 and sys.version_info[1] >= 12:
-    from azurelinuxagent.distutils import version
-else:
-    from distutils import version  # pylint: disable=deprecated-module
-Version = version.Version
-LooseVersion = version.LooseVersion
-
 
 def get_linux_distribution(get_full_name, supported_dists):
     """Abstract platform.linux_distribution() call which is deprecated as of
diff --git a/azurelinuxagent/common/osutil/factory.py b/azurelinuxagent/common/osutil/factory.py
index 25a6060a..58afd0af 100644
--- a/azurelinuxagent/common/osutil/factory.py
+++ b/azurelinuxagent/common/osutil/factory.py
@@ -16,10 +16,9 @@
 #
 
 
-from azurelinuxagent.common.future import LooseVersion as Version
-
 import azurelinuxagent.common.logger as logger
 from azurelinuxagent.common.version import DISTRO_NAME, DISTRO_CODE_NAME, DISTRO_VERSION, DISTRO_FULL_NAME
+from azurelinuxagent.common.utils.distro_version import DistroVersion
 from .alpine import AlpineOSUtil
 from .arch import ArchUtil
 from .bigip import BigIpOSUtil
@@ -66,14 +65,14 @@ def _get_osutil(distro_name, distro_code_name, distro_version, distro_full_name)
         return ClearLinuxUtil()
 
     if distro_name == "ubuntu":
-        ubuntu_version = Version(distro_version)
-        if ubuntu_version in [Version("12.04"), Version("12.10")]:
+        ubuntu_version = DistroVersion(distro_version)
+        if ubuntu_version in [DistroVersion("12.04"), DistroVersion("12.10")]:
             return Ubuntu12OSUtil()
-        if ubuntu_version in [Version("14.04"), Version("14.10")]:
+        if ubuntu_version in [DistroVersion("14.04"), DistroVersion("14.10")]:
             return Ubuntu14OSUtil()
-        if ubuntu_version in [Version('16.04'), Version('16.10'), Version('17.04')]:
+        if ubuntu_version in [DistroVersion('16.04'), DistroVersion('16.10'), DistroVersion('17.04')]:
             return Ubuntu16OSUtil()
-        if Version('18.04') <= ubuntu_version <= Version('24.04'):
+        if DistroVersion('18.04') <= ubuntu_version <= DistroVersion('24.04'):
             return Ubuntu18OSUtil()
         if distro_full_name == "Snappy Ubuntu Core":
             return UbuntuSnappyOSUtil()
@@ -91,14 +90,14 @@ def _get_osutil(distro_name, distro_code_name, distro_version, distro_full_name)
 
     if distro_name in ("suse", "sle-micro", "sle_hpc", "sles", "opensuse"):
         if distro_full_name == 'SUSE Linux Enterprise Server' \
-                and Version(distro_version) < Version('12') \
-                or distro_full_name == 'openSUSE' and Version(distro_version) < Version('13.2'):
+                and DistroVersion(distro_version) < DistroVersion('12') \
+                or distro_full_name == 'openSUSE' and DistroVersion(distro_version) < DistroVersion('13.2'):
             return SUSE11OSUtil()
 
         return SUSEOSUtil()
 
     if distro_name == "debian":
-        if "sid" in distro_version or Version(distro_version) > Version("7"):
+        if "sid" in distro_version or DistroVersion(distro_version) > DistroVersion("7"):
             return DebianOSModernUtil()
 
         return DebianOSBaseUtil()
@@ -109,16 +108,15 @@ def _get_osutil(distro_name, distro_code_name, distro_version, distro_full_name)
     # to distinguish between debian and devuan. The new distro.linux_distribution module
     # is able to distinguish between the two.
 
-    if distro_name == "devuan" and Version(distro_version) >= Version("4"):
+    if distro_name == "devuan" and DistroVersion(distro_version) >= DistroVersion("4"):
         return DevuanOSUtil()
         
-
     if distro_name in ("redhat", "rhel", "centos", "oracle", "almalinux",
                        "cloudlinux", "rocky"):
-        if Version(distro_version) < Version("7"):
+        if DistroVersion(distro_version) < DistroVersion("7"):
             return Redhat6xOSUtil()
 
-        if Version(distro_version) >= Version("8.6"):
+        if DistroVersion(distro_version) >= DistroVersion("8.6"):
             return RedhatOSModernUtil()
 
         return RedhatOSUtil()
diff --git a/azurelinuxagent/common/utils/distro_version.py b/azurelinuxagent/common/utils/distro_version.py
new file mode 100644
index 00000000..8a447f6b
--- /dev/null
+++ b/azurelinuxagent/common/utils/distro_version.py
@@ -0,0 +1,115 @@
+# Microsoft Azure Linux Agent
+#
+# Copyright 2020 Microsoft Corporation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# Requires Python 2.6+ and Openssl 1.0+
+#
+
+"""
+"""
+
+import re
+
+
+class DistroVersion(object):
+    """
+        Distro versions (as exposed by azurelinuxagent.common.version.DISTRO_VERSION) can be very arbitrary:
+
+            9.2.0
+            0.0.0.0_99496
+            10.0_RC2
+            1.4-rolling-202402090309
+            2015.11-git
+            2023
+            2023.02.1
+            2.1-systemd-rc1
+            2308a
+            3.11.2-dev20240212t1512utc-autotag
+            3.11.2-rc.1
+            3.1.22-1.8
+            8.1.3-p1-24838
+            8.1.3-p8-khilan.unadkat-08415223c9a99546b566df0dbc683ffa378cfd77
+            9.13.1P8X1
+            9.13.1RC1
+            9.2.0-beta1-25971
+            a
+            ArrayOS
+            bookworm/sid
+            Clawhammer__9.14.0
+            FFFF
+            h
+            JNPR-11.0-20200922.4042921_build
+            lighthouse-23.10.0
+            Lighthouse__9.13.1
+            linux-os-31700
+            Mightysquirrel__9.15.0
+            n/a
+            NAME="SLES"
+            ngfw-6.10.13.26655.fips.2
+            r11427-9ce6aa9d8d
+            SonicOSX 7.1.1-7047-R3003-HF24239
+            unstable
+            vsbc-x86_pi3-6.10.3
+            vsbc-x86_pi3-6.12.2pre02
+
+        The DistroVersion allows to compare these versions following an strategy similar to the now deprecated distutils.LooseVersion:
+        versions consist of a series of sequences of numbers, alphabetic characters, or any other characters, optionally separated dots
+        (the dots themselves are stripped out). When comparing versions the numeric components are compared numerically, while the
+        other  components are compared lexicographically.
+
+        NOTE: For entities with simpler version schemes (e.g. extensions and the Agent), use FlexibleVersion.
+
+    """
+    def __init__(self, version):
+        self._version = version
+        self._fragments = [
+            int(x) if DistroVersion._number_re.match(x) else x
+            for x in DistroVersion._fragment_re.split(self._version) if x != '' and x != '.'
+        ]
+
+    _fragment_re = re.compile(r'(\d+|[a-z]+|\.)', re.IGNORECASE)
+
+    _number_re = re.compile(r'\d+')
+
+    def __str__(self):
+        return self._version
+
+    def __repr__(self):
+        return str(self)
+
+    def __eq__(self, other):
+        return self._compare(other) == 0
+
+    def __lt__(self, other):
+        return self._compare(other) < 0
+
+    def __le__(self, other):
+        return self._compare(other) <= 0
+
+    def __gt__(self, other):
+        return self._compare(other) > 0
+
+    def __ge__(self, other):
+        return self._compare(other) >= 0
+
+    def _compare(self, other):
+        if isinstance(other, str):
+            other = DistroVersion(other)
+
+        if self._fragments < other._fragments:
+            return -1
+        if self._fragments > other._fragments:
+            return 1
+        return 0
diff --git a/azurelinuxagent/common/utils/flexible_version.py b/azurelinuxagent/common/utils/flexible_version.py
index 633fe771..83762eb8 100644
--- a/azurelinuxagent/common/utils/flexible_version.py
+++ b/azurelinuxagent/common/utils/flexible_version.py
@@ -17,13 +17,16 @@
 # Requires Python 2.6+ and Openssl 1.0+
 #
 
-from azurelinuxagent.common.future import Version
 import re
 
 
-class FlexibleVersion(Version):
+class FlexibleVersion(object):
     """
-    A more flexible implementation of distutils.version.StrictVersion
+    A more flexible implementation of distutils.version.StrictVersion.
+
+    NOTE: Use this class for generic version comparisons, e.g. extension and Agent
+          versions. Distro versions can be very arbitrary and should be handled
+          using the DistroVersion class.
 
     The implementation allows to specify:
     - an arbitrary number of version numbers:
@@ -41,8 +44,6 @@ class FlexibleVersion(Version):
     """
 
     def __init__(self, vstring=None, sep='.', prerel_tags=('alpha', 'beta', 'rc')):
-        Version.__init__(self)
-
         if sep is None:
             sep = '.'
         if prerel_tags is None:
diff --git a/azurelinuxagent/distutils/__init__.py b/azurelinuxagent/distutils/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/azurelinuxagent/distutils/version.py b/azurelinuxagent/distutils/version.py
deleted file mode 100644
index acb8b0a5..00000000
--- a/azurelinuxagent/distutils/version.py
+++ /dev/null
@@ -1,236 +0,0 @@
-#
-# A copy of distutils/version.py as Python 3.8 (minus the StrictVersion class)
-#
-# Implements multiple version numbering conventions for the
-# Python Module Distribution Utilities.
-#
-# $Id$
-#
-
-"""Provides classes to represent module version numbers (one class for
-each style of version numbering).  There are currently two such classes
-implemented: StrictVersion and LooseVersion.
-
-Every version number class implements the following interface:
-  * the 'parse' method takes a string and parses it to some internal
-    representation; if the string is an invalid version number,
-    'parse' raises a ValueError exception
-  * the class constructor takes an optional string argument which,
-    if supplied, is passed to 'parse'
-  * __str__ reconstructs the string that was passed to 'parse' (or
-    an equivalent string -- ie. one that will generate an equivalent
-    version number instance)
-  * __repr__ generates Python code to recreate the version number instance
-  * _cmp compares the current instance with either another instance
-    of the same class or a string (which will be parsed to an instance
-    of the same class, thus must follow the same rules)
-"""
-
-import re
-
-# E1101: Instance of 'Version' has no '_cmp' member (no-member)
-# pylint: disable=no-member
-
-
-class Version:
-    """Abstract base class for version numbering classes.  Just provides
-    constructor (__init__) and reproducer (__repr__), because those
-    seem to be the same for all version numbering classes; and route
-    rich comparisons to _cmp.
-    """
-
-    def __init__(self, vstring=None):
-        if vstring:
-            self.parse(vstring)
-
-    def __repr__(self):
-        return "%s ('%s')" % (self.__class__.__name__, str(self))
-
-    def __eq__(self, other):
-        c = self._cmp(other)
-        if c is NotImplemented:
-            return c
-        return c == 0
-
-    def __lt__(self, other):
-        c = self._cmp(other)
-        if c is NotImplemented:
-            return c
-        return c < 0
-
-    def __le__(self, other):
-        c = self._cmp(other)
-        if c is NotImplemented:
-            return c
-        return c <= 0
-
-    def __gt__(self, other):
-        c = self._cmp(other)
-        if c is NotImplemented:
-            return c
-        return c > 0
-
-    def __ge__(self, other):
-        c = self._cmp(other)
-        if c is NotImplemented:
-            return c
-        return c >= 0
-
-
-# Interface for version-number classes -- must be implemented
-# by the following classes (the concrete ones -- Version should
-# be treated as an abstract class).
-#    __init__ (string) - create and take same action as 'parse'
-#                        (string parameter is optional)
-#    parse (string)    - convert a string representation to whatever
-#                        internal representation is appropriate for
-#                        this style of version numbering
-#    __str__ (self)    - convert back to a string; should be very similar
-#                        (if not identical to) the string supplied to parse
-#    __repr__ (self)   - generate Python code to recreate
-#                        the instance
-#    _cmp (self, other) - compare two version numbers ('other' may
-#                        be an unparsed version string, or another
-#                        instance of your version class)
-
-
-# The rules according to Greg Stein:
-# 1) a version number has 1 or more numbers separated by a period or by
-#    sequences of letters. If only periods, then these are compared
-#    left-to-right to determine an ordering.
-# 2) sequences of letters are part of the tuple for comparison and are
-#    compared lexicographically
-# 3) recognize the numeric components may have leading zeroes
-#
-# The LooseVersion class below implements these rules: a version number
-# string is split up into a tuple of integer and string components, and
-# comparison is a simple tuple comparison.  This means that version
-# numbers behave in a predictable and obvious way, but a way that might
-# not necessarily be how people *want* version numbers to behave.  There
-# wouldn't be a problem if people could stick to purely numeric version
-# numbers: just split on period and compare the numbers as tuples.
-# However, people insist on putting letters into their version numbers;
-# the most common purpose seems to be:
-#   - indicating a "pre-release" version
-#     ('alpha', 'beta', 'a', 'b', 'pre', 'p')
-#   - indicating a post-release patch ('p', 'pl', 'patch')
-# but of course this can't cover all version number schemes, and there's
-# no way to know what a programmer means without asking him.
-#
-# The problem is what to do with letters (and other non-numeric
-# characters) in a version number.  The current implementation does the
-# obvious and predictable thing: keep them as strings and compare
-# lexically within a tuple comparison.  This has the desired effect if
-# an appended letter sequence implies something "post-release":
-# eg. "0.99" < "0.99pl14" < "1.0", and "5.001" < "5.001m" < "5.002".
-#
-# However, if letters in a version number imply a pre-release version,
-# the "obvious" thing isn't correct.  Eg. you would expect that
-# "1.5.1" < "1.5.2a2" < "1.5.2", but under the tuple/lexical comparison
-# implemented here, this just isn't so.
-#
-# Two possible solutions come to mind.  The first is to tie the
-# comparison algorithm to a particular set of semantic rules, as has
-# been done in the StrictVersion class above.  This works great as long
-# as everyone can go along with bondage and discipline.  Hopefully a
-# (large) subset of Python module programmers will agree that the
-# particular flavour of bondage and discipline provided by StrictVersion
-# provides enough benefit to be worth using, and will submit their
-# version numbering scheme to its domination.  The free-thinking
-# anarchists in the lot will never give in, though, and something needs
-# to be done to accommodate them.
-#
-# Perhaps a "moderately strict" version class could be implemented that
-# lets almost anything slide (syntactically), and makes some heuristic
-# assumptions about non-digits in version number strings.  This could
-# sink into special-case-hell, though; if I was as talented and
-# idiosyncratic as Larry Wall, I'd go ahead and implement a class that
-# somehow knows that "1.2.1" < "1.2.2a2" < "1.2.2" < "1.2.2pl3", and is
-# just as happy dealing with things like "2g6" and "1.13++".  I don't
-# think I'm smart enough to do it right though.
-#
-# In any case, I've coded the test suite for this module (see
-# ../test/test_version.py) specifically to fail on things like comparing
-# "1.2a2" and "1.2".  That's not because the *code* is doing anything
-# wrong, it's because the simple, obvious design doesn't match my
-# complicated, hairy expectations for real-world version numbers.  It
-# would be a snap to fix the test suite to say, "Yep, LooseVersion does
-# the Right Thing" (ie. the code matches the conception).  But I'd rather
-# have a conception that matches common notions about version numbers.
-
-# W0231: __init__ method from base class 'Version' is not called (super-init-not-called)
-# R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
-# pylint: disable=super-init-not-called, inconsistent-return-statements
-
-class LooseVersion (Version):
-
-    """Version numbering for anarchists and software realists.
-    Implements the standard interface for version number classes as
-    described above.  A version number consists of a series of numbers,
-    separated by either periods or strings of letters.  When comparing
-    version numbers, the numeric components will be compared
-    numerically, and the alphabetic components lexically.  The following
-    are all valid version numbers, in no particular order:
-
-        1.5.1
-        1.5.2b2
-        161
-        3.10a
-        8.02
-        3.4j
-        1996.07.12
-        3.2.pl0
-        3.1.1.6
-        2g6
-        11g
-        0.960923
-        2.2beta29
-        1.13++
-        5.5.kw
-        2.0b1pl0
-
-    In fact, there is no such thing as an invalid version number under
-    this scheme; the rules for comparison are simple and predictable,
-    but may not always give the results you want (for some definition
-    of "want").
-    """
-
-    component_re = re.compile(r'(\d+|[a-z]+|\.)', re.VERBOSE)
-
-    def __init__(self, vstring=None):
-        if vstring:
-            self.parse(vstring)
-
-    def parse(self, vstring):
-        # I've given up on thinking I can reconstruct the version string
-        # from the parsed tuple -- so I just store the string here for
-        # use by __str__
-        self.vstring = vstring
-        components = [x for x in self.component_re.split(vstring) if x and x != '.']
-        for i, obj in enumerate(components):
-            try:
-                components[i] = int(obj)
-            except ValueError:
-                pass
-
-        self.version = components
-
-    def __str__(self):
-        return self.vstring
-
-    def __repr__(self):
-        return "LooseVersion ('%s')" % str(self)
-
-    def _cmp(self, other):
-        if isinstance(other, str):
-            other = LooseVersion(other)
-
-        if self.version == other.version:
-            return 0
-        if self.version < other.version:
-            return -1
-        if self.version > other.version:
-            return 1
-
-
-# end class LooseVersion
diff --git a/azurelinuxagent/ga/exthandlers.py b/azurelinuxagent/ga/exthandlers.py
index 564128fa..3499b706 100644
--- a/azurelinuxagent/ga/exthandlers.py
+++ b/azurelinuxagent/ga/exthandlers.py
@@ -27,7 +27,6 @@ import stat
 import tempfile
 import time
 import zipfile
-from azurelinuxagent.common.future import LooseVersion as Version
 from collections import defaultdict
 from functools import partial
 
@@ -2250,7 +2249,7 @@ class HandlerManifest(object):
         This is not effective after nov 30th.
         """
         if ExtHandlerInstance.is_azuremonitorlinuxagent(extension_name):
-            if Version(str_version) < Version("1.12"):
+            if FlexibleVersion(str_version) < FlexibleVersion("1.12"):
                 test_man = {
                     "resourceLimits": {
                         "services": [
diff --git a/azurelinuxagent/pa/deprovision/factory.py b/azurelinuxagent/pa/deprovision/factory.py
index 321c982c..6da78a2d 100644
--- a/azurelinuxagent/pa/deprovision/factory.py
+++ b/azurelinuxagent/pa/deprovision/factory.py
@@ -15,9 +15,9 @@
 # Requires Python 2.6+ and Openssl 1.0+
 #
 
-from azurelinuxagent.common.future import LooseVersion as Version
 
 from azurelinuxagent.common.version import DISTRO_NAME, DISTRO_VERSION, DISTRO_FULL_NAME
+from azurelinuxagent.common.utils.distro_version import DistroVersion
 from .arch import ArchDeprovisionHandler
 from .clearlinux import ClearLinuxDeprovisionHandler
 from .coreos import CoreOSDeprovisionHandler
@@ -31,7 +31,7 @@ def get_deprovision_handler(distro_name=DISTRO_NAME,
     if distro_name == "arch":
         return ArchDeprovisionHandler()
     if distro_name == "ubuntu":
-        if Version(distro_version) >= Version('18.04'):
+        if DistroVersion(distro_version) >= DistroVersion('18.04'):
             return Ubuntu1804DeprovisionHandler()
         else:
             return UbuntuDeprovisionHandler()
diff --git a/azurelinuxagent/pa/rdma/factory.py b/azurelinuxagent/pa/rdma/factory.py
index ac0dd763..34034818 100644
--- a/azurelinuxagent/pa/rdma/factory.py
+++ b/azurelinuxagent/pa/rdma/factory.py
@@ -15,10 +15,10 @@
 # Requires Python 2.6+ and Openssl 1.0+
 #
 
-from azurelinuxagent.common.future import LooseVersion as Version
 import azurelinuxagent.common.logger as logger
 from azurelinuxagent.pa.rdma.rdma import RDMAHandler
 from azurelinuxagent.common.version import DISTRO_FULL_NAME, DISTRO_VERSION
+from azurelinuxagent.common.utils.distro_version import DistroVersion
 from .centos import CentOSRDMAHandler
 from .suse import SUSERDMAHandler
 from .ubuntu import UbuntuRDMAHandler
@@ -33,7 +33,7 @@ def get_rdma_handler(
             (distro_full_name == 'SUSE Linux Enterprise Server' or
              distro_full_name == 'SLES' or
              distro_full_name == 'SLE_HPC') and
-            Version(distro_version) > Version('11')
+            DistroVersion(distro_version) > DistroVersion('11')
     ):
         return SUSERDMAHandler()
 
diff --git a/azurelinuxagent/pa/rdma/suse.py b/azurelinuxagent/pa/rdma/suse.py
index 4de6cf95..347f3eee 100644
--- a/azurelinuxagent/pa/rdma/suse.py
+++ b/azurelinuxagent/pa/rdma/suse.py
@@ -23,8 +23,7 @@ import azurelinuxagent.common.utils.shellutil as shellutil
 
 from azurelinuxagent.pa.rdma.rdma import RDMAHandler
 from azurelinuxagent.common.version import DISTRO_VERSION
-
-from azurelinuxagent.common.future import LooseVersion as Version
+from azurelinuxagent.common.utils.distro_version import DistroVersion
 
 
 class SUSERDMAHandler(RDMAHandler):
@@ -32,7 +31,7 @@ class SUSERDMAHandler(RDMAHandler):
     def install_driver(self):  # pylint: disable=R1710
         """Install the appropriate driver package for the RDMA firmware"""
 
-        if Version(DISTRO_VERSION) >= Version('15'):
+        if DistroVersion(DISTRO_VERSION) >= DistroVersion('15'):
             msg = 'SLE 15 and later only supports PCI pass through, no '
             msg += 'special driver needed for IB interface'
             logger.info(msg)


Test patch:
diff --git a/tests/common/utils/test_distro_version.py b/tests/common/utils/test_distro_version.py
new file mode 100644
index 00000000..bc279377
--- /dev/null
+++ b/tests/common/utils/test_distro_version.py
@@ -0,0 +1,128 @@
+import os
+import sys
+import unittest
+
+from tests.lib.tools import AgentTestCase, data_dir
+
+from azurelinuxagent.common.utils.distro_version import DistroVersion
+from azurelinuxagent.common.utils.flexible_version import FlexibleVersion
+
+
+class TestDistroVersion(AgentTestCase):
+
+    def test_it_should_implement_all_comparison_operators(self):
+        self.assertTrue(DistroVersion("1.0.0") < DistroVersion("1.1.0"))
+        self.assertTrue(DistroVersion("1.0.0") <= DistroVersion("1.0.0"))
+        self.assertTrue(DistroVersion("1.0.0") <= DistroVersion("1.1.0"))
+
+        self.assertTrue(DistroVersion("1.1.0") > DistroVersion("1.0.0"))
+        self.assertTrue(DistroVersion("1.1.0") >= DistroVersion("1.1.0"))
+        self.assertTrue(DistroVersion("1.1.0") >= DistroVersion("1.0.0"))
+
+        self.assertTrue(DistroVersion("1.1.0") != DistroVersion("1.0.0"))
+        self.assertTrue(DistroVersion("1.1.0") == DistroVersion("1.1.0"))
+
+    def test_it_should_compare_digit_sequences_numerically(self):
+        self.assertTrue(DistroVersion("2.0.0") < DistroVersion("10.0.0"))
+        self.assertTrue(DistroVersion("1.2.0") < DistroVersion("1.10.0"))
+        self.assertTrue(DistroVersion("1.0.2") < DistroVersion("1.0.10"))
+        self.assertTrue(DistroVersion("2.0.rc.2") < DistroVersion("2.0.rc.10"))
+        self.assertTrue(DistroVersion("2.0.rc2") < DistroVersion("2.0.rc10"))
+
+    def test_it_should_compare_non_digit_sequences_lexicographically(self):
+        self.assertTrue(DistroVersion("2.0.alpha") < DistroVersion("2.0.beta"))
+        self.assertTrue(DistroVersion("2.0.alpha.2") < DistroVersion("2.0.beta.1"))
+        self.assertTrue(DistroVersion("alpha") < DistroVersion("beta"))
+        self.assertTrue(DistroVersion("<1.0.0>") < DistroVersion(">1.0.0>"))
+
+    def test_it_should_parse_common_distro_versions(self):
+        """
+        Test that DistroVersion can parse the versions given by azurelinuxagent.common.version.DISTRO_VERSION
+        (the values in distro_versions.txt are current values from telemetry.)
+        """
+        data_file = os.path.join(data_dir, "distro_versions.txt")
+
+        with open(data_file, "r") as f:
+            for line in f:
+                line = line.rstrip()
+                version = DistroVersion(line)
+                self.assertNotEqual([], version._fragments)
+
+        self.assertEqual([], DistroVersion("")._fragments)
+
+    def test_it_should_compare_commonly_used_versions(self):
+        """
+        Test that DistroVersion does some common comparisons correctly.
+        """
+        self.assertTrue(DistroVersion("1.0.0") < DistroVersion("2.0.0."))
+        self.assertTrue(DistroVersion("1.0.0") < DistroVersion("1.1.0"))
+        self.assertTrue(DistroVersion("1.0.0") < DistroVersion("1.0.1"))
+
+        self.assertTrue(DistroVersion("1.0.0") == DistroVersion("1.0.0"))
+        self.assertTrue(DistroVersion("1.0.0") != DistroVersion("2.0.0"))
+
+        self.assertTrue(DistroVersion("13") != DistroVersion("13.0"))
+        self.assertTrue(DistroVersion("13") < DistroVersion("13.0"))
+        self.assertTrue(DistroVersion("13") < DistroVersion("13.1"))
+
+        ubuntu_version = DistroVersion("16.10")
+        self.assertTrue(ubuntu_version in [DistroVersion('16.04'), DistroVersion('16.10'), DistroVersion('17.04')])
+
+        ubuntu_version = DistroVersion("20.10")
+        self.assertTrue(DistroVersion('18.04') <= ubuntu_version <= DistroVersion('24.04'))
+
+        redhat_version = DistroVersion("7.9")
+        self.assertTrue(DistroVersion('7') <= redhat_version <= DistroVersion('9'))
+
+        self.assertTrue(DistroVersion("1.0") < DistroVersion("1.1"))
+        self.assertTrue(DistroVersion("1.9") < DistroVersion("1.10"))
+        self.assertTrue(DistroVersion("1.9.9") < DistroVersion("1.10.0"))
+        self.assertTrue(DistroVersion("1.0.0.0") < DistroVersion("1.2.0.0"))
+
+        self.assertTrue(DistroVersion("1.0") <= DistroVersion("1.1"))
+        self.assertTrue(DistroVersion("1.1") > DistroVersion("1.0"))
+        self.assertTrue(DistroVersion("1.1") >= DistroVersion("1.0"))
+
+        self.assertTrue(DistroVersion("1.0") == DistroVersion("1.0"))
+        self.assertTrue(DistroVersion("1.0") >= DistroVersion("1.0"))
+        self.assertTrue(DistroVersion("1.0") <= DistroVersion("1.0"))
+
+    def test_uncommon_versions(self):
+        """
+        The comparisons in these tests may occur in prod, and they not always produce a result that makes sense.
+        More than expressing the desired behavior, these tests are meant to document the current behavior.
+        """
+        self.assertTrue(DistroVersion("2") != DistroVersion("2.0"))
+        self.assertTrue(DistroVersion("2") < DistroVersion("2.0"))
+
+        self.assertTrue(DistroVersion("10.0_RC2") != DistroVersion("10.0RC2"))
+        self.assertTrue(DistroVersion("10.0_RC2")._fragments == [10, 0, '_', 'RC', 2])
+        self.assertTrue(DistroVersion("10.0RC2")._fragments == [10, 0, 'RC', 2])
+
+        self.assertTrue(DistroVersion("1.4-rolling") < DistroVersion("1.4-rolling-202402090309"))
+
+        self.assertTrue(DistroVersion("2023") < DistroVersion("2023.02.1"))
+
+        self.assertTrue(DistroVersion("2.1-systemd-alpha") < DistroVersion("2.1-systemd-rc"))
+        self.assertTrue(DistroVersion("2308a") < DistroVersion("2308beta"))
+        self.assertTrue(DistroVersion("6.0.0.beta4") < DistroVersion("6.0.0.beta5"))
+        self.assertTrue(DistroVersion("9.13.1P8X1") < DistroVersion("9.13.1RC1"))
+        self.assertTrue(DistroVersion("a") < DistroVersion("rc"))
+        self.assertTrue(DistroVersion("Clawhammer__9.14.0"), DistroVersion("Clawhammer__9.14.1"))
+        self.assertTrue(DistroVersion("FFFF") < DistroVersion("h"))
+        self.assertTrue(DistroVersion("None") < DistroVersion("n/a"))
+
+        if sys.version_info[0] == 2:
+            self.assertTrue(DistroVersion("3.11.2-rc.1") < DistroVersion("3.11.2-rc.a"))
+        else:
+            # TypeError: '<' not supported between instances of 'int' and 'str'
+            with self.assertRaises(TypeError):
+                _ = DistroVersion("3.11.2-rc.1") < DistroVersion("3.11.2-rc.a")
+
+        # AttributeError: 'FlexibleVersion' object has no attribute '_fragments'
+        with self.assertRaises(AttributeError):
+            _ = DistroVersion("1.0.0.0") == FlexibleVersion("1.0.0.0")
+
+
+if __name__ == '__main__':
+    unittest.main()
diff --git a/tests/common/utils/test_text_util.py b/tests/common/utils/test_text_util.py
index a9f8a9df..531f0375 100644
--- a/tests/common/utils/test_text_util.py
+++ b/tests/common/utils/test_text_util.py
@@ -17,7 +17,6 @@
 
 import hashlib
 import unittest
-from azurelinuxagent.common.future import LooseVersion as Version
 
 import azurelinuxagent.common.utils.textutil as textutil
 from azurelinuxagent.common.future import ustr
@@ -68,23 +67,6 @@ class TestTextUtil(AgentTestCase):
         data = textutil.remove_bom(data)
         self.assertEqual(u"  ", data)
 
-    def test_version_compare(self):
-        self.assertTrue(Version("1.0") < Version("1.1"))
-        self.assertTrue(Version("1.9") < Version("1.10"))
-        self.assertTrue(Version("1.9.9") < Version("1.10.0"))
-        self.assertTrue(Version("1.0.0.0") < Version("1.2.0.0"))
-
-        self.assertTrue(Version("1.0") <= Version("1.1"))
-        self.assertTrue(Version("1.1") > Version("1.0"))
-        self.assertTrue(Version("1.1") >= Version("1.0"))
-
-        self.assertTrue(Version("1.0") == Version("1.0"))
-        self.assertTrue(Version("1.0") >= Version("1.0"))
-        self.assertTrue(Version("1.0") <= Version("1.0"))
-
-        self.assertTrue(Version("1.9") < "1.10")
-        self.assertTrue("1.9" < Version("1.10"))
-
     def test_get_bytes_from_pem(self):
         content = ("-----BEGIN CERTIFICATE-----\n"
                    "certificate\n"
diff --git a/tests/data/distro_versions.txt b/tests/data/distro_versions.txt
new file mode 100644
index 00000000..aa0bb3cb
--- /dev/null
+++ b/tests/data/distro_versions.txt
@@ -0,0 +1,1501 @@
+#
+0.0.0.0_99466
+0.0.0.0_99492
+0.0.0.0_99494
+0.0.0.0_99496
+0.0.0.0_99500
+0.0.0.0_99504
+0.0.0.0_99506
+0.0.0.0_99530
+0.0.0.0_99533
+0.0.0.0_99539
+0.0.0.0_99541
+0.0.0.0_99543
+0.0.0.0_99560
+0.0.0.0_99562
+0.0.0.0_99570
+0.0.0.0_99572
+0.0.0.0_99580
+0.0.0.0_99587
+0.0.0.0_99589
+0.0.0.0_99591
+0.0.0.0_99595
+0.0.0.0_99597
+0.0.0.0_99634
+0.0.0.0_99637
+0.0.0.0_99639
+0.0.0.0_99646
+0.0.0.0_99660
+0.0.0.0_99664
+0.0.0.0_99665
+0.0.0.0_99669
+0.0.0.0_99681
+0.0.0.0_99696
+0.0.0.0_99702
+0.0.0.0_99704
+0.0.0.0_99710
+0.0.0.0_99815
+0.0.0.0_99824
+0.0.0.0_99826
+0.0.0.0_99828
+0.0.0.0_99835
+0.0.0.0_99839
+0.0.0.0_99841
+0.10.1
+0.11.1
+0.12.1
+0.13.1
+0.14.1
+0.6.1
+0.6.2
+0.6.3
+0.8.1
+0.9.1
+0.999.0.0-1093544
+1.0
+10
+10.0.1.0
+10.0.2.0
+10.0.3.0
+10.0.3.1
+10.0.4.0
+10.0.5.0
+10.0.6.0
+10.0.7.0
+10.0_RC2
+10.1
+10.10
+10.11
+10.12
+10.13
+10.2
+1.0.20210807
+1.0.20210928
+1.0.20211027
+1.0.20211230
+1.0.20220122
+1.0.20220127
+1.0.20220307
+1.0.20220331
+1.0.20220504
+1.0.20220521
+1.0.20220608
+1.0.20220709
+1.0.20220805
+1.0.20220817
+1.0.20220909
+1.0.20220926
+1.0.20221007
+1.0.20221028
+1.0.20221119
+1.0.20221202
+1.0.20221220
+1.0.20230106
+1.0.20230123
+1.0.20230208
+1.0.20230225
+1.0.20230308
+1.0.20230330
+1.0.20230414
+1.0.20230427
+1.0.20230518
+1.0.20230607
+1.0.20230615
+1.0.20230713
+1.0.20230811
+10.3
+10.4
+10.5
+10.6
+1063
+1069
+10.7
+10.8
+1084
+1086
+10.9
+11
+11.0.108.0
+11.0.93.0
+11.0.96.0
+11.1
+11.2
+11.3
+11.33
+11.4
+11.7
+11.8
+11.9
+11-updates
+12
+12.0
+12.04
+12.1
+12.10
+12.10.1
+12.10.2
+12.2
+12.3
+12.4
+12.5
+12.7.2
+1.27.5
+12.8
+12.8.2
+12.9
+12.9.2
+12.9.3
+12.9.4
+12-updates
+13
+13.0
+13.1
+13.10
+13.2
+13.3
+1353.7.0
+14.0
+14.04
+14.1
+14.1.0.10
+14.10.1.10
+14.10.1.11
+14.11.1.10
+14.12.1.10
+14.12.1.11
+14.13.1.10
+14.14.1.10
+14.15.1.10
+14.16.1.10
+14.2
+14.2.0.0
+14.2.0.20
+14.3.0.10
+14.3.0.20
+14.3.0.21
+14.4.0.10
+14.4.0.16
+14.4.1.10
+14.5.0.11
+14.5.0.20
+14.6.0.10
+14.6.0.20
+14.6.0.30
+14.6.1.10
+14.6.1.11
+14.7.0.20
+14.7.0.30
+14.7.0.40
+14.7.0.41
+14.7.0.50
+14.7.0.60
+14.7.1.100
+14.7.1.20
+14.7.1.31
+14.7.1.40
+14.7.1.426
+14.7.1.50
+14.7.1.60
+14.7.1.61
+14.7.1.62
+14.7.1.70
+14.7.1.71
+14.7.1.80
+14.7.1.90
+14.8.1.10
+14.9.1.10
+14.9.1.11
+1.4-rolling-202402090309
+1.4-rolling-202402241557
+15
+15.0
+15.1
+15.2
+15.3
+153.1
+15.4
+15.5
+15.6
+1576.5.0
+16.04
+16.10
+16.1-11023
+16.1-11047
+16.1-11052
+16.1-11057
+16.1-11065
+16.1-11066
+16.1-11067
+16.1-11079
+1688.5.3
+17.04
+17.10
+17.3
+18
+18.04
+18.06.4
+18.10
+1855.4.0
+1883.1.0
+19
+19.04
+19.10
+1911.1.1
+1911.3.0
+2
+2.0
+20
+20.04
+20.10
+20.10.10
+20.10.12
+20.10.13
+20.10.9
+2015.11-git
+2019.2
+2.0.20220124
+2.0.20220226
+2.0.20220325
+2.0.20220403
+2.0.20220409
+2.0.20220426
+2.0.20220527
+2.0.20220617
+2.0.20220625
+2.0.20220713
+2.0.20220731
+2.0.20220804
+2.0.20220824
+2.0.20220909
+2.0.20220916
+2.0.20220921
+2.0.20221004
+2.0.20221010
+2.0.20221026
+2.0.20221029
+2.0.20221110
+2.0.20221122
+2.0.20221203
+2.0.20221215
+2.0.20221218
+2.0.20221222
+2.0.20230107
+2.0.20230126
+2.0.20230208
+2.0.20230212
+2.0.20230218
+2.0.20230303
+2.0.20230321
+2.0.20230407
+2.0.20230410
+2.0.20230426
+2.0.20230518
+2.0.20230526
+2.0.20230609
+2.0.20230611
+2.0.20230621
+2.0.20230630
+2.0.20230721
+2.0.20230805
+2.0.20230811
+2.0.20230823
+2.0.20230904
+2.0.20230924
+2.0.20231004
+2.0.20231101
+2.0.20231106
+2.0.20231115
+2.0.20231130
+2.0.20240111
+2.0.20240112
+2.0.20240117
+2.0.20240123
+2.0.20240202
+2.0.20240208
+2.0.20240209
+2.0.20240211
+2.0.20240212
+2.0.20240213
+2.0.20240214
+2.0.20240215
+2.0.20240216
+2.0.20240217
+2.0.20240218
+2.0.20240219
+2.0.20240220
+2.0.20240221
+2.0.20240222
+2.0.20240223
+2.0.20240224
+2.0.20240225
+2.0.20240226
+2.0.20240227
+2.0.20240228
+2.0.20240229
+2021.1
+2021.4
+2022.2
+2022.3
+2022.4
+2023
+2023.02.1
+2023.1
+2023.2
+2023.3
+2023.4
+2023.5.0
+2024.1
+2.1
+2.10
+21.04
+2.1.1
+2.11
+21.10
+2.1.2
+2.12
+2.1.3
+2.13
+21.3
+2135.4.0
+2.14
+2.15
+2.16
+2.17
+2.18
+2.19
+2191.5.0
+2.1-systemd-rc1
+2.2
+22
+2.2.0
+22.03
+22.04
+2.2.1
+2.21
+22.10
+22.11
+22.1.10_4
+22.1.4_1
+2.22
+2.26
+22.7.11_1
+22.7_4
+22.7.9_3
+2.3
+23
+2.30
+2303.3.0
+23.04
+23.05
+2308a
+2308b
+2.31
+23.10
+23.10.2
+23.11
+23.1.11
+23.1.11_2
+23.1.1_2
+23.1.2
+23.1_6
+23.1.7_3
+23.1.8
+23.4.2_4
+2345.3.0
+2345.3.1
+23.7.10_1
+23.7.11
+23.7.12
+23.7.12_5
+23.7.1_3
+23.7.4
+23.7.5
+23.7.6
+23.7.9
+2.3.91
+2.4
+24
+24.04
+24.05
+24.1.1
+24.1_1
+2411.1.0
+2411.1.1
+24.1.2
+24.1.2_1
+2430.0.0
+2466.0.0
+2492.0.0
+2.5
+2512.1.0
+2512.2.0
+2512.3.0
+2512.4.0
+2512.5.0
+2513.0.0
+2513.0.1
+2513.1.0
+2513.2.0
+2513.3.0
+2.5.4
+2.5-5155
+2.5-5193
+2.5-5201
+2.5-5202
+2.5-5204
+2592.0.0
+2.6
+2605.0.0
+2605.1.0
+2605.10.0
+2605.11.0
+2605.12.0
+2605.2.0
+2605.3.0
+2605.4.0
+2605.5.0
+2605.6.0
+2605.7.0
+2605.8.0
+2605.9.0
+2632.0.0
+2632.1.0
+2643.0.0
+2643.1.0
+2643.1.1
+2661.0.0
+2671.0.0
+2697.0.0
+2705.0.0
+2705.1.0
+2705.1.1
+2705.1.2
+2723.0.0
+2748.0.0
+2765.0.0
+2765.1.0
+2765.2.0
+2765.2.1
+2765.2.2
+2765.2.3
+2765.2.4
+2765.2.5
+2765.2.6
+2783.0.0
+2.8
+2801.0.0
+2801.0.1
+2801.1.0
+2823.0.0
+2823.1.0
+2823.1.1
+2823.1.2
+2823.1.3
+2857.0.0
+2879.0.0
+2879.0.1
+2.9
+29
+2905.0.0
+2905.1.0
+2905.2.0
+2905.2.1
+2905.2.2
+2905.2.3
+2905.2.4
+2905.2.5
+2905.2.6
+2920.0.0
+2920.1.0
+2942.0.0
+2942.1.0
+2942.1.1
+2942.1.2
+2955.0.0
+2969.0.0
+2983.0.0
+2983.1.0
+2983.1.1
+2983.1.2
+2983.2.0
+2983.2.1
+3
+3.0
+3.0.0.448
+3.0.0.480
+3005.0.0
+3005.0.1
+3.0.310-6230
+3.0.310-6235
+3.0.310-6240
+3.0.310-6242
+3.0.310-6250
+3.0.310-6252
+3.0.310-6264
+3033.0.0
+3033.1.0
+3033.1.1
+3033.2.0
+3033.2.1
+3033.2.2
+3033.2.3
+3033.2.4
+3033.3.0
+3033.3.1
+3033.3.10
+3033.3.11
+3033.3.12
+3033.3.13
+3033.3.14
+3033.3.15
+3033.3.16
+3033.3.17
+3033.3.18
+3033.3.2
+3033.3.3
+3033.3.4
+3033.3.5
+3033.3.6
+3033.3.7
+3033.3.8
+3033.3.9
+3046.0.0
+3066.0.0
+3066.1.0
+3066.1.1
+3066.1.2
+3.10.3
+3.11.0
+3.11.0-20240102t2200edt-tagged
+3.11.2-dev20240209t1755utc-autotag
+3.11.2-dev20240212t1512utc-autotag
+3.11.2-dev20240212t2004utc-autotag
+3.11.2-dev20240212t2307utc-autotag
+3.11.2-dev20240213t0602utc-autotag
+3.11.2-dev20240214t1413utc-autotag
+3.11.2-rc.1
+3.11.2-rc.2
+3.11.2-rc.3
+3.11.2-rc.4
+3115.0.0
+3.12.0
+3.1.22-1.8
+3127.0.0
+3139.0.0
+3139.1.0
+3139.1.1
+3139.2.0
+3139.2.1
+3139.2.2
+3139.2.3
+3.14.2
+3.15.0
+3.15.10
+3.15.11
+3.15.4
+3.15.7
+3.15.8
+3.15.9
+3.16.2
+3.16.4
+3165.0.0
+3.17.1
+3.17.7
+3.18.0
+3.18.5
+3185.0.0
+3185.1.0
+3185.1.1
+32
+3200.0.0
+3227.0.0
+3227.1.0
+3227.1.1
+3227.2.1
+3227.2.2
+3227.2.3
+3227.2.4
+3255.0.0
+3277.0.0
+3277.1.0
+3277.1.1
+3277.1.2
+33
+3305.0.0
+3305.0.1
+3.3.2009
+3.3.4
+3346.0.0
+3346.1.0
+3374.0.0
+3374.1.0
+3374.1.1
+3374.2.0
+3374.2.1
+3374.2.2
+3374.2.3
+3374.2.4
+3374.2.5
+34
+3402.0.0
+3402.0.1
+3402.1.0
+3417.0.0
+3417.1.0
+3432.0.0
+3432.1.0
+3446.0.0
+3446.1.0
+3446.1.1
+3480.0.0
+3493.0.0
+3493.1.0
+3.5
+35
+3.5.0
+3510.0.0
+3510.1.0
+3510.2.0
+3510.2.1
+3510.2.2
+3510.2.3
+3510.2.4
+3510.2.5
+3510.2.6
+3510.2.7
+3510.2.8
+3510.3.1
+3510.3.2
+3.5.2-dev20230505t0041edt-manual
+3535.0.0
+3549.0.0
+3549.1.0
+3549.1.1
+3.5.5
+3.5.6
+3572.0.0
+3572.0.1
+3572.1.0
+36
+3602.0.0
+3602.1.0
+3602.1.1
+3602.1.2
+3602.1.3
+3602.1.4
+3602.1.5
+3602.1.6
+3602.2.0
+3602.2.1
+3602.2.2
+3602.2.3
+3619.0.0
+3637.0.0
+3654.0.0
+3665.0.0
+3689.0.0
+37
+3717.0.0
+3732.0.0
+3745.1.0
+3760.0.0
+3760.1.0
+3760.1.1
+3760.2.0
+3794.0.0
+38
+3815.0.0
+3815.1.0
+3815.2.0
+3850.0.0
+3850.1.0
+3874.0.0
+3878.0.0
+3885.0.0
+3886.0.0
+3888.0.0
+3892.0.0
+39
+4
+4.0
+40
+41
+42.3
+4.24.3.1
+4.24.3.2
+4.26.1.1
+4.27.0
+4.27.3
+4.32
+4.33
+4.3.3-117
+4.6
+4.7
+5.0
+5.1
+5.10.0-18-cloud-amd64
+5.11
+5.2
+5.3
+5.4
+5.4.0.00198
+5.4.1.00026
+5.4.1.00056
+5.6
+6
+6.0
+6.0.0.beta4
+6.1
+6.10
+6.10.0
+6.11.0
+6.11.1
+6.11.2
+6.11.3
+6.11.4
+6.11.5
+6.11.6
+6.11.7
+6.12.0
+6.1.22
+6.13.0
+6.14.0
+6.2
+6.3
+6.4
+6.5
+6.5.0
+6.5.4
+6.5.5
+6.5.6
+6.5.7
+6.6
+6.7
+6.7.2
+6.8
+6.8.2
+6.9
+6.9.1
+6.9.2
+7
+7.0
+7.0.1
+7.0.1406
+7.1
+7.10.0.0-1017741
+7.10.0.20-1023227
+7.10.1.0-1042928
+7.10.1.10-1068159
+7.10.1.1-1049892
+7.10.1.15-1078832
+7.10.1.20-1090468
+7.11
+7.11.0.0-1035502
+7.1.1503
+7.12.0.0-1053185
+7.13.0.10-1078781
+7.13.0.20-1082704
+7.13.1.0-1085623
+7.13.1.0-1093040
+7.13.1.0-1093865
+7.2
+7.2.0
+7.2.1511
+7.3
+7.3.1611
+7.4
+7.4.1708
+7.5
+7.5.0.10-680584
+7.5.1804
+7.6
+7.6.1810
+7.7
+7.7.0.7-1007134
+7.7.1.0-1007743
+7.7.1908
+7.7.5.11-1046187
+7.7.5.20-1063368
+7.7.5.25-1078970
+7.7.5.30-1089690
+7.7.5.30-1091295
+7.8
+7.8.0.0-1008134
+7.8.0.10-1009761
+7.8.0.20-1011246
+7.8.0.8.0
+7.8.1.7.0
+7.8.2003
+7.8.2.1
+7.9
+7.9.0.0-1011258
+7.9.2009
+8
+8.
+8.0
+8.0.0.0-1091527
+8.0.0.0-1091581
+8.0.0.0-1091682
+8.0.0.0-1091972
+8.0.0.0-1092170
+8.0.0.0-1092707
+8.0.0.0-1092873
+8.0.0.0-1093024
+8.0.0.0-1093042
+8.0.0.0-1093255
+8.0.0.0-1094303
+8.0.1905
+8.1
+8.1.0
+8.10
+8.1.0.0-1092701
+8.1.0.0-1093328
+8.11
+8.1.1911
+8.1.3-p1-24838
+8.1.3-p2-24912
+8.1.3-p3-24955
+8.1.3-p4-25026
+8.1.3-p5-25104
+8.1.3-p6-25199
+8.1.3-p7-25298
+8.1.3-p8-25333
+8.1.3-p8-25334
+8.1.3-p8-25335
+8.1.3-p8-25336
+8.1.3-p8-25339
+8.1.3-p8-25341
+8.1.3-p8-25342
+8.1.3-p8-25343
+8.1.3-p8-25345
+8.1.3-p8-25349
+8.1.3-p8-25350
+8.1.3-p8-25351
+8.1.3-p8-25352
+8.1.3-p8-25353
+8.1.3-p8-25354
+8.1.3-p8-25355
+8.1.3-p8-25356
+8.1.3-p8-25357
+8.1.3-p8-25360
+8.1.3-p8-25361
+8.1.3-p8-25362
+8.1.3-p8-25363
+8.1.3-p8-25364
+8.1.3-p8-25365
+8.1.3-p8-25366
+8.1.3-p8-25367
+8.1.3-p8-25370
+8.1.3-p8-25371
+8.1.3-p8-25372
+8.1.3-p8-25373
+8.1.3-p8-25375
+8.1.3-p8-25376
+8.1.3-p8-khil.un-08415223c9a99546b566df0dbc683ffa378cfd77
+8.1.3-p8-khil.un-29562fd3e583d0b1529db6f92fedf409aec35c53
+8.1.3-p8-khil.un-7802727eceff485a5339f081ba97c8eccc697c62
+8.1.4-p1-25119
+8.2
+8.2.2004
+8.3
+8.3.0.6_87213
+8.3.2011
+8.3.2.1_85580
+8.3.2.2_85607
+8.3.3
+8.3.8.0_86519
+8.3.8.0_86525
+8.4
+8.4.1
+8.4.2
+8.4.2105
+8.4.3
+8.5
+8.5.0
+8.5.1
+8.5.2
+8.5.2111
+8.5.8
+8.6
+8.6.2
+8.6.3
+8.6.7
+8.7
+8.8
+8.8.1
+8.9
+9
+9.0
+9.0.0-p1-24746
+9.0.0-p2-24858
+9.0.1-24945
+9.0.1-p1-25067
+9.0.2-25173
+9.0.2-p1-25268
+9.0.3-25350
+9.0.3-p1-25395
+9.0.3-p1-25397
+9.0.3-p1-25398
+9.0.3-p1-25399
+9.0.3-p1-25400
+9.0.3-p1-25402
+9.0.3-p1-25405
+9.0.3-p1-25406
+9.0.3-p1-abhinav.agarwal-18771999cdf52e2eb4cac4515764035f673da0b4
+9.0.3-p1-khil.un-33723dc9b6a306de91bc2a9fcc7768810f1457bf
+9.0.3-p2-25407
+9.0.3-p2-25408
+9.0.3-p2-25410
+9.0.3-p2-25411
+9.0.3-p2-25413
+9.0.3-p2-25414
+9.0.3-p2-25415
+9.0.3-p2-25416
+9.0.3-p2-25417
+9.0.3-p2-25418
+9.0.3-p2-25421
+9.0.3-p2-25422
+9.0.3-p2-25423
+9.0.3-p2-25424
+9.0.3-p2-25425
+9.0.3-p2-25426
+9.0.3-p2-25427
+9.0.3-p2-25428
+9.0.3-p2-25429
+9.0.3-p2-25430
+9.0.3-p2-25431
+9.0.3-p2-25432
+9.0.3-p2-25433
+9.0.3-p2-25434
+9.0.3-p2-25436
+9.0.3-p2-25437
+9.0.3-p2-25439
+9.0.3-p2-25440
+9.0.3-p2-25441
+9.0.3-p2-25442
+9.0.3-p2-25444
+9.0.3-p2-25445
+9.0.3-p2-khil.un-2bf873fb17f994904dcf673399774dc8b9c79c12
+9.0.3-p2-khil.un-ac0b199a717c00707168ad80f8e9611d3f821deb
+9.0.3-p3-25446
+9.0.3-p3-25447
+9.0.3-p3-25448
+9.0.3-p3-25449
+9.0.3-p3-25450
+9.0.3-p3-25451
+9.0.3-p3-25452
+9.0.4-25401
+9.0.4-25403
+9.0.4-25435
+9.0.4-25443
+9.1
+9.1.0-27191
+9.1.0-beta5-25477
+9.1.0-beta5-25490
+9.1.0-p1-27296
+9.1.0-p1-27298
+9.1.0-p1-27302
+9.1.0-p1-27309
+9.1.0-p1-27330
+9.1.0-p1-khil.un-c49044ca59c0bc1edf7921109c15878ad8d6b9ff
+9.1.0-p2-27361
+9.1.0-p2-27365
+9.1.0-p2-27367
+9.1.0-p2-27369
+9.1.0-p2-27372
+9.1.0-p2-27377
+9.1.0-p2-27379
+9.1.0-p2-27382
+9.1.0-p2-27395
+9.1.0-p2-27400
+9.1.0-p2-27401
+9.1.0-p2-27402
+9.1.0-p2-27403
+9.1.0-p2-27404
+9.1.0-p2-27405
+9.1.0-p2-27406
+9.1.0-p2-27407
+9.1.0-p2-27409
+9.1.0-p2-27418
+9.1.0-p2-khil.un-50de36250e4d05c520fadf4c780da5af8f82f52c
+9.1.0-p2-khil.un-713fe3c6fb797ad684383ebda90a00cbca5e2531
+9.11
+9.1.10.0_92772
+9.1.11.0_92806
+9.1.1-27295
+9.1.1-27297
+9.1.1-27299
+9.1.1-27300
+9.1.1-27301
+9.1.1-27303
+9.1.1-27305
+9.1.1-27307
+9.1.1-27308
+9.1.1-27310
+9.1.1-27311
+9.1.1-27312
+9.1.1-27313
+9.1.1-27315
+9.1.1-27318
+9.1.1-27319
+9.1.1-27320
+9.1.1-27321
+9.1.1-27322
+9.1.1-27323
+9.1.1-27324
+9.1.1-27325
+9.1.1-27326
+9.1.1-27327
+9.1.1-27331
+9.1.1-27332
+9.1.1-27334
+9.1.1-27335
+9.1.1-27336
+9.1.1-27337
+9.1.1-27339
+9.1.1-27340
+9.1.1-27341
+9.1.1-27343
+9.1.1-27344
+9.1.1-27345
+9.1.1-27346
+9.1.1-27347
+9.1.1-27348
+9.1.1-27349
+9.1.1-27350
+9.1.1-27351
+9.1.1-27352
+9.1.1-27354
+9.1.1-27355
+9.1.1-27356
+9.1.1-27357
+9.1.1-27358
+9.1.1-27359
+9.1.1-27360
+9.1.1-27362
+9.1.1-27363
+9.1.1-27364
+9.1.1-27366
+9.1.1-27368
+9.1.1-27374
+9.1.1-27376
+9.1.1-27378
+9.1.1-27380
+9.1.1-27381
+9.1.1-27383
+9.1.1-27385
+9.1.1-27387
+9.1.1-27388
+9.1.1-27393
+9.1.1-27394
+9.1.1-27396
+9.1.1-27397
+9.1.1-27398
+9.1.1-27399
+9.1.1-27408
+9.1.1-27410
+9.1.1-27411
+9.1.1-27412
+9.1.1-27413
+9.1.1-27414
+9.1.1-27415
+9.1.1-27416
+9.1.1-27417
+9.1.1-27419
+9.1.1-beta1-27328
+9.1.1-beta1-27329
+9.1.1-beta1-27338
+9.1.1-khil.un-bce7cbcae9cc06a03b1f888f0ed88ed6818c2d66
+9.1.1-khil.un-dcc75475f02643571e902b5c2c82c25fce65dc63
+9.1.1-nagadeesh.nagaraja-a9b923254f67e1ed0a2f9100900f73985854cf55
+9.12
+9.13
+9.1.3.0_92242
+9.13.1
+9.13.1P1
+9.13.1P2
+9.13.1P3
+9.13.1P4
+9.13.1P6
+9.13.1P7
+9.13.1P8X1
+9.13.1RC1
+9.14.0
+9.14.0P1
+9.14.0P2
+9.14.0P3
+9.14.1
+9.1.4.1_92329
+9.14.1P1
+9.14.1P1X3
+9.14.1P1X4
+9.14.1RC1
+9.1.4.2_92345
+9.1.4.2_92359
+9.1.4.3_92414
+9.1.4.4_92466
+9.1.4.4_92470
+9.15.0
+9.1.5.0_92545
+9.15.1X12
+9.15.1X15
+9.1.6.0_92628
+9.1.6.2_92634
+9.1.6.2_92636
+9.1.7.0_92666
+9.1.8.0_92706
+9.1-dev-25121
+9.1-dev-25368
+9.2
+9.2.0-beta1-25971
+9.2.0-beta1-26005
+9.2.0-beta1-26033
+9.2.0-beta1-26066
+9.2.0-beta2-26101
+9.2.1
+9.2.2.0_94322
+9.2.3.0_94541
+9.2.4.0_94650
+9.2.4.0_94654
+9.2.5.0_94689
+9.2.5.1_94697
+9.2.6.0_94722
+9.2.7.0_94752
+9.2.8.0_94809
+9.2.8.0_94811
+9.2.9.0_94890
+9.2-dev-25813
+9.2-dev-25878
+9.2-dev-25879
+9.2-dev-25920
+9.2-dev-25946
+9.2-dev-25947
+9.2-dev-25948
+9.2-dev-25949
+9.2-dev-25950
+9.2-dev-25951
+9.2-dev-25952
+9.2-dev-25953
+9.2-dev-25954
+9.2-dev-25955
+9.2-dev-25956
+9.2-dev-25958
+9.2-dev-25959
+9.2-dev-25960
+9.2-dev-25961
+9.2-dev-25962
+9.2-dev-25963
+9.2-dev-25965
+9.2-dev-25966
+9.2-dev-25968
+9.2-dev-25969
+9.2-dev-25970
+9.2-dev-25972
+9.2-dev-25974
+9.2-dev-25975
+9.2-dev-25976
+9.2-dev-25977
+9.2-dev-25978
+9.2-dev-25979
+9.2-dev-25980
+9.2-dev-25982
+9.2-dev-25983
+9.2-dev-25984
+9.2-dev-25985
+9.2-dev-25986
+9.2-dev-25987
+9.2-dev-25988
+9.2-dev-25989
+9.2-dev-25990
+9.2-dev-25991
+9.2-dev-25992
+9.2-dev-25993
+9.2-dev-25994
+9.2-dev-25995
+9.2-dev-25996
+9.2-dev-25999
+9.2-dev-26000
+9.2-dev-26001
+9.2-dev-26002
+9.2-dev-26003
+9.2-dev-26009
+9.2-dev-26013
+9.2-dev-26014
+9.2-dev-26016
+9.2-dev-26017
+9.2-dev-26018
+9.2-dev-26019
+9.2-dev-26020
+9.2-dev-26021
+9.2-dev-26022
+9.2-dev-26023
+9.2-dev-26024
+9.2-dev-26025
+9.2-dev-26027
+9.2-dev-26028
+9.2-dev-26029
+9.2-dev-26030
+9.2-dev-26031
+9.2-dev-26032
+9.2-dev-26034
+9.2-dev-26036
+9.2-dev-26037
+9.2-dev-26038
+9.2-dev-26039
+9.2-dev-26040
+9.2-dev-26041
+9.2-dev-26042
+9.2-dev-26044
+9.2-dev-26046
+9.2-dev-26047
+9.2-dev-26048
+9.2-dev-26050
+9.2-dev-26052
+9.2-dev-26058
+9.2-dev-26060
+9.2-dev-26061
+9.2-dev-26062
+9.2-dev-26063
+9.2-dev-26064
+9.2-dev-26065
+9.2-dev-26067
+9.2-dev-26070
+9.2-dev-26071
+9.2-dev-26075
+9.2-dev-26077
+9.2-dev-26078
+9.2-dev-26079
+9.2-dev-26080
+9.2-dev-26081
+9.2-dev-26082
+9.2-dev-26083
+9.2-dev-26085
+9.2-dev-26086
+9.2-dev-26087
+9.2-dev-26088
+9.2-dev-26089
+9.2-dev-26090
+9.2-dev-26091
+9.2-dev-26093
+9.2-dev-26094
+9.2-dev-26095
+9.2-dev-26096
+9.2-dev-26097
+9.2-dev-26098
+9.2-dev-26104
+9.2-dev-26105
+9.2-dev-26107
+9.2-dev-26108
+9.2-dev-26109
+9.2-dev-26110
+9.2-dev-26111
+9.2-dev-adi.kris-33a772ca61f67a24283d4e71a63650282d6bd073
+9.2-dev-khil.un-6ec1bfcc230e848a0e8f1d776d0f05a35a9545e6
+9.2-dev-khil.un-c35b47d1656fd20c0ec0d6cab8583ffbf6041937
+9.2-dev-khil.un-c54da2af2e5732bee11b720c199e16fd70438968
+9.2-dev-michael.sun-ec36214183ee10fbe28d86a55b3aa46b54eb4a04
+9.3
+9.3.0.0_95721
+9.3.1.0_95994
+9.3.2.0_96093
+9.3.2.1_96098
+9.3.2.2_96105
+9.3.2.3_96127
+9.4
+9.4.1.0_98030
+9.4.1.0_98069
+9.4.2.0_98303
+9.4.2.0_98396
+9.5
+9.6
+9.7
+9.8
+9.9
+9999.0.1
+9999.9.1
+a
+Accops
+ArrayOS
+Aruba
+bookworm/sid
+bullseye/sid
+buster/sid
+Clawhammer__9.14.0
+Clawhammer__9.14.1
+Cloudstream__9.16.0
+Epicor
+FFFF
+h
+ip-12.1.6
+ip-13.1.4
+ip-13.1.4.1
+ip-13.1.5
+ip-13.1.5.1
+ip-14.1.4
+ip-14.1.4.1
+ip-14.1.4.2
+ip-14.1.4.4
+ip-14.1.4.5
+ip-14.1.4.6
+ip-14.1.5.1
+ip-14.1.5.2
+ip-14.1.5.3
+ip-14.1.5.4
+ip-14.1.5.5
+ip-14.1.5.6
+ip-15.1.10
+ip-15.1.10.2
+ip-15.1.10.3
+ip-15.1.2.1
+ip-15.1.3
+ip-15.1.3.1
+ip-15.1.4
+ip-15.1.5
+ip-15.1.5.1
+ip-15.1.6.1
+ip-15.1.7
+ip-15.1.8
+ip-15.1.8.1
+ip-15.1.8.2
+ip-15.1.9.1
+ip-16.0.1.1
+ip-16.0.1.2
+ip-16.1.0
+ip-16.1.1
+ip-16.1.2.1
+ip-16.1.2.2
+ip-16.1.3
+ip-16.1.3.1
+ip-16.1.3.2
+ip-16.1.3.3
+ip-16.1.3.4
+ip-16.1.3.5
+ip-16.1.4
+ip-16.1.4.1
+ip-16.1.4.2
+ip-16.1.5
+ip-17.0.0
+ip-17.1.0
+ip-17.1.0.1
+ip-17.1.0.2
+ip-17.1.0.3
+ip-17.1.1
+ip-17.1.1.1
+ip-17.1.1.2
+ip-17.5.0
+jessie/sid
+JNPR-11.0-20200922.4042921_buil
+JNPR-11.0-20201028.e1cef1d_buil
+JNPR-11.0-20201221.5316c2e_buil
+JNPR-11.0-20210220.a5d6a89_buil
+JNPR-11.0-20210429.58e41ab_buil
+JNPR-11.0-20210618.f43645e_buil
+JNPR-12.1-20211216.232802__ci_f
+JNPR-12.1-20220202.9885091_buil
+JNPR-12.1-20220221.2b3c81a_buil
+JNPR-12.1-20220228.82e60e3_buil
+JNPR-12.1-20220817.0361d5f_buil
+JNPR-12.1-20220817.43c4e23_buil
+JNPR-12.1-20221021.a9737e1_buil
+JNPR-12.1-20230120.6bab16a_buil
+JNPR-12.1-20230321.be5f9c0_buil
+JNPR-12.1-20230821.5fbe894_buil
+JNPR-12.1-20231013.108e0b3_buil
+JNPR-12.1-20231013.32ed862a0f7_
+JNPR-12.1-20231122.ee0e992_buil
+JNPR-12.1-20231220.32ed862a0f7_
+JNPR-12.1-20240103.68b4802_buil
+JNPR-12.1-20240112.32ed862a0f7_
+JNPR-12.1-20240119.32ed862a0f7_
+JNPR-12.1-20240228.033525_kahon
+JNPR-15.0-20240118.32ed862a0f7_
+JNPR-15.0-20240207.32ed862a0f7_
+JNPR-15.0-20240209.212337_yhli_
+JNPR-15.0-20240221.32ed862a0f7_
+JNPR-15.0-20240224.002811_kahon
+kali-rolling
+leap-15.0
+leap-15.1
+leap-15.2
+leap-15.3
+leap-15.4
+leap-15.5
+Libraesva
+lighthouse-23.10.0
+lighthouse-23.10.1
+lighthouse-23.10.2
+lighthouse-24.02.0
+lighthouse-24.02.0p0
+lighthouse-24.05.0p0
+Lighthouse__9.13.1
+Linux
+linux-os-31700
+linux-os-31810
+linux-os-31980
+linux-os-36200
+linux-os-38790
+micro-5.5
+Mightysquirrel__9.15.0
+Mightysquirrel__9.15.1
+n/a
+NAME="SLES"
+ngfw-6.10.11.26551.azure.1
+ngfw-6.10.12.26603
+ngfw-6.10.13.26655.fips.2
+ngfw-6.10.14.26703
+ngfw-6.10.15.26752
+ngfw-7.0.3.28152.sip.2
+ngfw-7.1.1.29059
+ngfw-7.1.2.29102
+ngfw-7.2.0.30046.pppoe.1
+ngfw-7.2.0.30046.rnext-g02c2c7f.2402121309
+ngfw-7.2.0.30046.rnext-gf1bf778.2402120824
+ngfw-7.2.0.30047.rnext-g030ce90.2402141429
+ngfw-7.2.0.30047.rnext-g2e7c78f.2402150842
+ngfw-7.2.0.30047.rnext-g3f3db02.2402211419
+ngfw-7.2.0.30047.rnext-g58dccd6.2402151047
+ngfw-7.2.0.30047.rnext-g5d6e00a.2402212007
+ngfw-7.2.0.30047.rnext-gbd58266.2402140855
+ngfw-7.2.0.30047.rnext-gc7730bf.2402151240
+ngfw-7.2.0.30047.rnext-ge9c5065.2402192008
+ngfw-7.2.0.30048.rnext-g237a2a5.2402222007
+ngfw-7.2.0.30048.rnext-g9219487.2402260818
+ngfw-7.2.0.30048.rnext-gbfc76a4.2402261313
+ngfw-7.2.0.30048.rnext-gef6caea.2402260525
+ngfw-7.2.0.30049
+ngfw-7.2.0.30050
+ngfw-7.2.0.30050.rnext-g4152526.2402281323
+ngfw-7.2.0.30050.rnext-gb6d2048.2402291318
+ngfw-7.2.0.30050.rnext-ge84f515.2402291054
+None
+PanOS
+r11427-9ce6aa9d8d
+rolling
+Schipperke-4857
+SonicOSX 7.1.1-7038-R5354
+SonicOSX 7.1.1-7040-R2998-HF24239
+SonicOSX 7.1.1-7040-R5387
+SonicOSX 7.1.1-7040-R5389
+SonicOSX 7.1.1-7040-R5391
+SonicOSX 7.1.1-7041-R5415
+SonicOSX 7.1.1-7047-R3003-HF24239
+SonicOSX 7.1.1-7047-R5557
+SonicOSX 7.1.1-7047-R5573
+SonicOSX 7.1.1-7047-R5582
+SonicOSX 7.1.1-7047-R5587
+SonicOSX 7.1.1-7048-D14445
+SonicOSX 7.1.1-7049-D14628
+SonicOSX 7.1.1-7049-R5589
+stretch/sid
+testing/unstable
+trixie/sid
+tumbleweed-20230902
+tumbleweed-20240106
+unstable
+v3.3
+v3.4.1
+v3.5
+v3.8.1
+vsbc-x86_pi3-6.10.3
+vsbc-x86_pi3-6.10.x6
+vsbc-x86_pi3-6.12.2pre02