def crosscheck_reply_vsiid_mac(self, reply, vsiid, mac):
vsiid_reply = reply.partition("<STR_LIT>")[<NUM_LIT:2>].split()[<NUM_LIT:0>]<EOL>if vsiid != vsiid_reply:<EOL><INDENT>fail_reason = vdp_const.vsi_mismatch_failure_reason % (<EOL>vsiid, vsiid_reply)<EOL>LOG.error("<STR_LIT:%s>", fail_reason)<EOL>return False, fail_reason<EOL><DEDENT>mac_reply = reply.partition("<STR_LIT>")[<NUM_LIT:2>].split('<STR_LIT:->')[<NUM_LIT:1>]<EOL>if mac != mac_reply:<EOL><INDENT>fail_reason = vdp_const.mac_mismatch_failure_reason % (<EOL>mac, mac_reply)<EOL>LOG.error("<STR_LIT:%s>", fail_reason)<EOL>return False, fail_reason<EOL><DEDENT>return True, None<EOL>
Cross Check the reply against the input vsiid,mac for associate.