def METHOD_NAME(self, flags=0):
    params = {
        'name': self._name,
        'uuid': self._uuid,
        'block': BLOCK_DEV_PATH,
        'mac': self._mac_address
    }
    params['volume_disk'] = "" if not self._has_disk_volume else \
        XML_DISK_VOLUME.format(**params)
    params['block_disk'] = "" if not self._has_disk_block else \
        XML_DISK_BLOCK.format(**params)
    return """