def extractTrustLevelFromResult(result):
    """Returns True or Folse depending on the result of the
        JSON parameters in the switchVerifier output

        The result is trusted if both Firmware and OS are correct and up
        to data, and both configuration and SDN Rules match in the switch

    """
    if result["FirmwareLevel"] == 0 \
            and result["OSLevel"] == 0 \
            and result["ConfigurationMatch"] is True \
            and result["SDNRulesMatch"] is True:
        return True
    else:
        return False