code: def get_vlan_from_associate_reply(self, reply, vsiid, mac):
          
          try:
              verify_flag, fail_reason = self.crosscheck_reply_vsiid_mac(
                  reply, vsiid, mac)
              if not verify_flag:
                  return constants.INVALID_VLAN, fail_reason
              mode_str = reply.partition("mode = ")[2].split()[0]
              if mode_str != "assoc":
                  fail_reason = self.get_vdp_failure_reason(reply)
                  return constants.INVALID_VLAN, fail_reason
          except Exception:
              fail_reason = vdp_const.mode_failure_reason % (reply)
              LOG.error("%s", fail_reason)
              return constants.INVALID_VLAN, fail_reason
          check_filter, fail_reason = self.check_filter_validity(
              reply, "filter = ")
          if not check_filter:
              return constants.INVALID_VLAN, fail_reason
          try:
              vlan_val = reply.partition("filter = ")[2].split('-')[0]
              vlan = int(vlan_val)
          except ValueError:
              fail_reason = vdp_const.format_failure_reason % (reply)
              LOG.error("%s", fail_reason)
              return constants.INVALID_VLAN, fail_reason
          return vlan, None
docs: Parse the associate reply from VDP daemon to get the VLAN value.