mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
94bf7e5d84
Instead of embedding the pod information inside the respective source files, store them in separate files. This allows us to reduce the number of custom build rules as most of the information can be inferred for the file name; moreover, text editors are more likely to use proper syntax highlighting for standalone pod files.
110 lines
2.3 KiB
Plaintext
110 lines
2.3 KiB
Plaintext
=head1 NAME
|
|
|
|
virt-xml-validate - validate libvirt XML files against a schema
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
virt-xml-validate XML-FILE [SCHEMA-NAME]
|
|
virt-xml-validate OPTION
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
Validates a libvirt XML for compliance with the published schema.
|
|
The first compulsory argument is the path to the XML file to be
|
|
validated. The optional second argument is the name of the schema
|
|
to validate against. If omitted, the schema name will be inferred
|
|
from the name of the root element in the XML document.
|
|
|
|
Valid schema names currently include
|
|
|
|
=over 4
|
|
|
|
=item C<domainsnapshot>
|
|
|
|
The schema for the XML format used by domain snapshot configuration
|
|
|
|
=item C<domain>
|
|
|
|
The schema for the XML format used by guest domains configuration
|
|
|
|
=item C<network>
|
|
|
|
The schema for the XML format used by virtual network configuration
|
|
|
|
=item C<storagepool>
|
|
|
|
The schema for the XML format used by storage pool configuration
|
|
|
|
=item C<storagevol>
|
|
|
|
The schema for the XML format used by storage volume descriptions
|
|
|
|
=item C<nodedev>
|
|
|
|
The schema for the XML format used by node device descriptions
|
|
|
|
=item C<capability>
|
|
|
|
The schema for the XML format used to declare driver capabilities
|
|
|
|
=item C<nwfilter>
|
|
|
|
The schema for the XML format used by network traffic filters
|
|
|
|
=item C<secret>
|
|
|
|
The schema for the XML format used by secrets descriptions
|
|
|
|
=item C<interface>
|
|
|
|
The schema for the XML format used by physical host interfaces
|
|
|
|
=back
|
|
|
|
=head1 OPTIONS
|
|
|
|
=over
|
|
|
|
=item B<-h, --help>
|
|
|
|
Display command line help usage then exit.
|
|
|
|
=item B<-V, --version>
|
|
|
|
Display version information then exit.
|
|
|
|
=back
|
|
|
|
=head1 EXIT STATUS
|
|
|
|
Upon successful validation, an exit status of 0 will be set. Upon
|
|
failure a non-zero status will be set.
|
|
|
|
=head1 AUTHOR
|
|
|
|
Daniel P.Berrange
|
|
|
|
=head1 BUGS
|
|
|
|
Report any bugs discovered to the libvirt community via the
|
|
mailing list C<http://libvirt.org/contact.html> or bug tracker C<http://libvirt.org/bugs.html>.
|
|
Alternatively report bugs to your software distributor / vendor.
|
|
|
|
=head1 COPYRIGHT
|
|
|
|
Copyright (C) 2009-2013 by Red Hat, Inc.
|
|
Copyright (C) 2009 by Daniel P. Berrange
|
|
|
|
=head1 LICENSE
|
|
|
|
virt-xml-validate is distributed under the terms of the GNU GPL v2+.
|
|
This is free software; see the source for copying conditions. There
|
|
is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
PURPOSE
|
|
|
|
=head1 SEE ALSO
|
|
|
|
C<virsh(1)>, online XML format descriptions C<http://libvirt.org/format.html>
|
|
|
|
=cut
|