def METHOD_NAME(self):
    retval = "%s" % self.action
    if self.action == NVDIMM_ACTION_RECONFIGURE:
        if self.namespace:
            retval += " --namespace=%s" % self.namespace
        if self.mode == NVDIMM_MODE_SECTOR:
            retval += " --mode=%s" % NVDIMM_MODE_SECTOR
            if self.sectorsize:
                retval += " --sectorsize=%d" % self.sectorsize
    elif self.action == NVDIMM_ACTION_USE:
        if self.namespace:
            retval += " --namespace=%s" % self.namespace
        if self.blockdevs:
            retval += " --blockdevs=%s" % ",".join(self.blockdevs)
    return retval