
Hi Are the flags documented? can this function be used to specify same as virsh undefine --nvram "name of VM" libvirt_domain_undefine_flags($res, $flags) [Since version (null)] Function is used to undefine(with flags) the domain identified by it's resource. *@res [resource]*: libvirt domain resource, e.g. from libvirt_domain_lookup_by_*() *@flags [int]*: optional flags *Returns*: : TRUE for success, FALSE on error

On Thu, Mar 23, 2023 at 09:35:44 +0000, Simon Fairweather wrote:
Hi
Are the flags documented? can this function be used to specify same as virsh undefine --nvram "name of VM"
libvirt_domain_undefine_flags($res, $flags)
[Since version (null)]
Function is used to undefine(with flags) the domain identified by it's resource. *@res [resource]*: libvirt domain resource, e.g. from libvirt_domain_lookup_by_*() *@flags [int]*: optional flags *Returns*: : TRUE for success, FALSE on error
I'm not sure which bindings you use but all API flags are documented in our main API documentation. In your case for the virDomainUndefineFlags API it's: https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainUndefineFlagsV...

On 3/23/23 10:35, Simon Fairweather wrote:
Hi
Are the flags documented? can this function be used to specify same as virsh undefine --nvram "name of VM"
libvirt_domain_undefine_flags($res, $flags)
[Since version (null)]
Function is used to undefine(with flags) the domain identified by it's resource.
/@res [resource]/: libvirt domain resource, e.g. from libvirt_domain_lookup_by_*() /@flags [int]/: optional flags /Returns/: : TRUE for success, FALSE on error
Hey, thanks for the report. I've created a MR that fixes these problems here: https://gitlab.com/libvirt/libvirt-php/-/merge_requests/38 Michal

Thanks Michal, Should there be a link to the flags definition on this page? https://libvirt.org/php/api-reference.html On Thu, Mar 23, 2023 at 2:36 PM Michal Prívozník <mprivozn@redhat.com> wrote:
On 3/23/23 10:35, Simon Fairweather wrote:
Hi
Are the flags documented? can this function be used to specify same as virsh undefine --nvram "name of VM"
libvirt_domain_undefine_flags($res, $flags)
[Since version (null)]
Function is used to undefine(with flags) the domain identified by it's resource.
/@res [resource]/: libvirt domain resource, e.g. from libvirt_domain_lookup_by_*() /@flags [int]/: optional flags /Returns/: : TRUE for success, FALSE on error
Hey, thanks for the report. I've created a MR that fixes these problems here:
https://gitlab.com/libvirt/libvirt-php/-/merge_requests/38
Michal
participants (3)
-
Michal Prívozník
-
Peter Krempa
-
Simon Fairweather