(self, min_version="3.1.18")
return True
Check if the Sat-IP server has the minimum required firmware version

        Returns:
            Boolean indicating whether the current firmware version satisfies
            the minimum required version. None if the attempt to read the
            current firmware version fails.
Check if the Sat-IP server has the minimum required firmware version
Check if the Sat - IP server has the minimum required firmware version
def check_fw_version(self, min_version="3.1.18"):
        """Check if the Sat-IP server has the minimum required firmware version

        Returns:
            Boolean indicating whether the current firmware version satisfies
            the minimum required version. None if the attempt to read the
            current firmware version fails.

        """
        self._assert_addr()

        # Fetch the firmware version
        url = self.base_url + "/gmi_sw_ver.txt"
        r = requests.get(url)
        try:
            r.raise_for_status()
        except requests.exceptions.HTTPError as e:
            logger.error(str(e))
            return None

        current_version = StrictVersion(r.text.strip('\n'))
        if (current_version < StrictVersion(min_version)):
            logger.error("A firmware upgrade is required on the Sat-IP "
                         "receiver.")
            logger.info("The current firmware version is {}, but the minimum "
                        "required version is {}.".format(
                            current_version, min_version))
            return False
        return True
def check_fw_version ( self , min_version = "3.1.18" ) : self . _assert_addr ( ) # Fetch the firmware version url = self . base_url + "/gmi_sw_ver.txt" r = requests . get ( url ) try : r . raise_for_status ( ) except requests . exceptions . HTTPError as e : logger . error ( str ( e ) ) return None current_version = StrictVersion ( r . text . strip ( '\n' ) ) if ( current_version < StrictVersion ( min_version ) ) : logger . error ( "A firmware upgrade is required on the Sat-IP " "receiver." ) logger . info ( "The current firmware version is {}, but the minimum " "required version is {}." . format ( current_version , min_version ) ) return False return True