def clear_total_vm_size(cls, vm): return clear_cached_size(cls.SNAPSHOT_SIZE_TOTAL_VM_KEY % getattr(vm, 'uuid', vm))
def clear_total_dc_size(cls, dc): return clear_cached_size(cls.SNAPSHOT_SIZE_TOTAL_DC_KEY % getattr(dc, 'id', dc))
def clear_total_vm_size(cls, vm): return clear_cached_size(cls.SNAPSHOT_SIZE_TOTAL_VM_KEY % getattr(vm, 'uuid', vm))
def clear_total_dc_size(cls, dc): return clear_cached_size(cls.SNAPSHOT_SIZE_TOTAL_DC_KEY % getattr(dc, 'id', dc))