def crosscheck_query_vsiid_mac(self, reply, vsiid, mac):
        """Cross Check the reply against the input vsiid,mac for get query. """
        vsiid_reply = reply.partition("uuid")[2].split()[0][4:]
        if vsiid != vsiid_reply:
            fail_reason = vdp_const.vsi_mismatch_failure_reason % (
                vsiid, vsiid_reply)
            LOG.error("%s", fail_reason)
            return False, fail_reason
        mac_reply = reply.partition("filter")[2].split('-')[1]
        if mac != mac_reply:
            fail_reason = vdp_const.mac_mismatch_failure_reason % (
                mac, mac_reply)
            LOG.error("%s", fail_reason)
            return False, fail_reason
        return True, None
def crosscheck_query_vsiid_mac ( self , reply , vsiid , mac ) : vsiid_reply = reply . partition ( "uuid" ) [ 2 ] . split ( ) [ 0 ] [ 4 : ] if vsiid != vsiid_reply : fail_reason = vdp_const . vsi_mismatch_failure_reason % ( vsiid , vsiid_reply ) LOG . error ( "%s" , fail_reason ) return False , fail_reason mac_reply = reply . partition ( "filter" ) [ 2 ] . split ( '-' ) [ 1 ] if mac != mac_reply : fail_reason = vdp_const . mac_mismatch_failure_reason % ( mac , mac_reply ) LOG . error ( "%s" , fail_reason ) return False , fail_reason return True , None
Cross Check the reply against the input vsiid,mac for get query.