
    Qh
                    T'    S SK r S SKJr  S SKJ	r	J
r
JrJrJrJrJrJrJrJr  \" S5      r\
\\\\/S4   r\
\\\\/\4   r\
\\/S4   r\
\/\4   r\
\\/S4   r\
\\\/\4   r\
\\/S4   r\
\/\4   r\
SS\\\/\\   4   r\\\	4   r\\\	4   r\\\	4   r \\\	4   r! " S S	\"5      r#S
\
\\/S4   S\S\4S jr$GS\S\S\S\SS4S jjr%GS]S\\   S\4S jjr&\GS]S\S\S\S\\\4   SSSS4S jj5       r'\GS]S\S\S\S\S\SS4S jj5       r'GS]S\S\S\S\\\\4   \4   S\\   SS4S jjr'GS]S\S\\\\4   \4   S\\   SS4S jjr(S\S\S\S\\\	4   S\4
S  jr)S\S\\\	4   S\4S! jr*S\S\S"\S\S\4
S# jr+S$\S"\S\S\4S% jr,S\	SS4S& jr-GS]S' jr.GS]S( jr/S) r0S* r1S+ r2S, r3S- r4S. r5S/ r6S0 r7S1 r8S2 r9S3 r:S4 r;S5 r< " S6 S\=5      r> " S7 S8\=5      r? " S9 S:\=5      r@ " S; S<\=5      rA " S= S>\=5      rB " S? S@\=5      rC " SA S\=5      rD " SB SC\=5      rE " SD SE\=5      rF " SF SG\=5      rG " SH SI\=5      rH " SJ SK\=5      rI " SL SM\=5      rJ " SN SO\=5      rKSPrLSQrMSRrNSSrOSTrPSUrQSVrRS rSSPrTSQrUSPrVSQrWS rXSPrYSQrZSRr[SPr\SQr]SPr^SQr_SRr`SSraSTrbSUrcSWrdSXreSYrfS rgSPrhSQriSPrjSQrkS rlSPrmSQrnSRroS rpSPrqSPrrSQrsSPrtSQruSSrvSXrwSZrxS[ryS\rzS]r{S^r|S_r}S`r~SPrSPrSQrSSrSXrSZrS[rS\rS]rSarSbrScrSdrSerSfrSgrShrSPrSQrSPrSQrSSrSXrSZrS[rSPrSQrSSrSXrSZrS[rS\rS]rSarSbrScrSdrSerSfrSgrShrSirSjrSkrSlrSmrSnrSorSprSqrS^rS_rS`rSPrSQrSSrSXrSPrSQrSSrSXrSZrS[rS\rS]rSarSbrScrSdrSerSfrSgrShrSirSjrSkrSlrSPrSrrSVrS rSPrSQrSPrSPrSQrSSrSXrSZrSPrSQrSSrSXrSPrSQrSPrSPrS rSPrSQrSRrSSrSTrS\rSPrSQrSSrSXrSZrS[rS\rSPrSQrS rSPrSPrSQrSSrSPrSQrSSrSPrSPrSQrSSrSXrSPrSQrSSrSPGr SQGrS GrSPGrSQGrSRGrS GrSPGrSQGrSRGr	SPGr
SQGrSSGrSXGrSZGrS GrSPGrSQGrSRGrSSGrS GrSPGrS GrSPGrSQGrSSGrSXGrSZGrS[GrSPGrS GrSPGrSQGr S Gr!SPGr"SQGr#SSGr$S Gr%SPGr&SQGr'S Gr(SPGr)SQGr*S Gr+SPGr,SQGr-S Gr.SPGr/S Gr0SPGr1SQGr2SRGr3S Gr4SPGr5SQGr6S Gr7SPGr8SQGr9S Gr:SPGr;SQGr<SRGr=SSGr>STGr?SUGr@SWGrASXGrBSYGrCSsGrDStGrESuGrFSvGrGSwGrHSxGrISZGrJSyGrKSzGrLS{GrMS|GrNS}GrOS~GrPSGrQSGrRSGrSSGrTSGrUS GrVSPGrWSQGrXS GrYSPGrZS Gr[SPGr\SQGr]SRGr^SSGr_S Gr`SPGraSQGrbS GrcSPGrdSQGreSRGrfSSGrgS GrhSPGriSQGrjSRGrkSSGrlSTGrmSUGrnS GroSPGrpSQGrqSRGrrSSGrsSTGrtSUGruSWGrvSXGrwS GrxSPGryS GrzSPGr{SQGr|SRGr}SSGr~STGrSUGrSWGrSXGrS GrSPGrS GrSPGrSQGrSRGrSSGrSTGrSUGrSPGrSQGrSPGrSQGrSPGrSQGrS GrSPGrSPGrSQGrSSGrSXGrSZGrS[GrS\GrS]GrS GrSPGrSQGrS GrSPGrSQGrSRGrSSGrSTGrSUGrSWGrSXGrSYGrSsGrS GrSPGrSQGrSRGrSSGrSTGrS GrSPGrSQGrS GrSPGrSQGrSRGrSSGrSTGrS GrSPGrSQGrSRGrSPGrSQGrS GrSPGrSPGrSQGrS GrSPGrSQGrSSGrS GrSPGrSQGrSRGrSSGrSTGrSUGrSWGrSXGrSYGrSsGrStGrSuGrSvGrSvGrSPGrSQGrSSGrS GrSPGrSQGrSPGrSQGrSSGrSXGrSZGrS[GrS\GrS]GrSaGrSbGrScGrSdGrSeGrSfGrSgGrShGrSiGrSjGrSkGrSlGrSmGrSPGrS GrSPGrSQGrS GrS GrSPGrSQGrSRGrSPGrS GrS GrS GrSPGrSQGrSRGr SSGrSTGrSUGrSWGrSXGrSYGrSsGrStGrSuGr	SvGr
SwGrS GrSPGrSQGrSRGrSSGrSTGrSUGrSWGrSXGrSYGrSsGrStGrSuGrSvGrSwGrSxGrSZGrSyGrSzGrS{GrS|Gr S}Gr!S~Gr"SGr#SGr$SGr%SGr&SGr'SGr(SGr)SGr*SGr+S[Gr,SGr-SGr.SGr/SGr0SGr1SGr2SGr3SGr4SGr5SGr6SGr7SGr8SGr9SGr:SGr;SGr<SGr=SGr>SGr?SGr@SGrASGrBSGrCSGrDSGrESGrFSGrGSGrHSGrISGrJSGrKS\GrLS GrMSPGrNSQGrOSSGrPSXGrQSZGrRS GrSSPGrTSQGrUSRGrVSSGrWSTGrXSUGrYSWGrZSXGr[SYGr\SsGr]StGr^SPGr_SPGr`SQGraSSGrbSXGrcSPGrdSPGreS GrfSPGrgSQGrhSSGriSXGrjSZGrkS GrlSPGrmS GrnSPGroSQGrpSRGrqSSGrrSTGrsSUGrtSWGruSXGrvSPGrwSQGrxSSGrySXGrzSZGr{S[Gr|S\Gr}S]Gr~SaGrSbGrSPGrSQGrSSGrSPGrSPGrSQGrSSGrSXGrSZGrS[GrS\GrS]GrSaGrSbGrScGrSPGrSQGrSSGrSXGrSPGrS GrSPGrSQGrSRGrSSGrSTGrSUGrSWGrSPGrSQGrSSGrSXGrSZGrS[GrS\GrS]GrSaGrSbGrScGrSPGrSQGrSSGrSXGrSZGrS[GrS\GrS GrSPGrSQGrSSGrSXGrSZGrSPGrSQGrSSGrSXGrS GrSPGrSQGrSRGrSSGrSTGrSUGrSWGrSXGrSYGrSsGrStGrSuGrSvGrSwGrSxGrSZGrSyGrSzGrS{GrS|GrS}GrS~GrSGrSGrSGrSGrSGrSGrSGrSGrSGrS[GrSGrSGrSGrSGrSGrSGrSGrSGrSGrSGrSGrSGrSGrSGrSGrSGrSGrSGrSGrSGrSGrSGrSGrSGrSGrSGrSGrSGrSGrSGrSGrS\GrSGrSGrSGrSGrSGrSGrSGr SGrS GrSPGrSQGrS GrSPGrSQGrSRGrSSGr	STGr
SUGrSWGrSXGrSYGrSsGrStGrSuGrSvGrSwGrSxGrSZGrSyGrSzGrS{GrS|GrS}GrS~GrSGrSGrSGrSGrSGr SGr!SGr"SGr#SGr$S[Gr%SGr&SGr'SGr(SGr)SGr*SGr+SGr,SGr-SGr.SGr/SGr0SGr1SGr2SGr3SGr4SGr5SGr6SGr7SGr8SGr9SGr:SGr;SGr<SGr=SGr>SGr?SGr@SGrASGrBSGrCSGrDS\GrESGrFSGrGSGrHSGrISGrJSGrKSGrLSGrMSGrNSGrOSGrPSGrQSGrRSGrSSGrTSGrUSGrVSGrWSGrXSGrYSGrZSGr[SGr\SGr]SGr^SGr_SGr`SGraSGrbSGrcSGrdSGreSGrfSGrgSGrhSGriSGrjSGrkSGrlSGrmSGrnSGroSGrpSGrqSGrrSGrsSGrtSGruSGrvSPGrwSQGrxSSGrySXGrzS Gr{SPGr|SPGr}SPGr~S GrSPGrSQGrSRGrSSGrSTGrSUGrSWGrSXGrSYGrSPGrSQGrSRGrSSGrSTGrSUGrSPGrSPGrSPGrSPGrS GrSPGrS GrSPGrSQGrSRGrS GrSPGrSQGrSPGrSQGrS GrSPGrSQGrSRGrSSGrS GrSPGrSQGrS GrSPGrSQGrSRGrSSGrSTGrSUGrSWGrSXGrSYGrSsGrStGrSuGrSPGrS GrSPGrSPGrSPGrS GrSPGrS GrSPGrSQGrSRGrS GrSPGrSQGrSPGrSVGrSVGrS GrSPGrSQGrSPGrSQGrSRGrSSGrSTGrSUGrSPGrS GrSPGrS GrSPGrS GrSPGrSQGrSRGrSSGrSTGrS GrSPGrSQGrSSGrSXGrS GrSPGrSQGrSSGrSPGrS GrSPGrS GrSPGrS GrSPGrSQGrSRGrSSGrSTGrS GrSPGrSQGrSRGrSSGrSPGrSQGrSSGrS GrSPGrSQGrSPGrS GrSPGrSPGrSQGrSSGrS GrSPGrSQGrSRGr SSGrSTGrSPGrS GrSPGrSQGrSRGrSSGrSTGr	SUGr
SWGrSXGrSYGrSPGrSPGrSQGrSSGrSXGrSPGrSPGrSSGrSPGrSQGrSRGrSSGrSTGrSUGrSWGrSrGrSVGrS GrSPGr SQGr!SGr"SGr#SGr$SGr%SGr&SGr'SGr(SGr)SGr*SGr+SGr,SGr-SGr.SGr/SGr0SGr1SGr2SGr3SGr4SGr5SGr6SGr7SGr8SGr9SGr:SGr;SGr<SGr=SGr>SGr?SGr@SGrASGrBSGrCSGrDSGrESGrFSGrGSGrHSGrIGS GrJGSGrKGSGrLGSGrMGSGrNGSGrOGSGrPGSGrQGSGrRGS	GrSGS
GrTGSGrUGSGrVGSGrWGSGrXGSGrYGSGrZGSGr[GSGr\GSGr]GSGr^GSGr_GSGr`GSGraGSGrbGSGrcGSGrdGSGreGSGrfGSGrgGSGrhGSGriGSGrjGSGrkGS GrlGSGrmGS!GrnGS"GroGSGrpGS#GrqGS$GrrGS%GrsGS&GrtGS'GruGS(GrvGS)GrwGS*GrxGS+GryGS,GrzGS-Gr{GSGr|GS.Gr}GS/Gr~GS0GrGS1GrGS2GrGS3GrGS4GrGS5GrGS6GrGS7GrGS8GrGS9GrGS:GrGS;GrGS<GrGS=GrGS>GrGS?GrGS@GrGSGrGSAGrGSBGrGSCGrGSDGrGSEGrGSFGrGSGGrGSHGrGSIGrGSJGrGSKGrGSLGrGSMGrGSNGrGSOGrGSPGrGSQGrGSRGrGSSGrGSTGrGSUGrGSVGrGSWGrGSXGrGSYGrGSZGrGS[GrGS\GrGS]GrGS^GrGS_GrGS`GrGSaGrGSbGrGScGrGSdGrGSeGrGSfGrGSgGrGShGrGSiGrGSjGrGSkGrGSlGrGSmGrGSnGrGSoGrGSpGrGSqGrGSrGrGSsGrGStGrGSuGrGSvGrGSwGrGSxGrGSyGrGSzGrGS{GrGS|GrGS}GrGS~GrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGr GSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGr	GSGr
GSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGrGSGr GSGr!GSGr"GSGr#GSGr$GSGr%GSGr&GSGr'GSGr(GSGr)GSGr*GSGr+GSGr,GSGr-GSGr.GSGr/GSGr0GSGr1GSGr2GSGr3GSGr4GSGr5GSGr6GSGr7GSGr8GSGr9GSGr:GSGr;GSGr<GSGr=GSGr>GSGr?GSGr@GSGrAGSGrBGSGrCGSGrDGSGrEGSGrFGSGrGGSGrHGSGrIGSGrJGSGrKGSGrLGSGrMGSGrNGSGrOGSGrPGSGrQGSGrRGSGrSGSGrTGSGrUGSGrVGS GrWGSGrXGSGrYGSGrZGSGr[GSGr\GSGr]GSGr^GSGr_GS	Gr`GS
GraGSGrbGSGrcGSGrdGSGreGSGrfGSGrgGSGrhGSGriGSGrjGSGrkGSGrlGSGrmGSGrnSGroGSGrpGSGrqGSGrrGSGrsGSGrtGSGruGSGrvGSGrwGS GrxGS!GryGS"GrzGS#Gr{GS$Gr|GS%Gr}GS&Gr~GS'GrGS(GrGS)GrGS*GrGS+GrGS,GrSGrSGrSGrSGrSGrSGrSGrGS-GrGS.GrGS/GrGS0GrGS1GrGS2GrGS3GrGS4GrGS5GrGS6GrGS7GrGS8GrGS9GrGS:GrGS;GrGS<GrGS=GrGS>GrGS?GrGS@GrGSAGrGSBGrGSCGrGSDGrGSEGrGSFGrGSGGrGSHGrGSIGrGSJGrGSKGrGSLGrGSMGrGSNGrGSOGrGSPGrGSQGrGSRGrGSSGrGSTGrGSUGrGSVGrGSWGrGSXGrGSYGrGSZGrGS[Grg! \ a6  r S SKr  SrCGNv! \ a  rS\" \5      ;   a  \e SrC SrCGNSrCff = fSrCff = f(^      NzNo module named)TracebackType)
AnyCallableDictListOptionaloverloadTupleTypeTypeVarUnion_T
virConnect	virDomainc                       \ rS rSrS\SS4S jrS\\   4S jrS\\   4S jr	S\\   4S jr
S\\   4S	 jrS\\   4S
 jrS\\   4S jrS\\   4S jrS\\   4S jrS\\   4S jrSrg)libvirtError,   defmsgreturnNc                 z    [         R                  " 5       nUc  UnOUS   n[        R                  X5        X l        g N   )
libvirtmodvirGetLastError	Exception__init__err)selfr   r   msgs       )/usr/lib/python3/dist-packages/libvirt.pyr   libvirtError.__init__-   s8     ((*;Ca&C4%    c                 <    U R                   c  g U R                   S   $ Nr   r   r   s    r    get_error_codelibvirtError.get_error_code;       88xx{r"   c                 <    U R                   c  g U R                   S   $ )N   r%   r&   s    r    get_error_domainlibvirtError.get_error_domain@   r)   r"   c                 <    U R                   c  g U R                   S   $ r   r%   r&   s    r    get_error_messagelibvirtError.get_error_messageE   r)   r"   c                 <    U R                   c  g U R                   S   $ )N   r%   r&   s    r    get_error_levellibvirtError.get_error_levelJ   r)   r"   c                 <    U R                   c  g U R                   S   $ )N   r%   r&   s    r    get_str1libvirtError.get_str1O   r)   r"   c                 <    U R                   c  g U R                   S   $ )N   r%   r&   s    r    get_str2libvirtError.get_str2T   r)   r"   c                 <    U R                   c  g U R                   S   $ )N   r%   r&   s    r    get_str3libvirtError.get_str3Y   r)   r"   c                 <    U R                   c  g U R                   S   $ )N   r%   r&   s    r    get_int1libvirtError.get_int1^   r)   r"   c                 <    U R                   c  g U R                   S   $ )N   r%   r&   s    r    get_int2libvirtError.get_int2c   r)   r"   r%   )__name__
__module____qualname____firstlineno__strr   r   intr'   r,   r/   r3   r7   r;   r?   rC   rG   __static_attributes__ r"   r    r   r   ,   s    s t  
(3- 
8C= 
# 
(3- 
(3- 
(3- 
(3- 
(3- r"   r   fctxr   c                 .    [         R                  " X5      $ )zRegister a Python function for error reporting.
The function is called back as f(ctx, error), with error
being a list of information about the error being raised.
Returns 1 in case of success.)r   virRegisterErrorHandler)rQ   rR   s     r    registerErrorHandlerrU   l   s    
 --a55r"   uriauthflagsc                 ^    [         R                  " XU5      nUc  [        S5      e[        US9$ )a  
This function should be called first to get a connection to the
Hypervisor. If necessary, authentication will be performed fetching
credentials via the callback.

See :py:func:`open` for notes about environment variables which can
have an effect on opening drivers and freeing the connection resources.

:param str uri: (Optional) connection URI, see https://libvirt.org/uri.html
:param auth: a list that contains 3 items:
    - a list of supported credential types
    - a callable that takes 2 arguments (credentials, user-data) and returns 0 on succcess and -1 on errors.
        The credentials argument is a list of credentials that libvirt (actually
        the ESX driver) would like to request. An element of this list is itself a
        list containing 5 items (4 inputs, 1 output):
            - the credential type, e.g. :py:const:`libvirt.VIR_CRED_AUTHNAME`
            - a prompt to be displayed to the user
            - a challenge, the ESX driver sets this to the hostname to allow automatic
                distinction between requests for ESX and vCenter credentials
            - a default result for the request
            - a place to store the actual result for the request
    - user data that will be passed to the callable as second argument
:param int flags: bitwise-OR of virConnectFlags
:returns: a :py:class:`virConnect` instance on success.
:raises libvirtError: on errors.
zvirConnectOpenAuth() failed_obj)r   virConnectOpenAuthr   r   )rV   rW   rX   rets       r    openAuthr^   t   s2    : 
'
'5
9C
{8993r"   namec                     U c  [         R                  " 5       nO[         R                  " U 5      nUc  [        S5      eU$ )a  If no name parameter is passed (or name is None) then the
version of the libvirt library is returned as an integer.

If a name is passed and it refers to a driver linked to the
libvirt library, then this returns a tuple of (library version,
driver version).

If the name passed refers to a non-existent driver, then you
will get the exception 'no support for hypervisor'.

Versions numbers are integers: 1000000*major + 1000*minor + release.zvirGetVersion() failed)r   virGetVersionr   r_   r]   s     r    
getVersionrc      s=     |&&(&&t,
{344Jr"   watchfdeventopaqueopaquecompatc                     g NrP   rd   re   rf   rg   rh   s        r    _eventInvokeHandleCallbackrl      s	     BEr"   c                     g rj   rP   rk   s        r    rl   rl      s    twr"   c                     U(       a  UnUnO![        U[        5      (       d   eUS   nUS   n[        R                  " XX%U5        g)z,
Invoke the Event Impl Handle Callback in C
r   r+   N)
isinstancetupler   virEventInvokeHandleCallback)rd   re   rf   rg   rh   callbackopaque_s          r    rl   rl      sH     &%((((!9)++EuPr"   timerc                     U(       a  UnUnO![        U[        5      (       d   eUS   nUS   n[        R                  " XU5        g)z-
Invoke the Event Impl Timeout Callback in C
r   r+   N)ro   rp   r   virEventInvokeTimeoutCallback)rt   rg   rh   rr   rs   s        r    _eventInvokeTimeoutCallbackrw      sF     &%((((!9),,UgFr"   eventscbDatac                 *    US   nUS   nU" XX%5        gNcbrg   r   rP   )rd   re   rx   ry   r|   rg   s         r    _dispatchEventHandleCallbackr}      s"    	BHFu&!r"   c                 (    US   nUS   nU" X5        gr{   rP   )rt   ry   r|   rg   s       r    _dispatchEventTimeoutCallbackr      s     	BHFur"   r|   c                 ^    X#S.n[         R                  " XU5      nUS:X  a  [        S5      eU$ )a  
register a callback for monitoring file handle events

@fd: file handle to monitor for events
@events: bitset of events to watch from virEventHandleType constants
@cb: callback to invoke when an event occurs
@opaque: user data to pass to callback

Example callback prototype is:
    def cb(watch,   # int id of the handle
           fd,      # int file descriptor the event occurred on
           events,  # int bitmap of events that have occurred
           opaque): # opaque data passed to eventAddHandle
r|   rg   zvirEventAddHandle() failed)r   virEventAddHandler   )re   rx   r|   rg   ry   r]   s         r    r   r      s6     )F

&
&r6
:C
by788Jr"   timeoutc                 \    XS.n[         R                  " X5      nUS:X  a  [        S5      eU$ )a  
register a callback for a timer event

@timeout: time between events in milliseconds
@cb: callback to invoke when an event occurs
@opaque: user data to pass to callback

Setting timeout to -1 will disable the timer. Setting the timeout
to zero will cause it to fire on every event loop iteration.

Example callback prototype is:
    def cb(timer,   # int id of the timer
           opaque): # opaque data passed to eventAddTimeout
r   r   zvirEventAddTimeout() failed)r   virEventAddTimeoutr   )r   r|   rg   ry   r]   s        r    r   r     s4     )F

'
'
8C
by899Jr"   c                 >    [         R                  " U S   U S   5        g)a  
Execute callback which frees the opaque buffer

@opaque: the opaque object passed to addHandle or addTimeout

WARNING: This function should not be called from any call by libvirt's
core. It will most probably cause deadlock in C-level libvirt code.
Instead it should be scheduled and called from implementation's stack.

See https://libvirt.org/html/libvirt-libvirt-event.html#virEventAddHandleFunc
for more information.

This function is not dependent on any event loop implementation.
r   r+   N)r   virEventInvokeFreeCallback)rg   s    r    r   r     s      ))&)VAY?r"   c                 \    [         R                  " U 5      nUc  [        S5      e[        US9$ )aA  This function should be called first to get a connection to the
Hypervisor and xen store

If @name is None, if the LIBVIRT_DEFAULT_URI environment variable is set,
then it will be used. Otherwise if the client configuration file
has the "uri_default" parameter set, then it will be used. Finally
probing will be done to determine a suitable default driver to activate.
This involves trying each hypervisor in turn until one successfully opens.

If connecting to an unprivileged hypervisor driver which requires
the libvirtd daemon to be active, it will automatically be launched
if not already running. This can be prevented by setting the
environment variable LIBVIRT_AUTOSTART=0

URIs are documented at https://libvirt.org/uri.html

virConnectClose should be used to release the resources after the connection
is no longer needed. zvirConnectOpen() failedrZ   )r   virConnectOpenr   r   rb   s     r    openr   :  s0    & 
#
#D
)C
{4553r"   c                 \    [         R                  " U 5      nUc  [        S5      e[        US9$ )a  This function should be called first to get a restricted connection to the
library functionalities. The set of APIs usable are then restricted
on the available methods to control the domains.

See virConnectOpen for notes about environment variables which can
have an effect on opening drivers and freeing the connection resources

URIs are documented at https://libvirt.org/uri.html zvirConnectOpenReadOnly() failedrZ   )r   virConnectOpenReadOnlyr   r   rb   s     r    openReadOnlyr   R  s0     
+
+D
1C
{<==3r"   c                  R    [         R                  " 5       n U S:X  a  [        S5      eU $ )a  Registers a default event implementation based on the
poll() system call. This is a generic implementation
that can be used by any client application which does
not have a need to integrate with an external event
loop impl.

For proper event handling, it is important that the event implementation
is registered before a connection to the Hypervisor is opened.

Once registered, the application has to invoke virEventRunDefaultImpl() in
a loop to process events.  Failure to do so may result in connections being
closed unexpectedly as a result of keepalive timeout.  The default
event loop fully supports handle and timeout events, but only
wakes up on events registered by libvirt API calls such as
virEventAddHandle() or virConnectDomainEventRegisterAny(). r   z$virEventRegisterDefaultImpl() failed)r   virEventRegisterDefaultImplr   r]   s    r    r   r   d  s*      
0
0
2C
byABBJr"   c                 4    [         R                  " XX#XE5        g)a%  Registers an event implementation, to allow integration
with an external event loop. Applications would use this
to integrate with the libglib2 event loop, or libevent
or the QT event loop.

For proper event handling, it is important that the event implementation
is registered before a connection to the Hypervisor is opened.

Use of the virEventAddHandle() and similar APIs require that the
corresponding handler is registered.  Use of the
virConnectDomainEventRegisterAny() and similar APIs requires that
the three timeout handlers are registered.  Likewise, the three
timeout handlers must be registered if the remote server has been
configured to send keepalive messages, or if the client intends
to call virConnectSetKeepAlive(), to avoid either side from
unexpectedly closing the connection due to inactivity.

If an application does not need to integrate with an
existing event loop implementation, then the
virEventRegisterDefaultImpl() method can be used to setup
the generic libvirt implementation.

Once registered, the event loop implementation cannot be
changed, and must be run continuously. Note that callbacks
may remain registered for a short time even after calling
virConnectClose on all open connections, so it is not safe
to stop running the event loop immediately after closing
the connection. N)r   virEventRegisterImpl)	addHandleupdateHandleremoveHandle
addTimeoutupdateTimeoutremoveTimeouts         r    r   r   y  s    : ##I\Wdtr"   c                 T    [         R                  " U 5      nUS:X  a  [        S5      eU$ )zUnregister a callback from a file handle.  This function
requires that an event loop has previously been registered with
virEventRegisterImpl() or virEventRegisterDefaultImpl(). r   zvirEventRemoveHandle() failed)r   virEventRemoveHandler   )rd   r]   s     r    r   r     s,     
)
)%
0C
by:;;Jr"   c                 T    [         R                  " U 5      nUS:X  a  [        S5      eU$ )zUnregister a callback for a timer.  This function
requires that an event loop has previously been registered with
virEventRegisterImpl() or virEventRegisterDefaultImpl(). r   zvirEventRemoveTimeout() failed)r   virEventRemoveTimeoutr   )rt   r]   s     r    r   r     s,     
*
*5
1C
by;<<Jr"   c                  R    [         R                  " 5       n U S:X  a  [        S5      eU $ )a  Run one iteration of the event loop. Applications
will generally want to have a thread which invokes
this method in an infinite loop.  Furthermore, it is wise
to set up a pipe-to-self handler (via virEventAddHandle())
or a timeout (via virEventAddTimeout()) before calling this
function, as it will block forever if there are no
registered events.

  static bool quit;

  while (!quit) {
    if (virEventRunDefaultImpl() < 0)
      ...print error...
  } r   zvirEventRunDefaultImpl() failed)r   virEventRunDefaultImplr   r   s    r    r   r     s*     
+
+
-C
by<==Jr"   c                 0    [         R                  " X5        g)zChange event set for a monitored file handle.  This function
requires that an event loop has previously been registered with
virEventRegisterImpl() or virEventRegisterDefaultImpl().

Will not fail if fd exists. N)r   virEventUpdateHandle)rd   rx   s     r    r   r     s     ##E2r"   c                 0    [         R                  " X5        g)aJ  Change frequency for a timer.  This function
requires that an event loop has previously been registered with
virEventRegisterImpl() or virEventRegisterDefaultImpl().

Setting frequency to -1 will disable the timer. Setting the frequency
to zero will cause it to fire on every event loop iteration.

Will not fail if timer exists. N)r   virEventUpdateTimeout)rt   r   s     r    r   r     s     $$U4r"   c                  0    [         R                  " 5       n U $ )zProvide a pointer to the last error caught at the library level

The error object is kept in thread local storage, so separate
threads can safely access this concurrently. )r   r   r   s    r    r   r     s    
 
$
$
&CJr"   c                  R    [         R                  " 5       n U S:X  a  [        S5      eU $ )z6Get the most recent error code (enum virErrorNumber). r   zvirGetLastErrorCode() failed)r   virGetLastErrorCoder   r   s    r    r   r     s(    

(
(
*C
by9::Jr"   c                  R    [         R                  " 5       n U S:X  a  [        S5      eU $ )z8Get the most recent error domain (enum virErrorDomain). r   zvirGetLastErrorDomain() failed)r   virGetLastErrorDomainr   r   s    r    r   r     s(    

*
*
,C
by;<<Jr"   c                  L    [         R                  " 5       n U c  [        S5      eU $ )z"Get the most recent error message zvirGetLastErrorMessage() failed)r   virGetLastErrorMessager   r   s    r    r   r     s&    

+
+
-C
{<==Jr"   c                  R    [         R                  " 5       n U S:X  a  [        S5      eU $ )a  Initialize the library.

This method is invoked automatically by any of the virConnectOpen() API
calls, and by virGetVersion(). Since release 1.0.0, there is no need to
call this method even in a multithreaded application, since
initialization is performed in a thread safe manner; but applications
using an older version of the library should manually call this before
setting up competing threads that attempt virConnectOpen in parallel.

The only other time it would be necessary to call virInitialize is if the
application did not invoke virConnectOpen as its first API call, such
as when calling virEventRegisterImpl() before setting up connections,
or when using virSetErrorFunc() to alter error reporting of the first
connection attempt. r   zvirInitialize() failed)r   virInitializer   r   s    r    r   r     s*     
"
"
$C
by344Jr"   c                  .    [         R                  " 5         g)zReset the last error caught at the library level.

The error object is kept in thread local storage, so separate
threads can safely access this concurrently, only resetting
their own error object. N)r   virResetLastErrorrP   r"   r    r   r     s       "r"   c            	          \ rS rSrSS jrS rS rS rS rS r	S	 r
S
 rSS jrS rSS jrSS jrSS jrS rSS jrSS jrSS jrS rS rSS jrSS jrSS jrSS jrSS jrSS jrSS jrSS jrSS jrSS jr SS  jr!SS! jr"SS" jr#SS# jr$S$ r%SS% jr&SS& jr'SS' jr(SS( jr)SS) jr*SS* jr+S+ r,SS, jr-SS- jr.SS. jr/S/ r0SS0 jr1S1 r2SS2 jr3SS3 jr4SS4 jr5SS5 jr6SS6 jr7SS7 jr8SS8 jr9SS9 jr:SS: jr;SS; jr<SS< jr=SS= jr>SS> jr?S? r@SS@ jrASSA jrBSSB jrCSC rDSSD jrESE rFSF rGSG rHSH rISSI jrJSSJ jrKSSK jrLSSL jrMSSM jrNSSN jrOSO rPSP rQSSQ jrRSSR jrSSS rTSST jrUSSU jrVSSV jrWSSW jrXSSX jrYSSY jrZSSZ jr[SS[ jr\SS\ jr]SS] jr^SS^ jr_SS_ jr`SS` jraSSa jrbSSb jrcSc rdSSd jreSSe jrfSSf jrgSSg jrhSSh jriSSi jrjSSj jrkSSk jrlSSl jrmSSm jrnSn roSSo jrpSSp jrqSSq jrrSSr jrsSs rtSSt jruSu rvSSv jrwSSw jrxSx rySSy jrzSz r{SS{ jr|S| r}S} r~SS~ jrSS jrS rS rSS jrSS jrSS jrSS jrSS jrSS jrSS jrSS jrS rS rSS jrSS jrSS jrSS jrSS jrSS jrS rSS jrSS jrSS jrSS jrS rSS jrS rSS jrSS jrSS jrSS jrSS jrSS jrSS jrSS jrS rS rSS jrSS jrSS jrS rSS jrSS\S\S   4S jjrSS\S\S   4S jjrSS\\   S\SS 4S jjrSS\\   S\S\4S jjrSS\\   S\S\4S jjrSS\S\4S jjrSS\S\S\4S jjrSS\S\\   S\S\4S jjrSrg)r   i  Nc                 |    Xl         [        U5      R                  S;  a  [        S[        U5      -  5      eX l        g N)	PyCapsule	PyCObjectz&Expected a wrapped C Object but got %s_conntyperI   r   _or   connr[   s      r    r   virDomain.__init__  4    
:&@@DtDzQRRr"   c                 l    U R                   b   [        R                  " U R                   5        S U l         g rj   )r   r   virDomainFreer&   s    r    __del__virDomain.__del__  %    77$$TWW-r"   c                     U R                   $ rj   r   r&   s    r    connectvirDomain.connect"      zzr"   c                 B    [         R                  " U R                  5      $ z"Get C pointer to underlying object)r   virDomain_pointerr   r&   s    r    	c_pointervirDomain.c_pointer%      ++DGG44r"   c                 F    [         R                  " U R                  5      nU$ )z,Get the hypervisor ID number for the domain )r   virDomainGetIDr   r   r]   s     r    IDvirDomain.ID-  s    ''0
r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )z)Get the type of domain operation system. zvirDomainGetOSType() failed)r   virDomainGetOSTyper   r   r   s     r    OSTypevirDomain.OSType2  ,    ++DGG4;<==
r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )z0Extract the UUID unique Identifier of a domain. zvirDomainGetUUID() failed)r   virDomainGetUUIDr   r   r   s     r    UUIDvirDomain.UUID=  ,    ))$''2;:;;
r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )z4Fetch globally unique ID of the domain as a string. zvirDomainGetUUIDString() failed)r   virDomainGetUUIDStringr   r   r   s     r    
UUIDStringvirDomain.UUIDStringD  ,    //8;@AA
r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )aY  Provide an XML description of the domain. The description may be reused
later to relaunch the domain with virDomainCreateXML().

No security-sensitive data will be included unless @flags contains
VIR_DOMAIN_XML_SECURE; this flag is rejected on read-only
connections.  If @flags includes VIR_DOMAIN_XML_INACTIVE, then the
XML represents the configuration that will be used on the next boot
of a persistent domain; otherwise, the configuration represents the
currently running domain.  If @flags contains
VIR_DOMAIN_XML_UPDATE_CPU, then the portion of the domain XML
describing CPU capabilities is modified to match actual
capabilities of the host.

If @flags contains VIR_DOMAIN_XML_MIGRATABLE, the XML is altered to
assist in migrations, since the source and destination may be
running different libvirt versions.  This may include trimming
redundant or default information that might confuse an older
recipient, or exposing internal details that aid a newer recipient;
this flag is rejected on read-only connections, and the resulting
XML might not validate against the schema, so it is mainly for
internal use. zvirDomainGetXMLDesc() failed)r   virDomainGetXMLDescr   r   r   rX   r]   s      r    XMLDescvirDomain.XMLDescO  s0    , ,,TWWe<;=>>
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )zRequests that the current background job be aborted at the
soonest opportunity. In case the job is a migration in a post-copy mode,
virDomainAbortJob will report an error (see virDomainMigrateStartPostCopy
for more details). r   zvirDomainAbortJob() failed)r   virDomainAbortJobr   r   r   s     r    abortJobvirDomain.abortJobj  0    
 **4773"9;<<
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )a  Requests that the current background job be aborted at the
soonest opportunity. In case the job is a migration in a post-copy mode,
this function will report an error unless VIR_DOMAIN_ABORT_JOB_POSTCOPY
flag is used (see virDomainMigrateStartPostCopy for more details). r   zvirDomainAbortJobFlags() failed)r   virDomainAbortJobFlagsr   r   r   s      r    abortJobFlagsvirDomain.abortJobFlagst  s2    
 //?"9@AA
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )a  Dynamically add an IOThread to the domain. It is left up to the
underlying virtual hypervisor to determine the valid range for an
@iothread_id and determining whether the @iothread_id already exists.

Note that this call can fail if the underlying virtualization hypervisor
does not support it or if growing the number is arbitrarily limited.
This function requires privileged access to the hypervisor.

@flags may include VIR_DOMAIN_AFFECT_LIVE or VIR_DOMAIN_AFFECT_CONFIG.
Both flags may be set.
If VIR_DOMAIN_AFFECT_LIVE is set, the change affects a running domain
and may fail if domain is not alive.
If VIR_DOMAIN_AFFECT_CONFIG is set, the change affects persistent state,
and will fail for transient domains. If neither flag is specified (that is,
@flags is VIR_DOMAIN_AFFECT_CURRENT), then an inactive domain modifies
persistent setup, while an active domain is hypervisor-dependent on whether
just live or both live and persistent state is changed. r   zvirDomainAddIOThread() failed)r   virDomainAddIOThreadr   r   r   iothread_idrX   r]   s       r    addIOThreadvirDomain.addIOThread~  2    $ --dgg{J"9>??
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )a  Set how long to wait for a response from guest agent commands. By default,
agent commands block forever waiting for a response.

@timeout must be a value from virDomainAgentResponseTimeoutValues or
positive:

  VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_BLOCK(-2): meaning to block forever
     waiting for a result.
  VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_DEFAULT(-1): use default timeout value.
  VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_NOWAIT(0): does not wait.
  positive value: wait for @timeout seconds

In all guest-agent based APIs when a timeout happens if an actual command
was send to the guest agent the returned error code will be
VIR_ERR_AGENT_COMMAND_TIMEOUT. r   z)virDomainAgentSetResponseTimeout() failed)r    virDomainAgentSetResponseTimeoutr   r   )r   r   rX   r]   s       r    agentSetResponseTimeout!virDomain.agentSetResponseTimeout  s2      99$''7R"9JKK
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )a  Create a virtual device attachment to backend.  This function,
having hotplug semantics, is only allowed on an active domain.

For compatibility, this method can also be used to change the media
in an existing CDROM/Floppy device, however, applications are
recommended to use the virDomainUpdateDeviceFlags method instead.

Be aware that hotplug changes might not persist across a domain going
into S4 state (also known as hibernation) unless you also modify the
persistent domain definition. r   zvirDomainAttachDevice() failed)r   virDomainAttachDevicer   r   r   xmlr]   s      r    attachDevicevirDomain.attachDevice  s2     ..tww<"9?@@
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )a%  Attach a virtual device to a domain, using the flags parameter
to control how the device is attached.  VIR_DOMAIN_AFFECT_CURRENT
specifies that the device allocation is made based on current domain
state.  VIR_DOMAIN_AFFECT_LIVE specifies that the device shall be
allocated to the active domain instance only and is not added to the
persisted domain configuration.  VIR_DOMAIN_AFFECT_CONFIG
specifies that the device shall be allocated to the persisted domain
configuration only.  Note that the target hypervisor must return an
error if unable to satisfy flags.  E.g. the hypervisor driver will
return failure if LIVE is specified but it only supports modifying the
persisted device allocation.

For compatibility, this method can also be used to change the media
in an existing CDROM/Floppy device, however, applications are
recommended to use the virDomainUpdateDeviceFlag method instead.

Be aware that hotplug changes might not persist across a domain going
into S4 state (also known as hibernation) unless you also modify the
persistent domain definition. r   z#virDomainAttachDeviceFlags() failed)r   virDomainAttachDeviceFlagsr   r   r   r   rX   r]   s       r    attachDeviceFlagsvirDomain.attachDeviceFlags  s2    ( 33DGGSH"9DEE
r"   c                 d    [         R                  " U R                  X5      nUc  [        S5      eU$ )zCFetch list of public SSH authorized keys for given user in domain. z&virDomainAuthorizedSSHKeysGet() failed)r   virDomainAuthorizedSSHKeysGetr   r   )r   userrX   r]   s       r    authorizedSSHKeysGetvirDomain.authorizedSSHKeysGet  s.    66twwL;GHH
r"   c                 l    [         R                  " U R                  XU5      nUS:X  a  [        S5      eU$ )zGManipulate set of public SSH authorized keys for given user in domain. r   z&virDomainAuthorizedSSHKeysSet() failed)r   virDomainAuthorizedSSHKeysSetr   r   )r   r  keysrX   r]   s        r    authorizedSSHKeysSetvirDomain.authorizedSSHKeysSet  s2    66twwER"9GHH
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )z(Extract the autostart flag for a domain r   zvirDomainGetAutostart() failed)r   virDomainGetAutostartr   r   r   s     r    	autostartvirDomain.autostart  .    ..tww7"9?@@
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )zProvides a boolean value indicating whether the domain is configured to be automatically started the next time the host machine boots only. r   z"virDomainGetAutostartOnce() failed)r   virDomainGetAutostartOncer   r   r   s     r    autostartOncevirDomain.autostartOnce  .    22477;"9CDD
r"   c                 l    [         R                  " U R                  XU5      nUS:X  a  [        S5      eU$ )a
  Start a point-in-time backup job for the specified disks of a
running domain.

A backup job is a domain job and thus mutually exclusive with any other
domain job such as migration.

For now, backup jobs are also mutually exclusive with any
other block job on the same device, although this restriction may
be lifted in a future release. Progress of the backup job can be
tracked via virDomainGetJobStats(). Completion of the job is also announced
asynchronously via VIR_DOMAIN_EVENT_ID_JOB_COMPLETED event.

There are two fundamental backup approaches. The first, called a
push model, instructs the hypervisor to copy the state of the guest
disk to the designated storage destination (which may be on the
local file system or a network device). In this mode, the
hypervisor writes the content of the guest disk to the destination,
then emits VIR_DOMAIN_EVENT_ID_JOB_COMPLETED when the backup is
either complete or failed (the backup image is invalid if the job
fails or virDomainAbortJob() is used prior to the event being
emitted). This kind of the job finishes automatically. Users can
determine success by using virDomainGetJobStats() with
VIR_DOMAIN_JOB_STATS_COMPLETED flag.

The second, called a pull model, instructs the hypervisor to expose
the state of the guest disk over an NBD export. A third-party
client can then connect to this export and read whichever portions
of the disk it desires.  In this mode libvirt has to be informed via
virDomainAbortJob() when the third-party NBD client is done and the backup
resources can be released.

The @backupXML parameter contains details about the backup in the top-level
element <domainbackup>, including which backup mode to use, whether the
backup is incremental from a previous checkpoint, which disks
participate in the backup, the destination for a push model backup,
and the temporary storage and NBD server details for a pull model
backup.

virDomainBackupGetXMLDesc() can be called to learn actual
values selected.  For more information, see
https://libvirt.org/formatbackup.html#backup-xml

The @checkpointXML parameter is optional; if non-None, then libvirt
behaves as if virDomainCheckpointCreateXML() were called to create
a checkpoint atomically covering the same point in time as the
backup.

The VIR_DOMAIN_BACKUP_BEGIN_REUSE_EXTERNAL specifies that the output or
temporary files described by the @backupXML document were created by the
caller with correct format and size to hold the backup or temporary data.

The creation of a new checkpoint allows for future incremental backups.
Note that some hypervisors may require a particular disk format, such as
qcow2, in order to take advantage of checkpoints, while allowing arbitrary
formats if checkpoints are not involved. r   zvirDomainBackupBegin() failed)r   virDomainBackupBeginr   r   )r   	backupXMLcheckpointXMLrX   r]   s        r    backupBeginvirDomain.backupBegin  s6    p --dggyQVW"9>??
r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )a&  Queries the configuration of the active backup job.

In some cases, a user can start a backup job without supplying all
details and rely on libvirt to fill in the rest (for example,
selecting the port used for an NBD export). This API can then be
used to learn what default values were chosen. z"virDomainBackupGetXMLDesc() failed)r   virDomainBackupGetXMLDescr   r   r   s      r    backupGetXMLDescvirDomain.backupGetXMLDesc4  s0     22477EB;CDD
r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )zGet the blkio parameters z$virDomainGetBlkioParameters() failed)r   virDomainGetBlkioParametersr   r   r   s      r    blkioParametersvirDomain.blkioParametersD  .    44TWWeD;EFF
r"   c                 n    [         R                  " U R                  XX4U5      nUS:X  a  [        S5      eU$ )aB  Commit changes that were made to temporary top-level files within a disk
image backing file chain into a lower-level base file.  In other words,
take all the difference between @base and @top, and update @base to contain
that difference; after the commit, any portion of the chain that previously
depended on @top will now depend on @base, and all files after @base up
to and including @top will now be invalidated.  A typical use of this
command is to reduce the length of a backing file chain after taking an
external disk snapshot.  To move data in the opposite direction, see
virDomainBlockPull().

This command starts a long-running commit block job, whose status may
be tracked by virDomainBlockJobInfo() with a job type of
VIR_DOMAIN_BLOCK_JOB_TYPE_COMMIT, and the operation can be aborted with
virDomainBlockJobAbort().  When finished, an asynchronous event is
raised to indicate the final status, and the job no longer exists.  If
the job is aborted, it is up to the hypervisor whether starting a new
job will resume from the same point, or start over.

As a special case, if @top is the active image (or None), and @flags
includes VIR_DOMAIN_BLOCK_COMMIT_ACTIVE, the block job will have a type
of VIR_DOMAIN_BLOCK_JOB_TYPE_ACTIVE_COMMIT, and operates in two phases.
In the first phase, the contents are being committed into @base, and the
job can only be canceled.  The job transitions to the second phase when
the block job event with state VIR_DOMAIN_BLOCK_JOB_READY is
emitted for the given device. This information is also visible in the
live XML as 'ready="yes"' attribute of the corresponding <mirror> element.
Once in the second phase, the user must choose whether to cancel the job
(keeping @top as the active image, but now containing only the changes
since the time the job ended) or to pivot the job (adjusting to @base as
the active image, and invalidating @top).

Be aware that this command may invalidate files even if it is aborted;
the user is cautioned against relying on the contents of invalidated
intermediate files such as @top (when @top is not the active image)
without manually rebasing those files to use a backing file of a
read-only copy of @base prior to the point where the commit operation
was started (and such a rebase cannot be safely done until the commit
has successfully completed).  However, the domain itself will not have
any issues; the active layer remains valid throughout the entire commit
operation.

Some hypervisors may support a shortcut where if @flags contains
VIR_DOMAIN_BLOCK_COMMIT_DELETE, then this command will unlink all files
that were invalidated, after the commit successfully completes.

If @flags contains VIR_DOMAIN_BLOCK_COMMIT_RELATIVE, the name recorded
into the overlay of the @top image (if there is such image) as the
path to the new backing file will be kept relative to other images.
The operation will fail if libvirt can't infer the name.

By default, if @base is None, the commit target will be the bottom of
the backing chain; if @flags contains VIR_DOMAIN_BLOCK_COMMIT_SHALLOW,
then the immediate backing file of @top will be used instead.  If @top
is None, the active image at the top of the chain will be used.  Some
hypervisors place restrictions on how much can be committed, and might
fail if @base is not the immediate backing file of @top, or if @top is
the active layer in use by a running domain but @flags did not include
VIR_DOMAIN_BLOCK_COMMIT_ACTIVE, or if @top is not the top-most file;
restrictions may differ for online vs. offline domains.

The @disk parameter is either an unambiguous source name of the
block device (the <source file='...'/> sub-element, such as
"/path/to/image"), or the device target shorthand (the
<target dev='...'/> sub-element, such as "vda").  Valid names
can be found by calling virDomainGetXMLDesc() and inspecting
elements within //domain/devices/disk.

The @base and @top parameters can be either paths to files within the
backing chain, or the device target shorthand (the <target dev='...'/>
sub-element, such as "vda") followed by an index to the backing chain
enclosed in square brackets. Backing chain indexes can be found by
inspecting //disk//backingStore/@index in the domain XML. Thus, for
example, "vda[3]" refers to the backing store with index equal to "3"
in the chain of disk "vda".

The maximum bandwidth that will be used to do the commit can be
specified with the @bandwidth parameter.  If set to 0, there is no
limit.  If @flags includes VIR_DOMAIN_BLOCK_COMMIT_BANDWIDTH_BYTES,
@bandwidth is in bytes/second; otherwise, it is in MiB/second.
Values larger than 2^52 bytes/sec may be rejected due to overflow
considerations based on the word size of both client and server,
and values larger than 2^31 bytes/sec may cause overflow problems
if later queried by virDomainGetBlockJobInfo() without scaling.
Hypervisors may further restrict the range of valid bandwidth
values.  Some hypervisors do not support this feature and will
return an error if bandwidth is not 0; in this case, it might still
be possible for a later call to virDomainBlockJobSetSpeed() to
succeed.  The actual speed can be determined with
virDomainGetBlockJobInfo(). r   zvirDomainBlockCommit() failed)r   virDomainBlockCommitr   r   )r   diskbasetop	bandwidthrX   r]   s          r    blockCommitvirDomain.blockCommitO  s8    t --dggt3SXY"9>??
r"   c                 l    [         R                  " U R                  XX45      nUS:X  a  [        S5      eU$ )zSCopy the guest-visible contents of a disk image to a new file described by destxml r   zvirDomainBlockCopy() failed)r   virDomainBlockCopyr   r   )r   r)  destxmlparamsrX   r]   s         r    	blockCopyvirDomain.blockCopy  s2    ++DGGTFR"9<==
r"   c                 d    [         R                  " U R                  X5      nUc  [        S5      eU$ )z5Extract information about a domain block device size zvirDomainGetBlockInfo() failed)r   virDomainGetBlockInfor   r   r   pathrX   r]   s       r    	blockInfovirDomain.blockInfo  s.    ..twwD;?@@
r"   c                 d    [         R                  " U R                  X5      nUc  [        S5      eU$ )z(Get the I/O tunables for a block device z virDomainGetBlockIoTune() failed)r   virDomainGetBlockIoTuner   r   r   r)  rX   r]   s       r    blockIoTunevirDomain.blockIoTune  s.    00$F;ABB
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )a  Cancel the active block job on the given disk.

The @disk parameter is either an unambiguous source name of the
block device (the <source file='...'/> sub-element, such as
"/path/to/image"), or (since 0.9.5) the device target shorthand
(the <target dev='...'/> sub-element, such as "vda").  Valid names
can be found by calling virDomainGetXMLDesc() and inspecting
elements within //domain/devices/disk.

If the current block job for @disk is VIR_DOMAIN_BLOCK_JOB_TYPE_PULL, then
by default, this function performs a synchronous operation and the caller
may assume that the operation has completed when 0 is returned.  However,
BlockJob operations may take a long time to cancel, and during this time
further domain interactions may be unresponsive.  To avoid this problem,
pass VIR_DOMAIN_BLOCK_JOB_ABORT_ASYNC in the @flags argument to enable
asynchronous behavior, returning as soon as possible.  When the job has
been canceled, a BlockJob event will be emitted, with status
VIR_DOMAIN_BLOCK_JOB_CANCELED (even if the ABORT_ASYNC flag was not
used); it is also possible to poll virDomainBlockJobInfo() to see if
the job cancellation is still pending.  This type of job can be restarted
to pick up from where it left off.

If the current block job for @disk is VIR_DOMAIN_BLOCK_JOB_TYPE_COPY, then
the default is to abort the mirroring and revert to the source disk;
likewise, if the current job is VIR_DOMAIN_BLOCK_JOB_TYPE_ACTIVE_COMMIT,
the default is to abort without changing the active layer of @disk.
Adding @flags of VIR_DOMAIN_BLOCK_JOB_ABORT_PIVOT causes this call to
fail with VIR_ERR_BLOCK_COPY_ACTIVE if the copy or commit is not yet
ready; otherwise it will swap the disk over to the new active image
to end the mirroring or active commit.  An event will be issued when the
job is ended, and it is possible to use VIR_DOMAIN_BLOCK_JOB_ABORT_ASYNC
to control whether this command waits for the completion of the job.
Restarting a copy or active commit job requires starting over from the
beginning of the first phase. r   zvirDomainBlockJobAbort() failed)r   virDomainBlockJobAbortr   r   r=  s       r    blockJobAbortvirDomain.blockJobAbort  s3    F //E"9@AA
r"   c                 d    [         R                  " U R                  X5      nUc  [        S5      eU$ )z)Get progress information for a block job z!virDomainGetBlockJobInfo() failed)r   virDomainGetBlockJobInfor   r   r7  s       r    blockJobInfovirDomain.blockJobInfo  .    11$''4G;BCC
r"   c                 l    [         R                  " U R                  XU5      nUS:X  a  [        S5      eU$ )a  Set the maximum allowable bandwidth that a block job may consume.  If
bandwidth is 0, the limit will revert to the hypervisor default of
unlimited.

If @flags contains VIR_DOMAIN_BLOCK_JOB_SPEED_BANDWIDTH_BYTES, @bandwidth
is in bytes/second; otherwise, it is in MiB/second.  Values larger than
2^52 bytes/sec may be rejected due to overflow considerations based on
the word size of both client and server, and values larger than 2^31
bytes/sec may cause overflow problems if later queried by
virDomainGetBlockJobInfo() without scaling.  Hypervisors may further
restrict the range of valid bandwidth values.

The @disk parameter is either an unambiguous source name of the
block device (the <source file='...'/> sub-element, such as
"/path/to/image"), or (since 0.9.5) the device target shorthand
(the <target dev='...'/> sub-element, such as "vda").  Valid names
can be found by calling virDomainGetXMLDesc() and inspecting
elements within //domain/devices/disk. r   z"virDomainBlockJobSetSpeed() failed)r   virDomainBlockJobSetSpeedr   r   r   r)  r,  rX   r]   s        r    blockJobSetSpeedvirDomain.blockJobSetSpeed  s4    & 22477DUS"9CDD
r"   c                 f    [         R                  " U R                  XX45      nUc  [        S5      eU$ )z*Read the contents of domain's disk device zvirDomainBlockPeek() failed)r   virDomainBlockPeekr   r   )r   r)  offsetsizerX   r]   s         r    	blockPeekvirDomain.blockPeek  s0    ++DGGT4O;<==
r"   c                 l    [         R                  " U R                  XU5      nUS:X  a  [        S5      eU$ )a  Populate a disk image with data from its backing image.  Once all data from
its backing image has been pulled, the disk no longer depends on a backing
image.  This function pulls data for the entire device in the background.
Progress of the operation can be checked with virDomainGetBlockJobInfo() and
the operation can be aborted with virDomainBlockJobAbort().  When finished,
an asynchronous event is raised to indicate the final status.  To move
data in the opposite direction, see virDomainBlockCommit().

The @disk parameter is either an unambiguous source name of the
block device (the <source file='...'/> sub-element, such as
"/path/to/image"), or (since 0.9.5) the device target shorthand
(the <target dev='...'/> sub-element, such as "vda").  Valid names
can be found by calling virDomainGetXMLDesc() and inspecting
elements within //domain/devices/disk.

The maximum bandwidth that will be used to do the copy can be
specified with the @bandwidth parameter.  If set to 0, there is no
limit.  If @flags includes VIR_DOMAIN_BLOCK_PULL_BANDWIDTH_BYTES,
@bandwidth is in bytes/second; otherwise, it is in MiB/second.
Values larger than 2^52 bytes/sec may be rejected due to overflow
considerations based on the word size of both client and server,
and values larger than 2^31 bytes/sec may cause overflow problems
if later queried by virDomainGetBlockJobInfo() without scaling.
Hypervisors may further restrict the range of valid bandwidth
values.  Some hypervisors do not support this feature and will
return an error if bandwidth is not 0; in this case, it might still
be possible for a later call to virDomainBlockJobSetSpeed() to
succeed.  The actual speed can be determined with
virDomainGetBlockJobInfo().

This is shorthand for virDomainBlockRebase() with a None base. r   zvirDomainBlockPull() failed)r   virDomainBlockPullr   r   rK  s        r    	blockPullvirDomain.blockPull)  s5    @ ++DGGTeL"9<==
r"   c                 l    [         R                  " U R                  XX45      nUS:X  a  [        S5      eU$ )a  Populate a disk image with data from its backing image chain, and
setting the backing image to @base, or alternatively copy an entire
backing chain to a new file @base.

When @flags is 0, this starts a pull, where @base must be the absolute
path of one of the backing images further up the chain, or None to
convert the disk image so that it has no backing image.  Once all
data from its backing image chain has been pulled, the disk no
longer depends on those intermediate backing images.  This function
pulls data for the entire device in the background.  Progress of
the operation can be checked with virDomainGetBlockJobInfo() with a
job type of VIR_DOMAIN_BLOCK_JOB_TYPE_PULL, and the operation can be
aborted with virDomainBlockJobAbort().  When finished, an asynchronous
event is raised to indicate the final status, and the job no longer
exists.  If the job is aborted, a new one can be started later to
resume from the same point.

If @flags contains VIR_DOMAIN_BLOCK_REBASE_RELATIVE, the name recorded
into the active disk as the location for @base will be kept relative.
The operation will fail if libvirt can't infer the name.

When @flags includes VIR_DOMAIN_BLOCK_REBASE_COPY, this starts a copy,
where @base must be the name of a new file to copy the chain to.  By
default, the copy will pull the entire source chain into the destination
file, but if @flags also contains VIR_DOMAIN_BLOCK_REBASE_SHALLOW, then
only the top of the source chain will be copied (the source and
destination have a common backing file).  By default, @base will be
created with the same file format as the source, but this can be altered
by adding VIR_DOMAIN_BLOCK_REBASE_COPY_RAW to force the copy to be raw
(does not make sense with the shallow flag unless the source is also raw),
or by using VIR_DOMAIN_BLOCK_REBASE_REUSE_EXT to reuse an existing file
which was pre-created with the correct format and metadata and sufficient
size to hold the copy. In case the VIR_DOMAIN_BLOCK_REBASE_SHALLOW flag
is used the pre-created file has to exhibit the same guest visible contents
as the backing file of the original image. This allows a management app to
pre-create files with relative backing file names, rather than the default
of absolute backing file names; as a security precaution, you should
generally only use reuse_ext with the shallow flag and a non-raw
destination file.  By default, the copy destination will be treated as
type='file', but using VIR_DOMAIN_BLOCK_REBASE_COPY_DEV treats the
destination as type='block' (affecting how virDomainGetBlockInfo() will
report allocation after pivoting).

A copy job has two parts; in the first phase, the @bandwidth parameter
affects how fast the source is pulled into the destination, and the job
can only be canceled by reverting to the source file; progress in this
phase can be tracked via the virDomainBlockJobInfo() command, with a
job type of VIR_DOMAIN_BLOCK_JOB_TYPE_COPY.  The job transitions to the
second phase when the job info states cur == end, and remains alive to
mirror all further changes to both source and destination.  The user
must call virDomainBlockJobAbort() to end the mirroring while choosing
whether to revert to source or pivot to the destination.  An event is
issued when the job ends, and depending on the hypervisor, an event may
also be issued when the job transitions from pulling to mirroring.  If
the job is aborted, a new job will have to start over from the beginning
of the first phase.

Some hypervisors will restrict certain actions, such as virDomainSave()
or virDomainDetachDevice(), while a copy job is active; they may
also restrict a copy job to transient domains.

The @disk parameter is either an unambiguous source name of the
block device (the <source file='...'/> sub-element, such as
"/path/to/image"), or the device target shorthand (the
<target dev='...'/> sub-element, such as "vda").  Valid names
can be found by calling virDomainGetXMLDesc() and inspecting
elements within //domain/devices/disk.

The @base parameter can be either a path to a file within the backing
chain, or the device target shorthand (the <target dev='...'/>
sub-element, such as "vda") followed by an index to the backing chain
enclosed in square brackets. Backing chain indexes can be found by
inspecting //disk//backingStore/@index in the domain XML. Thus, for
example, "vda[3]" refers to the backing store with index equal to "3"
in the chain of disk "vda".

The maximum bandwidth that will be used to do the copy can be
specified with the @bandwidth parameter.  If set to 0, there is no
limit.  If @flags includes VIR_DOMAIN_BLOCK_REBASE_BANDWIDTH_BYTES,
@bandwidth is in bytes/second; otherwise, it is in MiB/second.
Values larger than 2^52 bytes/sec may be rejected due to overflow
considerations based on the word size of both client and server,
and values larger than 2^31 bytes/sec may cause overflow problems
if later queried by virDomainGetBlockJobInfo() without scaling.
Hypervisors may further restrict the range of valid bandwidth
values.  Some hypervisors do not support this feature and will
return an error if bandwidth is not 0; in this case, it might still
be possible for a later call to virDomainBlockJobSetSpeed() to
succeed.  The actual speed can be determined with
virDomainGetBlockJobInfo().

When @base is None and @flags is 0, this is identical to
virDomainBlockPull().  When @flags contains VIR_DOMAIN_BLOCK_REBASE_COPY,
this command is shorthand for virDomainBlockCopy() where the destination
XML encodes @base as a <disk type='file'>, @bandwidth is properly scaled
and passed as a typed parameter, the shallow and reuse external flags
are preserved, and remaining flags control whether the XML encodes a
destination format of raw instead of leaving the destination identical
to the source format or probed from the reused file. r   zvirDomainBlockRebase() failed)r   virDomainBlockRebaser   r   )r   r)  r*  r,  rX   r]   s         r    blockRebasevirDomain.blockRebaseN  s5    H --dggt9T"9>??
r"   c                 l    [         R                  " U R                  XU5      nUS:X  a  [        S5      eU$ )a  Resize a block device of domain while the domain is running.  If
@flags is 0, then @size is in kibibytes (blocks of 1024 bytes);
since 0.9.11, if @flags includes VIR_DOMAIN_BLOCK_RESIZE_BYTES,
@size is in bytes instead.  @size is taken directly as the new
size.  Depending on the file format, the hypervisor may round up
to the next alignment boundary.

If @flag contains VIR_DOMAIN_BLOCK_RESIZE_CAPACITY (since 10.0.0) the
hypervisor will resize the guest block device to fully fill the source.
@size must be either set to zero, or to the exact size of the block
device source. This is possible only for image formats with no metadata
('raw') and for source devices with limited capacity such as block devices.

The @disk parameter is either an unambiguous source name of the
block device (the <source file='...'/> sub-element, such as
"/path/to/image"), or (since 0.9.5) the device target shorthand
(the <target dev='...'/> sub-element, such as "vda").  Valid names
can be found by calling virDomainGetXMLDesc() and inspecting
elements within //domain/devices/disk.

Note that this call may fail if the underlying virtualization hypervisor
does not support it; this call requires privileged access to the
hypervisor. r   zvirDomainBlockResize() failed)r   virDomainBlockResizer   r   )r   r)  rQ  rX   r]   s        r    blockResizevirDomain.blockResize  s4    0 --dggt5I"9>??
r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )z.Extracts block device statistics for a domain zvirDomainBlockStats() failed)r   virDomainBlockStatsr   r   r   r8  r]   s      r    
blockStatsvirDomain.blockStats  s.    ,,TWWd;;=>>
r"   c                 d    [         R                  " U R                  X5      nUc  [        S5      eU$ )z@Extracts block device statistics parameters of a running domain z!virDomainBlockStatsFlags() failed)r   virDomainBlockStatsFlagsr   r   r7  s       r    blockStatsFlagsvirDomain.blockStatsFlags  rH  r"   c                 v    [         R                  " U R                  X5      nUc  [        S5      e[	        XS9nU$ )a	  Create a new checkpoint using @xmlDesc, with a top-level
<domaincheckpoint> element, on a running @domain.  Note that
@xmlDesc must validate against the <domaincheckpoint> XML schema.
Typically, it is more common to create a new checkpoint as part of
kicking off a backup job with virDomainBackupBegin(); however, it
is also possible to start a checkpoint without a backup.

See https://libvirt.org/formatcheckpoint.html#checkpoint-xml
for more details on @xmlDesc. In particular, some hypervisors may require
particular disk formats, such as qcow2, in order to support this
command; where @xmlDesc can be used to limit the checkpoint to a working
subset of the domain's disks.

If @flags includes VIR_DOMAIN_CHECKPOINT_CREATE_REDEFINE, then this
is a request to reinstate checkpoint metadata that was previously
captured from virDomainCheckpointGetXMLDesc() before removing that
metadata, rather than creating a new checkpoint.  Note that while
original creation can omit a number of elements from @xmlDesc (and
libvirt will supply sane defaults based on the domain state at that
point in time), a redefinition must supply more elements (as the
domain may have changed in the meantime, so that libvirt no longer
has a way to resupply correct defaults).  Not all hypervisors support
this flag.

If @flags includes VIR_DOMAIN_CHECKPOINT_CREATE_REDEFINE_VALIDATE along with
VIR_DOMAIN_CHECKPOINT_CREATE_REDEFINE the state of the metadata related
to the disk state of the redefined checkpoint is validated. Note that
hypervisors may require that the @domain is running to perform validation.

If @flags includes VIR_DOMAIN_CHECKPOINT_CREATE_QUIESCE, then the
libvirt will attempt to use guest agent to freeze and thaw all file
systems in use within domain OS. However, if the guest agent is not
present, an error is thrown. This flag is incompatible with
VIR_DOMAIN_CHECKPOINT_CREATE_REDEFINE.

Note: A checkpoint represents point in time after which blocks changed by
the hypervisor are tracked. The tracking of changed blocks notes only whether
a block was modified, but does not preserve the old contents.
The main purpose of checkpoints is to enable incremental backups. But for a
checkpoint to be useful for this purpose, a backup must be performed at the
same time as the checkpoint is created.
This is done via the virDomainBackupBegin API, which also allows to create a
checkpoint at the same time. Creating checkpoints with
virDomainCheckpointCreateXML is generally only useful for re-creating the
libvirt metadata. z%virDomainCheckpointCreateXML() failedrZ   )r   virDomainCheckpointCreateXMLr   r   virDomainCheckpointr   xmlDescrX   r]   _virDomain__tmps        r    checkpointCreateXMLvirDomain.checkpointCreateXML  s;    \ 55dggwN;FGG#D3r"   c                 v    [         R                  " U R                  X5      nUc  [        S5      e[	        XS9nU$ )z5Try to lookup a domain checkpoint based on its name. z(virDomainCheckpointLookupByName() failedrZ   )r   virDomainCheckpointLookupByNamer   r   rk  r   r_   rX   r]   rn  s        r    checkpointLookupByName virDomain.checkpointLookupByName  s8    88$N;IJJ#D3r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )zFExtract details about current state of control interface to a domain. z virDomainGetControlInfo() failed)r   virDomainGetControlInfor   r   r   s      r    controlInfovirDomain.controlInfo*  .    00%@;ABB
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )a  This method will dump the core of a domain on a given file for analysis.
Note that for remote Xen Daemon the file path will be interpreted in
the remote host. Hypervisors may require  the user to manually ensure
proper permissions on the file named by @to.

If @flags includes VIR_DUMP_CRASH, then leave the guest shut off with
a crashed state after the dump completes.  If @flags includes
VIR_DUMP_LIVE, then make the core dump while continuing to allow
the guest to run; otherwise, the guest is suspended during the dump.
VIR_DUMP_RESET flag forces reset of the guest after dump.
The above three flags are mutually exclusive.

Additionally, if @flags includes VIR_DUMP_BYPASS_CACHE, then libvirt
will attempt to bypass the file system cache while creating the file,
or fail if it cannot do so for the given system; this can allow less
pressure on file system cache, but also risks slowing saves to NFS.

For more control over the output format, see virDomainCoreDumpWithFormat(). r   zvirDomainCoreDump() failed)r   virDomainCoreDumpr   r   )r   torX   r]   s       r    coreDumpvirDomain.coreDump5  s2    & **477B>"9;<<
r"   c                 l    [         R                  " U R                  XU5      nUS:X  a  [        S5      eU$ )aL  This method will dump the core of a domain on a given file for analysis.
Note that for remote Xen Daemon the file path will be interpreted in
the remote host. Hypervisors may require  the user to manually ensure
proper permissions on the file named by @to.

@dumpformat controls which format the dump will have; use of
VIR_DOMAIN_CORE_DUMP_FORMAT_RAW mirrors what virDomainCoreDump() will
perform.  Not all hypervisors are able to support all formats.

If @flags includes VIR_DUMP_CRASH, then leave the guest shut off with
a crashed state after the dump completes.  If @flags includes
VIR_DUMP_LIVE, then make the core dump while continuing to allow
the guest to run; otherwise, the guest is suspended during the dump.
VIR_DUMP_RESET flag forces reset of the guest after dump.
The above three flags are mutually exclusive.

Additionally, if @flags includes VIR_DUMP_BYPASS_CACHE, then libvirt
will attempt to bypass the file system cache while creating the file,
or fail if it cannot do so for the given system; this can allow less
pressure on file system cache, but also risks slowing saves to NFS. r   z$virDomainCoreDumpWithFormat() failed)r   virDomainCoreDumpWithFormatr   r   )r   r}  
dumpformatrX   r]   s        r    coreDumpWithFormatvirDomain.coreDumpWithFormatM  s4    * 44TWWbeT"9EFF
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )zLaunch a defined domain. If the call succeeds the domain moves from the
defined to the running domains pools.  The domain will be paused only
if restoring from managed state created from a paused domain.  For more
control, see virDomainCreateWithFlags(). r   zvirDomainCreate() failed)r   virDomainCreater   r   r   s     r    createvirDomain.createg  s0    
 ((1"99::
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )a  Launch a defined domain. If the call succeeds the domain moves from the
defined to the running domains pools.

If the VIR_DOMAIN_START_PAUSED flag is set, or if the guest domain
has a managed save image that requested paused state (see
virDomainManagedSave()) the guest domain will be started, but its
CPUs will remain paused. The CPUs can later be manually started
using virDomainResume().  In all other cases, the guest domain will
be running.

If the VIR_DOMAIN_START_AUTODESTROY flag is set, the guest
domain will be automatically destroyed when the virConnectPtr
object is finally released. This will also happen if the
client application crashes / loses its connection to the
libvirtd daemon. Any domains marked for auto destroy will
block attempts at migration. Hypervisors may also block save-to-file,
or snapshots.

If the VIR_DOMAIN_START_BYPASS_CACHE flag is set, and there is a
managed save file for this domain (created by virDomainManagedSave()),
then libvirt will attempt to bypass the file system cache while restoring
the file, or fail if it cannot do so for the given system; this can allow
less pressure on file system cache, but also risks slowing loads from NFS.

If the VIR_DOMAIN_START_FORCE_BOOT flag is set, then any managed save
file for this domain is discarded, and the domain boots from scratch.

If @flags includes VIR_DOMAIN_START_RESET_NVRAM, then libvirt will
discard any existing NVRAM file and re-initialize NVRAM from the
pristine template. r   z!virDomainCreateWithFlags() failed)r   virDomainCreateWithFlagsr   r   r   s      r    createWithFlagsvirDomain.createWithFlagsq  s2    > 11$''5A"9BCC
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )a  Dynamically delete an IOThread from the domain. The @iothread_id to be
deleted must not have a resource associated with it and can be any of
the currently valid IOThread ID's.

Note that this call can fail if the underlying virtualization hypervisor
does not support it or if reducing the number is arbitrarily limited.
This function requires privileged access to the hypervisor.

@flags may include VIR_DOMAIN_AFFECT_LIVE or VIR_DOMAIN_AFFECT_CONFIG.
Both flags may be set.
If VIR_DOMAIN_AFFECT_LIVE is set, the change affects a running domain
and may fail if domain is not alive.
If VIR_DOMAIN_AFFECT_CONFIG is set, the change affects persistent state,
and will fail for transient domains. If neither flag is specified (that is,
@flags is VIR_DOMAIN_AFFECT_CURRENT), then an inactive domain modifies
persistent setup, while an active domain is hypervisor-dependent on whether
just live or both live and persistent state is changed. r   zvirDomainDelIOThread() failed)r   virDomainDelIOThreadr   r   r   s       r    delIOThreadvirDomain.delIOThread  r   r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )a  Delete an throttlegroup from the domain. @group cannot be None,
and the @group to be deleted must not have a throttlefilter associated with
it and can be any of the current valid group.

@flags may include VIR_DOMAIN_AFFECT_LIVE or VIR_DOMAIN_AFFECT_CONFIG.
Both flags may be set.
If VIR_DOMAIN_AFFECT_LIVE is set, the change affects a running domain
and may fail if domain is not alive.
If VIR_DOMAIN_AFFECT_CONFIG is set, the change affects persistent state,
and will fail for transient domains. If neither flag is specified (that is,
@flags is VIR_DOMAIN_AFFECT_CURRENT), then an inactive domain modifies
persistent setup, while an active domain is hypervisor-dependent on whether
just live or both live and persistent state is changed. r   z"virDomainDelThrottleGroup() failed)r   virDomainDelThrottleGroupr   r   )r   grouprX   r]   s       r    delThrottleGroupvirDomain.delThrottleGroup  s2     22477EI"9CDD
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )aY  Destroy the domain object. The running instance is shutdown if not down
already and all resources used by it are given back to the hypervisor. This
does not free the associated virDomainPtr object.
This function may require privileged access.

virDomainDestroy first requests that a guest terminate
(e.g. SIGTERM), then waits for it to comply. After a reasonable
timeout, if the guest still exists, virDomainDestroy will
forcefully terminate the guest (e.g. SIGKILL) if necessary (which
may produce undesirable results, for example unflushed disk cache
in the guest). To avoid this possibility, it's recommended to
instead call virDomainDestroyFlags, sending the
VIR_DOMAIN_DESTROY_GRACEFUL flag.

If the domain is transient and has any snapshot metadata (see
virDomainSnapshotNum()), then that metadata will automatically
be deleted when the domain quits. r   zvirDomainDestroy() failed)r   virDomainDestroyr   r   r   s     r    destroyvirDomain.destroy  s0    $ ))$''2"9:;;
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )aO  Destroy the domain object. The running instance is shutdown if not down
already and all resources used by it are given back to the hypervisor.
This does not free the associated virDomainPtr object.
This function may require privileged access.

Calling this function with no @flags set (equal to zero) is
equivalent to calling virDomainDestroy, and after a reasonable
timeout will forcefully terminate the guest (e.g. SIGKILL) if
necessary (which may produce undesirable results, for example
unflushed disk cache in the guest). Including
VIR_DOMAIN_DESTROY_GRACEFUL in the flags will prevent the forceful
termination of the guest, and virDomainDestroyFlags will instead
return an error if the guest doesn't terminate by the end of the
timeout; at that time, the management application can decide if
calling again without VIR_DOMAIN_DESTROY_GRACEFUL is appropriate.

If VIR_DOMAIN_DESTROY_REMOVE_LOGS flag is set then domain specific
logs will be deleted as well if there are any. Note that not all
deployments are be supported. For example in case of QEMU driver
this flags is noop if virtlogd is not used for handling QEMU
process output.

Another alternative which may produce cleaner results for the
guest's disks is to use virDomainShutdown() instead, but that
depends on guest support (some hypervisor/guest combinations may
ignore the shutdown request). r   zvirDomainDestroyFlags() failed)r   virDomainDestroyFlagsr   r   r   s      r    destroyFlagsvirDomain.destroyFlags  s2    6 ..tww>"9?@@
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )zThis is an equivalent of virDomainDetachDeviceFlags() when called with
@flags parameter set to VIR_DOMAIN_AFFECT_LIVE.

See virDomainDetachDeviceFlags() for more details. r   zvirDomainDetachDevice() failed)r   virDomainDetachDevicer   r   r   s      r    detachDevicevirDomain.detachDevice  s2    
 ..tww<"9?@@
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )at  Detach a virtual device from a domain, using the alias to
specify the device. The value of @flags should be either
VIR_DOMAIN_AFFECT_CURRENT, or a bitwise-or of values from
VIR_DOMAIN_AFFECT_LIVE and VIR_DOMAIN_AFFECT_CURRENT, although
hypervisors vary in which flags are supported.

In contrast to virDomainDetachDeviceFlags() this API is
asynchronous - it returns immediately after sending the detach
request to the hypervisor. It's caller's responsibility to
wait for VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED event to signal
actual device removal or for
VIR_DOMAIN_EVENT_ID_DEVICE_REMOVAL_FAILED to signal rejected
device removal. r   z#virDomainDetachDeviceAlias() failed)r   virDomainDetachDeviceAliasr   r   )r   aliasrX   r]   s       r    detachDeviceAliasvirDomain.detachDeviceAlias   s2     33DGGUJ"9DEE
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )a	  Detach a virtual device from a domain, using the flags parameter
to control how the device is detached.  VIR_DOMAIN_AFFECT_CURRENT
specifies that the device allocation is removed based on current domain
state.  VIR_DOMAIN_AFFECT_LIVE specifies that the device shall be
deallocated from the active domain instance only and is not from the
persisted domain configuration.  VIR_DOMAIN_AFFECT_CONFIG
specifies that the device shall be deallocated from the persisted domain
configuration only.  Note that the target hypervisor must return an
error if unable to satisfy flags.  E.g. the hypervisor driver will
return failure if LIVE is specified but it only supports removing the
persisted device allocation.

Some hypervisors may prevent this operation if there is a current
block job running operation on the device being detached; in that case,
use virDomainBlockJobAbort() to stop the block job first.

Beware that depending on the hypervisor and device type, detaching a device
from a running domain may be asynchronous. That is, calling
virDomainDetachDeviceFlags may just request device removal while the device
is actually removed later (in cooperation with a guest OS). Previously,
this fact was ignored and the device could have been removed from domain
configuration before it was actually removed by the hypervisor causing
various failures on subsequent operations. To check whether the device was
successfully removed, either recheck domain configuration using
virDomainGetXMLDesc() or add a handler for the VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED
event. In case the device is already gone when virDomainDetachDeviceFlags
returns, the event is delivered before this API call ends. To help existing
clients work better in most cases, this API will try to transform an
asynchronous device removal that finishes shortly after the request into
a synchronous removal. In other words, this API may wait a bit for the
removal to complete in case it was not synchronous.

Be aware that hotplug changes might not persist across a domain going
into S4 state (also known as hibernation) unless you also modify the
persistent domain definition.

The supplied XML description of the device should be as specific
as its definition in the domain XML. The set of attributes used
to match the device are internal to the drivers. Using a partial definition,
or attempting to detach a device that is not present in the domain XML,
but shares some specific attributes with one that is present,
may lead to unexpected results. r   z#virDomainDetachDeviceFlags() failed)r   virDomainDetachDeviceFlagsr   r   r  s       r    detachDeviceFlagsvirDomain.detachDeviceFlags  s3    V 33DGGSH"9DEE
r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )z Extract errors on disk devices. zvirDomainGetDiskErrors() failed)r   virDomainGetDiskErrorsr   r   r   s      r    
diskErrorsvirDomain.diskErrorsG  .    //?;@AA
r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )zAQuery the CPU affinity setting of the emulator process of domain z$virDomainGetEmulatorPinInfo() failed)r   virDomainGetEmulatorPinInfor   r   r   s      r    emulatorPinInfovirDomain.emulatorPinInfoN  r&  r"   c                 l    [         R                  " U R                  XU5      nUS:X  a  [        S5      eU$ )a  Calls FITRIM within the guest (hence guest agent may be
required depending on hypervisor used). Either call it on each
mounted filesystem (@mountPoint is None) or just on specified
@mountPoint. @minimum hints that free ranges smaller than this
may be ignored (this is a hint and the guest may not respect
it).  By increasing this value, the fstrim operation will
complete more quickly for filesystems with badly fragmented
free space, although not all blocks will be discarded.
If @minimum is not zero, the command may fail. r   zvirDomainFSTrim() failed)r   virDomainFSTrimr   r   )r   
mountPointminimumrX   r]   s        r    fSTrimvirDomain.fSTrimY  s4     ((*uM"99::
r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )zjGet a list of mapping information for each mounted file systems within the specified guest and the disks. zvirDomainGetFSInfo() failed)r   virDomainGetFSInfor   r   r   s      r    fsInfovirDomain.fsInfol  s.    ++DGGU;;<==
r"   c                 d    [         R                  " U R                  X5      nUc  [        S5      eU$ )a  Extracts CPU statistics for a running domain. On success it will
return a list of data of dictionary type. If boolean total is False or 0, the
first element of the list refers to CPU0 on the host, second element is
CPU1, and so on. The format of data struct is as follows:
[{cpu_time:xxx}, {cpu_time:xxx}, ...]
If it is True or 1, it returns total domain CPU statistics in the format of
[{cpu_time:xxx, user_time:xxx, system_time:xxx}] zvirDomainGetCPUStats() failed)r   virDomainGetCPUStatsr   r   )r   totalrX   r]   s       r    getCPUStatsvirDomain.getCPUStatss  s0     --dgguD;>??
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )zeReload domain's graphics. This can be used to reload TLS certificates
without restarting the domain. r   z virDomainGraphicsReload() failed)r   virDomainGraphicsReloadr   r   )r   r   rX   r]   s       r    graphicsReloadvirDomain.graphicsReload  s2     00$F"9ABB
r"   c                 d    [         R                  " U R                  X5      nUc  [        S5      eU$ )z%Get aggregated info from guest agent zvirDomainGetGuestInfo() failed)r   virDomainGetGuestInfor   r   )r   typesrX   r]   s       r    	guestInfovirDomain.guestInfo  s.    ..twwE;?@@
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )zBreturns a dictionary containing information regarding guest vcpus r   zvirDomainGetGuestVcpus() failed)r   virDomainGetGuestVcpusr   r   r   s      r    
guestVcpusvirDomain.guestVcpus  s0    //?"9@AA
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )z0Determine if the domain has a current snapshot. r   z$virDomainHasCurrentSnapshot() failed)r   virDomainHasCurrentSnapshotr   r   r   s      r    hasCurrentSnapshotvirDomain.hasCurrentSnapshot  0    44TWWeD"9EFF
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )zCheck if a domain has a managed save image as created by
virDomainManagedSave(). Note that any running domain should not have
such an image, as it should have been removed on restart. r   z%virDomainHasManagedSaveImage() failed)r   virDomainHasManagedSaveImager   r   r   s      r    hasManagedSaveImagevirDomain.hasManagedSaveImage  s2     55dgguE"9FGG
r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )zGet the hostname for that domain. If no hostname is found,
then an error is raised with VIR_ERR_NO_HOSTNAME code.

Dependent on hypervisor and @flags used, this may require a
guest agent to be available. zvirDomainGetHostname() failed)r   virDomainGetHostnamer   r   r   s      r    hostnamevirDomain.hostname  s0     --dggu=;>??
r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )zExtract information about a domain. Note that if the connection used to get the domain is limited only a partial set of the information can be extracted. zvirDomainGetInfo() failed)r   virDomainGetInfor   r   r   s     r    infovirDomain.info  r   r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )zSend NMI to the guest r   zvirDomainInjectNMI() failed)r   virDomainInjectNMIr   r   r   s      r    	injectNMIvirDomain.injectNMI  s0    ++DGGU;"9<==
r"   c                 d    [         R                  " U R                  X5      nUc  [        S5      eU$ )zPreturns a dictionary of domain interfaces along with their MAC and IP addresses z$virDomainInterfaceAddresses() failed)r   virDomainInterfaceAddressesr   r   )r   sourcerX   r]   s       r    interfaceAddressesvirDomain.interfaceAddresses  s.    44TWWfL;EFF
r"   c                 d    [         R                  " U R                  X5      nUc  [        S5      eU$ )z2Get the bandwidth tunables for a interface device z(virDomainGetInterfaceParameters() failed)r   virDomainGetInterfaceParametersr   r   )r   devicerX   r]   s       r    interfaceParametersvirDomain.interfaceParameters  s.    88&P;IJJ
r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )z2Extracts interface device statistics for a domain z virDomainInterfaceStats() failed)r   virDomainInterfaceStatsr   r   rb  s      r    interfaceStatsvirDomain.interfaceStats  s.    00$?;ABB
r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )z>Query the CPU affinity setting of the IOThreads of the domain z!virDomainGetIOThreadInfo() failed)r   virDomainGetIOThreadInfor   r   r   s      r    ioThreadInfovirDomain.ioThreadInfo  s.    11$''5A;BCC
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )z-Determine if the domain is currently running r   zvirDomainIsActive() failed)r   virDomainIsActiver   r   r   s     r    isActivevirDomain.isActive  s.    **4773"9;<<
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )zkDetermine if the domain has a persistent configuration
which means it will still exist after shutting down r   zvirDomainIsPersistent() failed)r   virDomainIsPersistentr   r   r   s     r    isPersistentvirDomain.isPersistent  s0     ..tww7"9?@@
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )z*Determine if the domain has been updated. r   zvirDomainIsUpdated() failed)r   virDomainIsUpdatedr   r   r   s     r    	isUpdatedvirDomain.isUpdated
  .    ++DGG4"9<==
r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )FExtract information about an active job being processed for a domain. zvirDomainGetJobInfo() failed)r   virDomainGetJobInfor   r   r   s     r    jobInfovirDomain.jobInfo  s,    ,,TWW5;=>>
r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )r  zvirDomainGetJobStats() failed)r   virDomainGetJobStatsr   r   r   s      r    jobStatsvirDomain.jobStats  .    --dggu=;>??
r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )z&Get launch security info for a domain z'virDomainGetLaunchSecurityInfo() failed)r   virDomainGetLaunchSecurityInfor   r   r   s      r    launchSecurityInfovirDomain.launchSecurityInfo#  s.    77G;HII
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )ax  This method will suspend a domain and save its memory contents to
a file on disk. After the call, if successful, the domain is not
listed as running anymore.
The difference from virDomainSave() is that libvirt is keeping track of
the saved state itself, and will reuse it once the domain is being
restarted (automatically or via an explicit libvirt call).
As a result any running domain is sure to not have a managed saved image.
This also implies that managed save only works on persistent domains,
since the domain must still exist in order to use virDomainCreate() to
restart it.

If @flags includes VIR_DOMAIN_SAVE_BYPASS_CACHE, then libvirt will
attempt to bypass the file system cache while creating the file, or
fail if it cannot do so for the given system; this can allow less
pressure on file system cache, but also risks slowing saves to NFS.

Normally, the managed saved state will remember whether the domain
was running or paused, and start will resume to the same state.
Specifying VIR_DOMAIN_SAVE_RUNNING or VIR_DOMAIN_SAVE_PAUSED in
@flags will override the default saved into the file.  These two
flags are mutually exclusive. r   zvirDomainManagedSave() failed)r   virDomainManagedSaver   r   r   s      r    managedSavevirDomain.managedSave.  s2    , --dggu="9>??
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )aq  This updates the definition of a domain stored in a saved state
file.

@dxml can be used to alter host-specific portions of the domain XML
that will be used on the next start of the domain. For example, it is
possible to alter the backing filename that is associated with a
disk device.

Normally, the saved state file will remember whether the domain was
running or paused, and restore defaults to the same state.
Specifying VIR_DOMAIN_SAVE_RUNNING or VIR_DOMAIN_SAVE_PAUSED in
@flags will override the default saved into the file; omitting both
leaves the file's default unchanged.  These two flags are mutually
exclusive. r   z&virDomainManagedSaveDefineXML() failed)r   virDomainManagedSaveDefineXMLr   r   )r   dxmlrX   r]   s       r    managedSaveDefineXMLvirDomain.managedSaveDefineXMLI  s2     66twwL"9GHH
r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )zThis method will extract the XML description of the managed save
state file of a domain.

No security-sensitive data will be included unless @flags contains
VIR_DOMAIN_SAVE_IMAGE_XML_SECURE; this flag is rejected on read-only
connections. z'virDomainManagedSaveGetXMLDesc() failed)r   virDomainManagedSaveGetXMLDescr   r   r   s      r    managedSaveGetXMLDescvirDomain.managedSaveGetXMLDesc]  s0     77G;HII
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )z/Remove any managed save image for this domain. r   z#virDomainManagedSaveRemove() failed)r   virDomainManagedSaveRemover   r   r   s      r    managedSaveRemovevirDomain.managedSaveRemovei  s0    33DGGUC"9DEE
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )zRetrieve the maximum amount of physical memory allocated to a
domain. If domain is None, then this get the amount of memory reserved
to Domain0 i.e. the domain where the application runs. r   zvirDomainGetMaxMemory() failed)r   virDomainGetMaxMemoryr   r   r   s     r    	maxMemoryvirDomain.maxMemoryp  s0     ..tww7!8?@@
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )a2  Provides the maximum number of virtual CPUs supported for
the guest VM. If the guest is inactive, this is basically
the same as virConnectGetMaxVcpus(). If the guest is running
this will reflect the maximum number of virtual CPUs the
guest was booted with.  For more details, see virDomainGetVcpusFlags(). r   zvirDomainGetMaxVcpus() failed)r   virDomainGetMaxVcpusr   r   r   s     r    maxVcpusvirDomain.maxVcpusy  s0     --dgg6"9>??
r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )zGet the memory parameters z%virDomainGetMemoryParameters() failed)r   virDomainGetMemoryParametersr   r   r   s      r    memoryParametersvirDomain.memoryParameters  s.    55dgguE;FGG
r"   c                 f    [         R                  " U R                  XU5      nUc  [        S5      eU$ )z%Read the contents of domain's memory zvirDomainMemoryPeek() failed)r   virDomainMemoryPeekr   r   )r   startrQ  rX   r]   s        r    
memoryPeekvirDomain.memoryPeek  s0    ,,TWWe5I;=>>
r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )z(Extracts memory statistics for a domain zvirDomainMemoryStats() failed)r   virDomainMemoryStatsr   r   r   s     r    memoryStatsvirDomain.memoryStats  ,    --dgg6;>??
r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )z0Fetch list of messages reported against domain. zvirDomainGetMessages() failed)r   virDomainGetMessagesr   r   r   s      r    messagesvirDomain.messages  r  r"   c                 f    [         R                  " U R                  XU5      nUc  [        S5      eU$ )a  Retrieves the appropriate domain element given by @type.
If VIR_DOMAIN_METADATA_ELEMENT is requested parameter @uri
must be set to the name of the namespace the requested elements
belong to, otherwise must be None.

If an element of the domain XML is not present, the resulting
error will be VIR_ERR_NO_DOMAIN_METADATA.  This method forms
a shortcut for seeing information from virDomainSetMetadata()
without having to go through virDomainGetXMLDesc().

@flags controls whether the live domain or persistent
configuration will be queried. zvirDomainGetMetadata() failed)r   virDomainGetMetadatar   r   r   r   rV   rX   r]   s        r    metadatavirDomain.metadata  s2     --dggt%H;>??
r"   c                     Uc  SnOUR                   n[        R                  " U R                   XbX4U5      nUc  [        S5      e[	        U R
                  US9nU$ )a  Migrate the domain object from its current host to the destination
host given by dconn (a connection to the destination host).

This function is similar to virDomainMigrate3, but it only supports a fixed
set of parameters: @dname corresponds to VIR_MIGRATE_PARAM_DEST_NAME, @uri
is VIR_MIGRATE_PARAM_URI, and @bandwidth is VIR_MIGRATE_PARAM_BANDWIDTH.

virDomainFree should be used to free the resources after the
returned domain object is no longer needed. NzvirDomainMigrate() failedrZ   )r   r   virDomainMigrater   r   r   )	r   dconnrX   dnamerV   r,  dconn__or]   rn  s	            r    migratevirDomain.migrate  sX     =HxxH))$''8EPYZ;:;;$**3/r"   c           	          Uc  SnOUR                   n[        R                  " U R                   XrX4XV5      nUc  [        S5      e[	        U R
                  US9n	U	$ )a  Migrate the domain object from its current host to the destination
host given by dconn (a connection to the destination host).

This function is similar to virDomainMigrate3, but it only supports a fixed
set of parameters: @dxml corresponds to VIR_MIGRATE_PARAM_DEST_XML, @dname
is VIR_MIGRATE_PARAM_DEST_NAME, @uri is VIR_MIGRATE_PARAM_URI, and
@bandwidth is VIR_MIGRATE_PARAM_BANDWIDTH.

virDomainFree should be used to free the resources after the
returned domain object is no longer needed. NzvirDomainMigrate2() failedrZ   )r   r   virDomainMigrate2r   r   r   )
r   rD  r  rX   rE  rV   r,  rF  r]   rn  s
             r    migrate2virDomain.migrate2  sX     =HxxH**477HERUa;;<<$**3/r"   c                     Uc  SnOUR                   n[        R                  " U R                   XBU5      nUc  [        S5      e[	        U R
                  US9nU$ )zMigrate the domain object from its current host to the destination host
given by dconn (a connection to the destination host). NzvirDomainMigrate3() failedrZ   )r   r   virDomainMigrate3r   r   r   )r   rD  r2  rX   rF  r]   rn  s          r    migrate3virDomain.migrate3  sU     =HxxH**477HeL;;<<$**3/r"   c                 H    [         R                  " U R                  U5      nU$ )zyGet current size of the cache (in bytes) used for compressing
repeatedly transferred memory pages during live migration. )r   #virDomainMigrateGetCompressionCacher   r   s      r    migrateGetCompressionCache$virDomain.migrateGetCompressionCache  s     <<TWWeL
r"   c                 H    [         R                  " U R                  U5      nU$ )zgGet the current value of the maximum downtime (in milliseconds)
allowed during a migration of a guest. )r   virDomainMigrateGetMaxDowntimer   r   s      r    migrateGetMaxDowntimevirDomain.migrateGetMaxDowntime  s     77G
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )z>Get currently configured maximum migration speed for a domain r   z$virDomainMigrateGetMaxSpeed() failed)r   virDomainMigrateGetMaxSpeedr   r   r   s      r    migrateGetMaxSpeedvirDomain.migrateGetMaxSpeed   r  r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )a/  Sets size of the cache (in bytes) used for compressing repeatedly
transferred memory pages during live migration. It's supposed to be called
while the domain is being live-migrated as a reaction to migration progress
and increasing number of compression cache misses obtained from
virDomainGetJobStats. r   z,virDomainMigrateSetCompressionCache() failed)r   #virDomainMigrateSetCompressionCacher   r   )r   	cacheSizerX   r]   s       r    migrateSetCompressionCache$virDomain.migrateSetCompressionCache  s2     <<TWWiW"9MNN
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )zSets maximum tolerable time for which the domain is allowed to be paused
at the end of live migration. It's supposed to be called while the domain is
being live-migrated as a reaction to migration progress. r   z'virDomainMigrateSetMaxDowntime() failed)r   virDomainMigrateSetMaxDowntimer   r   )r   downtimerX   r]   s       r    migrateSetMaxDowntimevirDomain.migrateSetMaxDowntime  s2     77Q"9HII
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )a/  The maximum bandwidth (in MiB/s) that will be used to do migration
can be specified with the bandwidth parameter. Not all hypervisors
will support a bandwidth cap. When VIR_DOMAIN_MIGRATE_MAX_SPEED_POSTCOPY
is set in @flags, this API sets the maximum bandwidth for the post-copy
phase of the migration. r   z$virDomainMigrateSetMaxSpeed() failed)r   virDomainMigrateSetMaxSpeedr   r   )r   r,  rX   r]   s       r    migrateSetMaxSpeedvirDomain.migrateSetMaxSpeed  s2     44TWWiO"9EFF
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )a  Starts post-copy migration. This function has to be called while
migration (initiated with VIR_MIGRATE_POSTCOPY flag) is in progress.

Traditional pre-copy migration iteratively walks through guest memory
pages and migrates those that changed since the previous iteration. The
iterative phase stops when the number of dirty pages is low enough so that
the virtual CPUs can be paused, all dirty pages transferred to the
destination, where the virtual CPUs are unpaused, and all this can happen
within a predefined downtime period. It's clear that this process may never
converge if downtime is too short and/or the guest keeps changing a lot of
memory pages.

When migration is switched to post-copy mode, the virtual CPUs are paused
immediately, only a minimum set of pages is transferred, and the CPUs are
unpaused on destination. The source keeps sending all remaining memory pages
to the destination while the guest is already running there. Whenever the
guest tries to read a memory page which has not been migrated yet, the
hypervisor has to tell the source to transfer that page in a priority
channel. To minimize such page faults, it is a good idea to run at least one
iteration of pre-copy migration before switching to post-copy.

Post-copy migration is guaranteed to converge since each page is transferred
at most once no matter how fast it changes. On the other hand once the
guest is running on the destination host, the migration can no longer be
rolled back because none of the hosts has complete state. If this happens,
libvirt will leave the domain paused on the source host with
VIR_DOMAIN_PAUSED_POSTCOPY_FAILED reason. The domain on the destination host
will remain running with VIR_DOMAIN_RUNNING_POSTCOPY_FAILED reason.
It's up to the upper layer to decide what to do in such case. Because of
this, libvirt will refuse to cancel post-copy migration via
virDomainAbortJobFlags unless it is called with
VIR_DOMAIN_ABORT_JOB_POSTCOPY, in which case the post-copy migration will be
paused.

Failed post-copy migration can be recovered once the cause for the failure
(e.g., a network issue) is resolved by repeating the migration with an
additional VIR_MIGRATE_POSTCOPY_RESUME flag. This will recreate the
connection and resume migration from the point where it failed. This step
can be repeated in case the migration breaks again.

The following domain life cycle events are emitted during post-copy
migration:
 VIR_DOMAIN_EVENT_SUSPENDED_POSTCOPY (on the source) -- migration entered
     post-copy mode.
 VIR_DOMAIN_EVENT_RESUMED_POSTCOPY (on the destination) -- the guest is
     running on the destination host while some of its memory pages still
     remain on the source host; neither the source nor the destination host
     contain a complete guest state from this point until migration
     finishes.
 VIR_DOMAIN_EVENT_RESUMED_MIGRATED (on the destination),
 VIR_DOMAIN_EVENT_STOPPED_MIGRATED (on the source) -- migration finished
     successfully and the destination host holds a complete guest state.
 VIR_DOMAIN_EVENT_SUSPENDED_POSTCOPY_FAILED (on the source),
 VIR_DOMAIN_EVENT_RESUMED_POSTCOPY_FAILED (on the destination) -- emitted
     when migration fails in post-copy mode and it's unclear whether any of
     the hosts has a complete guest state. Virtual CPUs on the destination
     are still running.

The progress of a post-copy migration can be monitored normally using
virDomainGetJobStats on the source host. Fetching statistics of a completed
post-copy migration can also be done on the source host (by calling
virDomainGetJobStats or listening to VIR_DOMAIN_EVENT_ID_JOB_COMPLETED
event, but (in contrast to pre-copy migration) the statistics are not
available on the destination host. Thus, VIR_DOMAIN_EVENT_ID_JOB_COMPLETED
event is the only way of getting statistics of a completed post-copy
migration of a transient domain (because the domain is removed after
migration and there's no domain to run virDomainGetJobStats on). r   z&virDomainMigrateStartPostCopy() failed)r   virDomainMigrateStartPostCopyr   r   r   s      r    migrateStartPostCopyvirDomain.migrateStartPostCopy*  s3    H 66twwF"9GHH
r"   c                 l    [         R                  " U R                  XX45      nUS:X  a  [        S5      eU$ )aA  Migrate the domain object from its current host to the destination
host given by duri.

This function is similar to virDomainMigrateToURI3, but it only supports a
fixed set of parameters: @dname corresponds to VIR_MIGRATE_PARAM_DEST_NAME,
and @bandwidth corresponds to VIR_MIGRATE_PARAM_BANDWIDTH.

The operation of this API hinges on the VIR_MIGRATE_PEER2PEER flag.

If the VIR_MIGRATE_PEER2PEER flag IS set, the @duri parameter must be a
valid libvirt connection URI, by which the source libvirt driver can connect
to the destination libvirt. In other words, @duri corresponds to @dconnuri
of virDomainMigrateToURI3.

If the VIR_MIGRATE_PEER2PEER flag is NOT set, the @duri parameter takes a
hypervisor specific URI used to initiate the migration. In this case @duri
corresponds to VIR_MIGRATE_PARAM_URI of virDomainMigrateToURI3. r   zvirDomainMigrateToURI() failed)r   virDomainMigrateToURIr   r   )r   durirX   rE  r,  r]   s         r    migrateToURIvirDomain.migrateToURIs  s4    $ ..twwUV"9?@@
r"   c           	      n    [         R                  " U R                  XX4XV5      nUS:X  a  [        S5      eU$ )a  Migrate the domain object from its current host to the destination
host given by @dconnuri.

This function is similar to virDomainMigrateToURI3, but it only supports a
fixed set of parameters: @miguri corresponds to VIR_MIGRATE_PARAM_URI, @dxml
is VIR_MIGRATE_PARAM_DEST_XML, @dname is VIR_MIGRATE_PARAM_DEST_NAME, and
@bandwidth corresponds to VIR_MIGRATE_PARAM_BANDWIDTH.

The operation of this API hinges on the VIR_MIGRATE_PEER2PEER flag.

If the VIR_MIGRATE_PEER2PEER flag IS set, the @dconnuri parameter must be a
valid libvirt connection URI, by which the source libvirt driver can connect
to the destination libvirt. In other words, @dconnuri has the same semantics
as in virDomainMigrateToURI3.

If the VIR_MIGRATE_PEER2PEER flag is NOT set, the @dconnuri must be None
and the @miguri parameter takes a hypervisor specific URI used to initiate
the migration. In this case @miguri corresponds to VIR_MIGRATE_PARAM_URI of
virDomainMigrateToURI3. r   zvirDomainMigrateToURI2() failed)r   virDomainMigrateToURI2r   r   )r   dconnurimigurir  rX   rE  r,  r]   s           r    migrateToURI2virDomain.migrateToURI2  s7    ( //4X]i"9@AA
r"   c                 l    [         R                  " U R                  XU5      nUS:X  a  [        S5      eU$ )zVMigrate the domain object from its current host to the destination host
given by URI. r   zvirDomainMigrateToURI3() failed)r   virDomainMigrateToURI3r   r   )r   rv  r2  rX   r]   s        r    migrateToURI3virDomain.migrateToURI3  s4     //5Q"9@AA
r"   c                 F    [         R                  " U R                  5      nU$ )z$Get the public name for that domain )r   virDomainGetNamer   r   s     r    r_   virDomain.name  s    ))$''2
r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )zGet the NUMA parameters z#virDomainGetNumaParameters() failed)r   virDomainGetNumaParametersr   r   r   s      r    numaParametersvirDomain.numaParameters  .    33DGGUC;DEE
r"   c                     Uc  SnOUR                   n[        R                  " U R                   XU5      nUS:X  a  [        S5      eU$ )a  This opens the host interface associated with a channel device on a
guest, if the host interface is supported.  If @name is given, it
can match either the device alias (e.g. "channel0"), or the virtio
target name (e.g. "org.qemu.guest_agent.0").  If @name is omitted,
then the first channel is opened. The channel is associated with
the passed in @st stream, which should have been opened in
non-blocking mode for bi-directional I/O.

By default, when @flags is 0, the open will fail if libvirt detects
that the channel is already in use by another client; passing
VIR_DOMAIN_CHANNEL_FORCE will cause libvirt to forcefully remove the
other client prior to opening this channel. Nr   zvirDomainOpenChannel() failed)r   r   virDomainOpenChannelr   )r   r_   strX   st__or]   s         r    openChannelvirDomain.openChannel  sG     :EEEE--dggtEJ"9>??
r"   c                     Uc  SnOUR                   n[        R                  " U R                   XU5      nUS:X  a  [        S5      eU$ )a  This opens the backend associated with a console, serial or
parallel port device on a guest, if the backend is supported.
If the @dev_name is omitted, then the first console or serial
device is opened. The console is associated with the passed
in @st stream, which should have been opened in non-blocking
mode for bi-directional I/O.

By default, when @flags is 0, the open will fail if libvirt
detects that the console is already in use by another client;
passing VIR_DOMAIN_CONSOLE_FORCE will cause libvirt to forcefully
remove the other client prior to opening this console.

If flag VIR_DOMAIN_CONSOLE_SAFE the console is opened only in the
case where the hypervisor driver supports safe (mutually exclusive)
console handling.

Older servers did not support either flag, and also did not forbid
simultaneous clients on a console, with potentially confusing results.
When passing @flags of 0 in order to support a wider range of server
versions, it is up to the client to ensure mutual exclusion. Nr   zvirDomainOpenConsole() failed)r   r   virDomainOpenConsoler   )r   dev_namer  rX   r  r]   s         r    openConsolevirDomain.openConsole  sG    * :EEEE--dggxN"9>??
r"   c                 l    [         R                  " U R                  XU5      nUS:X  a  [        S5      eU$ )a&  This will attempt to connect the file descriptor @fd, to
the graphics backend of @dom. If @dom has multiple graphics
backends configured, then @idx will determine which one is
opened, starting from @idx 0.

To disable any authentication, pass the VIR_DOMAIN_OPEN_GRAPHICS_SKIPAUTH
constant for @flags.

The caller should use an anonymous socketpair to open
@fd before invocation.

This method can only be used when connected to a local
libvirt hypervisor, over a UNIX domain socket. Attempts
to use this method over a TCP connection will always fail r   zvirDomainOpenGraphics() failed)r   virDomainOpenGraphicsr   r   )r   idxre   rX   r]   s        r    openGraphicsvirDomain.openGraphics  s4     ..twwG"9?@@
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )a.  This will create a socket pair connected to the graphics backend of @dom.
One end of the socket will be returned on success, and the other end is
handed to the hypervisor.
If @dom has multiple graphics backends configured, then @idx will determine
which one is opened, starting from @idx 0.

To disable any authentication, pass the VIR_DOMAIN_OPEN_GRAPHICS_SKIPAUTH
constant for @flags.

This method can only be used when connected to a local
libvirt hypervisor, over a UNIX domain socket. Attempts
to use this method over a TCP connection will always fail. r   z virDomainOpenGraphicsFD() failed)r   virDomainOpenGraphicsFDr   r   )r   r  rX   r]   s       r    openGraphicsFDvirDomain.openGraphicsFD	  s2     00#E"9ABB
r"   c                 l    [         R                  " U R                  XU5      nUS:X  a  [        S5      eU$ )a  Attempt to have the guest enter the given @target power management
suspension level.  If @duration is non-zero, also schedule the guest to
resume normal operation after that many seconds, if nothing else has
resumed it earlier.  Some hypervisors require that @duration be 0, for
an indefinite suspension.

Dependent on hypervisor used, this may require a
guest agent to be available, e.g. QEMU.

Beware that at least for QEMU, the domain's process will be terminated
when VIR_NODE_SUSPEND_TARGET_DISK is used and a new process will be
launched when libvirt is asked to wake up the domain. As a result of
this, any runtime changes, such as device hotplug or memory settings,
are lost unless such changes were made with VIR_DOMAIN_AFFECT_CONFIG
flag. r   z&virDomainPMSuspendForDuration() failed)r   virDomainPMSuspendForDurationr   r   r   targetdurationrX   r]   s        r    pMSuspendForDurationvirDomain.pMSuspendForDuration!	  s5      66twwRWX"9GHH
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )zInject a wakeup into the guest that previously used
virDomainPMSuspendForDuration, rather than waiting for the
previously requested duration (if any) to elapse. r   zvirDomainPMWakeup() failed)r   virDomainPMWakeupr   r   r   s      r    pMWakeupvirDomain.pMWakeup6	  s2     **477E:"9;<<
r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )zGet all perf events setting. zvirDomainGetPerfEvents() failed)r   virDomainGetPerfEventsr   r   r   s      r    
perfEventsvirDomain.perfEventsC	  r  r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )zDynamically change the real CPUs which can be allocated to the emulator process of a domain.
This function requires privileged access to the hypervisor. r   zvirDomainPinEmulator() failed)r   virDomainPinEmulatorr   r   )r   cpumaprX   r]   s       r    pinEmulatorvirDomain.pinEmulatorJ	  s2     --dggvE"9>??
r"   c                 l    [         R                  " U R                  XU5      nUS:X  a  [        S5      eU$ )zDynamically change the real CPUs which can be allocated to an IOThread. This function requires privileged access to the hypervisor. r   zvirDomainPinIOThread() failed)r   virDomainPinIOThreadr   r   )r   iothread_valr  rX   r]   s        r    pinIOThreadvirDomain.pinIOThreadR	  s2    --dgg|US"9>??
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )Dynamically change the real CPUs which can be allocated to a virtual CPU. This function requires privileged access to the hypervisor. r   zvirDomainPinVcpu() failed)r   virDomainPinVcpur   r   )r   vcpur  r]   s       r    pinVcpuvirDomain.pinVcpuY	  s0    ))$''4@"9:;;
r"   c                 l    [         R                  " U R                  XU5      nUS:X  a  [        S5      eU$ )r  r   zvirDomainPinVcpuFlags() failed)r   virDomainPinVcpuFlagsr   r   )r   r  r  rX   r]   s        r    pinVcpuFlagsvirDomain.pinVcpuFlags`	  s2    ..twweL"9?@@
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )a  Reboot a domain, the domain object is still usable thereafter, but
the domain OS is being stopped for a restart.
Note that the guest OS may ignore the request.
Additionally, the hypervisor may check and support the domain
'on_reboot' XML setting resulting in a domain that shuts down instead
of rebooting.

If @flags is set to zero, then the hypervisor will choose the
method of shutdown it considers best. To have greater control
pass one or more of the virDomainRebootFlagValues. The order
in which the hypervisor tries each shutdown method is undefined,
and a hypervisor is not required to support all methods.

To use guest agent (VIR_DOMAIN_REBOOT_GUEST_AGENT) the domain XML
must have <channel> configured.

Due to implementation limitations in some drivers (the qemu driver,
for instance) it is not advised to migrate or save a guest that is
rebooting as a result of this API. Migrating such a guest can lead
to a plain shutdown on the destination. r   zvirDomainReboot() failed)r   virDomainRebootr   r   r   s      r    rebootvirDomain.rebootk	  s2    * ((%8"99::
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )a  Rename a domain. New domain name is specified in the second
argument. Depending on each driver implementation it may be
required that domain is in a specific state.

There might be some attributes and/or elements in domain XML that if no
value provided at XML defining time, libvirt will derive their value from
the domain name. These are not updated by this API. Users are strongly
advised to change these after the rename was successful. r   zvirDomainRename() failed)r   virDomainRenamer   r   )r   new_namerX   r]   s       r    renamevirDomain.rename	  s2     (((B"99::
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )a  Reset a domain immediately without any guest OS shutdown.
Reset emulates the power reset button on a machine, where all
hardware sees the RST line set and reinitializes internal state.

Note that there is a risk of data loss caused by reset without any
guest OS shutdown. r   zvirDomainReset() failed)r   virDomainResetr   r   r   s      r    resetvirDomain.reset	  s2     ''7"9899
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )a  Resume a suspended domain, the process is restarted from the state where
it was frozen by calling virDomainSuspend().
This function may require privileged access
Moreover, resume may not be supported if domain is in some
special state like VIR_DOMAIN_PMSUSPENDED. r   zvirDomainResume() failed)r   virDomainResumer   r   r   s     r    resumevirDomain.resume	  s0     ((1"99::
r"   c                     Uc  SnOUR                   n[        R                  " U R                   X25      nUS:X  a  [        S5      eU$ )z(revert the domain to the given snapshot Nr   z"virDomainRevertToSnapshot() failed)r   r   virDomainRevertToSnapshotr   )r   snaprX   snap__or]   s        r    revertToSnapshotvirDomain.revertToSnapshot	  sC    <GggG22477GK"9CDD
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )a  This method will suspend a domain and save its memory contents to a file or
direcotry (based on the vmm) on disk. After the call, if successful,the domain
is not listed as running anymore (this ends the life of a transient domain).
Use virDomainRestore() to restore a domain after saving.

See virDomainSaveFlags() and virDomainSaveParams() for more control.
Also, a save file can be inspected or modified slightly with
virDomainSaveImageGetXMLDesc() and virDomainSaveImageDefineXML(). r   zvirDomainSave() failed)r   virDomainSaver   r   )r   r}  r]   s      r    savevirDomain.save	  s2     &&tww3"9788
r"   c                 l    [         R                  " U R                  XU5      nUS:X  a  [        S5      eU$ )a  This method will suspend a domain and save its memory contents to
a file on disk. After the call, if successful, the domain is not
listed as running anymore (this ends the life of a transient domain).
Use virDomainRestore() to restore a domain after saving.

If the hypervisor supports it, @dxml can be used to alter
host-specific portions of the domain XML that will be used when
restoring an image.  For example, it is possible to alter the
backing filename that is associated with a disk device, in order to
prepare for file renaming done as part of backing up the disk
device while the domain is stopped.

If @flags includes VIR_DOMAIN_SAVE_BYPASS_CACHE, then libvirt will
attempt to bypass the file system cache while creating the file, or
fail if it cannot do so for the given system; this can allow less
pressure on file system cache, but also risks slowing saves to NFS.

Normally, the saved state file will remember whether the domain was
running or paused, and restore defaults to the same state.
Specifying VIR_DOMAIN_SAVE_RUNNING or VIR_DOMAIN_SAVE_PAUSED in
@flags will override what state gets saved into the file.  These
two flags are mutually exclusive.

A save file can be inspected or modified slightly with
virDomainSaveImageGetXMLDesc() and virDomainSaveImageDefineXML().

Some hypervisors may prevent this operation if there is a current
block job running; in that case, use virDomainBlockJobAbort()
to stop the block job first. r   zvirDomainSaveFlags() failed)r   virDomainSaveFlagsr   r   )r   r}  r  rX   r]   s        r    	saveFlagsvirDomain.saveFlags	  s4    < ++DGGRuE"9<==
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )zRThis method will suspend a domain and save its memory contents to a file on disk. r   zvirDomainSaveParams() failed)r   virDomainSaveParamsr   r   r   r2  rX   r]   s       r    
saveParamsvirDomain.saveParams	  s0    ,,TWWfD"9=>>
r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )zPGet the scheduler parameters, the @params array will be filled with the values. z(virDomainGetSchedulerParameters() failed)r   virDomainGetSchedulerParametersr   r   r   s     r    schedulerParametersvirDomain.schedulerParameters	  ,    88A;IJJ
r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )zGet the scheduler parameters z-virDomainGetSchedulerParametersFlags() failed)r   $virDomainGetSchedulerParametersFlagsr   r   r   s      r    schedulerParametersFlags"virDomain.schedulerParametersFlags 
  s.    ==dgguM;NOO
r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )zGet the scheduler type. z"virDomainGetSchedulerType() failed)r   virDomainGetSchedulerTyper   r   r   s     r    schedulerTypevirDomain.schedulerType
  ,    22477;;CDD
r"   c                     Uc  SnOUR                   n[        R                  " U R                   XBU5      nUc  [        S5      eU$ )al  Take a screenshot of current domain console as a stream. The image format
is hypervisor specific. Moreover, some hypervisors supports multiple
displays per domain. These can be distinguished by @screen argument.

This call sets up a stream; subsequent use of stream API is necessary
to transfer actual data, determine how much data is successfully
transferred, and detect any errors.

The screen ID is the sequential number of screen. In case of multiple
graphics cards, heads are enumerated before devices, e.g. having
two graphics cards, both with four heads, screen ID 5 addresses
the second head on the second card. NzvirDomainScreenshot() failed)r   r   virDomainScreenshotr   )r   streamscreenrX   	stream__or]   s         r    
screenshotvirDomain.screenshot
  sE     >I		I,,TWWiO;=>>
r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )z\Extract information about the domain security label. Only the first label will be returned. z"virDomainGetSecurityLabel() failed)r   virDomainGetSecurityLabelr   r   r   s     r    securityLabelvirDomain.securityLabel,
  r  r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )z\Extract information about the domain security label. A list of all labels will be returned. z&virDomainGetSecurityLabelList() failed)r   virDomainGetSecurityLabelListr   r   r   s     r    securityLabelListvirDomain.securityLabelList3
  ,    66tww?;GHH
r"   c                 n    [         R                  " U R                  XX4U5      nUS:X  a  [        S5      eU$ )zSend key(s) to the guest. r   zvirDomainSendKey() failed)r   virDomainSendKeyr   r   )r   codesetholdtimekeycodes	nkeycodesrX   r]   s          r    sendKeyvirDomain.sendKey>
  s5    ))$''7h[`a"9:;;
r"   c                 l    [         R                  " U R                  XU5      nUS:X  a  [        S5      eU$ )a  Send a signal to the designated process in the guest

The signal numbers must be taken from the virDomainProcessSignal
enum. These will be translated to the corresponding signal
number for the guest OS, by the guest agent delivering the
signal. If there is no mapping from virDomainProcessSignal to
the native OS signals, this API will report an error.

If @pid_value is an integer greater than zero, it is
treated as a process ID. If @pid_value is an integer
less than zero, it is treated as a process group ID.
All the @pid_value numbers are from the container/guest
namespace. The value zero is not valid.

Not all hypervisors will support sending signals to
arbitrary processes or process groups. If this API is
implemented the minimum requirement is to be able to
use @pid_value == 1 (i.e. kill init). No other value is
required to be supported.

If the @signum is VIR_DOMAIN_PROCESS_SIGNAL_NOP then this
API will simply report whether the process is running in
the container/guest. r   z#virDomainSendProcessSignal() failed)r   virDomainSendProcessSignalr   r   )r   	pid_valuesignumrX   r]   s        r    sendProcessSignalvirDomain.sendProcessSignalE
  s5    0 33DGGYPUV"9DEE
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )zNConfigure the domain to be automatically started
when the host machine boots. r   zvirDomainSetAutostart() failed)r   virDomainSetAutostartr   r   r   r  r]   s      r    setAutostartvirDomain.setAutostartb
  s2     ..tww	B"9?@@
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )z\Configure the domain to be automatically started
the next time the host machine boots only. r   z"virDomainSetAutostartOnce() failed)r   virDomainSetAutostartOncer   r   r  s      r    setAutostartOncevirDomain.setAutostartOncej
  2     22477IF"9CDD
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )zChange the blkio tunables r   z$virDomainSetBlkioParameters() failed)r   virDomainSetBlkioParametersr   r   r  s       r    setBlkioParametersvirDomain.setBlkioParametersv
  0    44TWWfL"9EFF
r"   c                 l    [         R                  " U R                  XU5      nUS:X  a  [        S5      eU$ )z+Change the I/O tunables for a block device r   z virDomainSetBlockIoTune() failed)r   virDomainSetBlockIoTuner   r   )r   r)  r2  rX   r]   s        r    setBlockIoTunevirDomain.setBlockIoTune}
  s2    00$N"9ABB
r"   c                 l    [         R                  " U R                  XU5      nUS:X  a  [        S5      eU$ )a  Set the threshold level for delivering the
VIR_DOMAIN_EVENT_ID_BLOCK_THRESHOLD if the device or backing chain element
described by @dev is written beyond the set threshold level. The threshold
level is unset once the event fires. The event might not be delivered at all
if libvirtd was not running at the moment when the threshold was reached.
Note that if the threshold level is reached for a top level image, the event
is emitted for @dev corresponding to the disk target, and may also be reported
with @dev corresponding to the disk target with an index corresponding to the
'index' attribute of 'source' in the live VM XML if the attribute is present.

@dev can either be a disk target name (vda, sda) or disk target with index (
vda[4]). Without the index the top image in the backing chain will have the
threshold set. The index corresponds to the 'index' attribute reported in the
live VM XML for 'backingStore' or 'source' elements of a disk. If index is
given the threshold is set for the corresponding image.

In case when @dev does not contain index the
VIR_DOMAIN_EVENT_ID_BLOCK_THRESHOLD event may be emitted twice, once for the
disk device target without index and once containing the index.

Note that the threshold event can be registered also for destinations of a
'virDomainBlockCopy' destination by using the 'index' of the 'mirror' source.

Hypervisors report the last written sector of an image in the bulk stats API
(virConnectGetAllDomainStats/virDomainListGetStats) as
"block.<num>.allocation" in the VIR_DOMAIN_STATS_BLOCK group. The current
threshold value is reported as "block.<num>.threshold".

This event allows to use thin-provisioned storage which needs management
tools to grow it without the need for polling of the data. r   z#virDomainSetBlockThreshold() failed)r   virDomainSetBlockThresholdr   r   )r   dev	thresholdrX   r]   s        r    setBlockThresholdvirDomain.setBlockThreshold
  s4    > 33DGGSUS"9DEE
r"   c                 l    [         R                  " U R                  XU5      nUS:X  a  [        S5      eU$ )a  Sets state of individual vcpus described by @cpumap via guest agent. Other
vcpus are not modified.

This API requires the VM to run. Various hypervisors or guest agent
implementation may limit to operate on just 1 vCPU per call.

@cpumap is a list of vCPU numbers. Its syntax is a comma separated list and
a special markup using '-' and '^' (ex. '0-4', '0-3,^2'). The '-' denotes
the range and the '^' denotes exclusive. The expression is sequentially
evaluated, so "0-15,^8" is identical to "9-14,0-7,15" but not identical to
"^8,0-15".

Note that OSes (notably Linux) may require vCPU 0 to stay online to support
low-level features a S3 sleep. r   zvirDomainSetGuestVcpus() failed)r   virDomainSetGuestVcpusr   r   )r   r  staterX   r]   s        r    setGuestVcpusvirDomain.setGuestVcpus
  s4     //N"9@AA
r"   c                 l    [         R                  " U R                  XU5      nUS:X  a  [        S5      eU$ )zDynamically allow changing the IOThread polling related parameters. This function requires privileged access to the hypervisor. r   z#virDomainSetIOThreadParams() failed)r   virDomainSetIOThreadParamsr   r   )r   r  r2  rX   r]   s        r    setIOThreadParamsvirDomain.setIOThreadParams
  s3    33DGG\SXY"9DEE
r"   c                 l    [         R                  " U R                  XU5      nUS:X  a  [        S5      eU$ )z5Change the bandwidth tunables for a interface device r   z(virDomainSetInterfaceParameters() failed)r   virDomainSetInterfaceParametersr   r   )r   r  r2  rX   r]   s        r    setInterfaceParameters virDomain.setInterfaceParameters
  s3    88&RWX"9IJJ
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )z4Set a launch security secret in the guest's memory. r   z(virDomainSetLaunchSecurityState() failed)r   virDomainSetLaunchSecurityStater   r   r  s       r    setLaunchSecurityState virDomain.setLaunchSecurityState
  s0    88&P"9IJJ
r"   c                 l    [         R                  " U R                  XU5      nUS:X  a  [        S5      eU$ )a  Changes the actions of lifecycle events for domain represented as
<on_$type>$action</on_$type> in the domain XML.

QEMU driver has a limitation that if all lifecycle events are set
to destroy when the domain is started, it's not possible to change
any action for running domain. r   z$virDomainSetLifecycleAction() failed)r   virDomainSetLifecycleActionr   r   )r   r   actionrX   r]   s        r    setLifecycleActionvirDomain.setLifecycleAction
  s4     44TWWdER"9EFF
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )a  Dynamically change the maximum amount of physical memory allocated to a
domain. If domain is None, then this change the amount of memory reserved
to Domain0 i.e. the domain where the application runs.
This function may require privileged access to the hypervisor.

This command is hypervisor-specific for whether active, persistent,
or both configurations are changed; for more control, use
virDomainSetMemoryFlags(). r   zvirDomainSetMaxMemory() failed)r   virDomainSetMaxMemoryr   r   r   memoryr]   s      r    setMaxMemoryvirDomain.setMaxMemory
  s2     ..tww?"9?@@
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )a  Dynamically change the target amount of physical memory allocated to a
domain. If domain is None, then this change the amount of memory reserved
to Domain0 i.e. the domain where the application runs.
This function may require privileged access to the hypervisor.

This command is hypervisor-specific for whether active, persistent,
or both configurations are changed; for more control, use
virDomainSetMemoryFlags(). r   zvirDomainSetMemory() failed)r   virDomainSetMemoryr   r   r>  s      r    	setMemoryvirDomain.setMemory
  s2     ++DGGV<"9<==
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )a  Dynamically change the target amount of physical memory allocated to a
domain. If domain is None, then this change the amount of memory reserved
to Domain0 i.e. the domain where the application runs.
This function may require privileged access to the hypervisor.

@flags may include VIR_DOMAIN_AFFECT_LIVE or VIR_DOMAIN_AFFECT_CONFIG.
Both flags may be set. If VIR_DOMAIN_AFFECT_LIVE is set, the change affects
a running domain and will fail if domain is not active.
If VIR_DOMAIN_AFFECT_CONFIG is set, the change affects persistent state,
and will fail for transient domains. If neither flag is specified
(that is, @flags is VIR_DOMAIN_AFFECT_CURRENT), then an inactive domain
modifies persistent setup, while an active domain is hypervisor-dependent
on whether just live or both live and persistent state is changed.
If VIR_DOMAIN_MEM_MAXIMUM is set, the change affects domain's maximum memory
size rather than current memory size.
Not all hypervisors can support all flag combinations. r   z virDomainSetMemoryFlags() failed)r   virDomainSetMemoryFlagsr   r   )r   r?  rX   r]   s       r    setMemoryFlagsvirDomain.setMemoryFlags  s2    " 00&H"9ABB
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )zChange the memory tunables r   z%virDomainSetMemoryParameters() failed)r   virDomainSetMemoryParametersr   r   r  s       r    setMemoryParametersvirDomain.setMemoryParameters  s0    55dggvM"9FGG
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )a  Dynamically change the domain memory balloon driver statistics collection
period. Use 0 to disable and a positive value to enable.

@flags may include VIR_DOMAIN_AFFECT_LIVE or VIR_DOMAIN_AFFECT_CONFIG.
Both flags may be set. If VIR_DOMAIN_AFFECT_LIVE is set, the change affects
a running domain and will fail if domain is not active.
If VIR_DOMAIN_AFFECT_CONFIG is set, the change affects persistent state,
and will fail for transient domains. If neither flag is specified
(that is, @flags is VIR_DOMAIN_AFFECT_CURRENT), then an inactive domain
modifies persistent setup, while an active domain is hypervisor-dependent
on whether just live or both live and persistent state is changed.

Not all hypervisors can support all flag combinations. r   z&virDomainSetMemoryStatsPeriod() failed)r   virDomainSetMemoryStatsPeriodr   r   )r   periodrX   r]   s       r    setMemoryStatsPeriodvirDomain.setMemoryStatsPeriod*  s2     66twwN"9GHH
r"   c                 n    [         R                  " U R                  XX4U5      nUS:X  a  [        S5      eU$ )a<  Sets the appropriate domain element given by @type to the
value of @metadata.  A @type of VIR_DOMAIN_METADATA_DESCRIPTION
is free-form text; VIR_DOMAIN_METADATA_TITLE is free-form, but no
newlines are permitted, and should be short (although the length is
not enforced). For these two options @key and @uri are irrelevant and
must be set to None.

For type VIR_DOMAIN_METADATA_ELEMENT @metadata  must be well-formed
XML belonging to namespace defined by @uri with local name @key.

Passing None for @metadata says to remove that element from the
domain XML (passing the empty string leaves the element present).

The resulting metadata will be present in virDomainGetXMLDesc(),
as well as quick access through virDomainGetMetadata().

@flags controls whether the live domain, persistent configuration,
or both will be modified. r   zvirDomainSetMetadata() failed)r   virDomainSetMetadatar   r   r   r   r@  keyrV   rX   r]   s          r    setMetadatavirDomain.setMetadata=  s7    & --dggtsQVW"9>??
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )zChange the NUMA tunables r   z#virDomainSetNumaParameters() failed)r   virDomainSetNumaParametersr   r   r  s       r    setNumaParametersvirDomain.setNumaParametersY  0    33DGGVK"9DEE
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )z5Enable or disable the particular list of perf events r   zvirDomainSetPerfEvents() failed)r   virDomainSetPerfEventsr   r   r  s       r    setPerfEventsvirDomain.setPerfEvents`  0    //G"9@AA
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ ) Change the scheduler parameters r   z(virDomainSetSchedulerParameters() failed)r   virDomainSetSchedulerParametersr   r   )r   r2  r]   s      r    setSchedulerParameters virDomain.setSchedulerParametersg  s0    88&I"9IJJ
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )rd  r   z-virDomainSetSchedulerParametersFlags() failed)r   $virDomainSetSchedulerParametersFlagsr   r   r  s       r    setSchedulerParametersFlags%virDomain.setSchedulerParametersFlagsn  s0    ==dggvU"9NOO
r"   c                 l    [         R                  " U R                  XU5      nUS:X  a  [        S5      eU$ )zUAdd throttlegroup or change all of the throttlegroup options within specific domain. r   z"virDomainSetThrottleGroup() failed)r   virDomainSetThrottleGroupr   r   )r   r  r2  rX   r]   s        r    setThrottleGroupvirDomain.setThrottleGroupu  s2    22477E5Q"9CDD
r"   c                 l    [         R                  " U R                  XU5      nUS:X  a  [        S5      eU$ )a;  Sets the @user password to the value specified by @password.
If @flags contain VIR_DOMAIN_PASSWORD_ENCRYPTED, the password
is assumed to be encrypted by the method required by the guest OS.

Please note that some hypervisors may require guest agent to
be configured and running in order to be able to run this API. r   z!virDomainSetUserPassword() failed)r   virDomainSetUserPasswordr   r   )r   r  passwordrX   r]   s        r    setUserPasswordvirDomain.setUserPassword  s4     11$''45Q"9BCC
r"   c                 l    [         R                  " U R                  XU5      nUS:X  a  [        S5      eU$ )a  Enables/disables individual vcpus described by @vcpumap in the hypervisor.

Various hypervisor implementations may limit to operate on just 1
hotpluggable entity (which may contain multiple vCPUs on certain platforms).

Note that OSes and hypervisors may require vCPU 0 to stay online. r   zvirDomainSetVcpu() failed)r   virDomainSetVcpur   r   )r   vcpumapr(  rX   r]   s        r    setVcpuvirDomain.setVcpu  s4     ))$''75I"9:;;
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )aq  Dynamically change the number of virtual CPUs used by the domain.
Note that this call may fail if the underlying virtualization hypervisor
does not support it or if growing the number is arbitrarily limited.
This function may require privileged access to the hypervisor.

Note that if this call is executed before the guest has finished booting,
the guest may fail to process the change.

This command only changes the runtime configuration of the domain,
so can only be called on an active domain.  It is hypervisor-dependent
whether it also affects persistent configuration; for more control,
use virDomainSetVcpusFlags(). r   zvirDomainSetVcpus() failed)r   virDomainSetVcpusr   r   )r   nvcpusr]   s      r    setVcpusvirDomain.setVcpus  s2     **477F;"9;<<
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )a`  Dynamically change the number of virtual CPUs used by the domain.
Note that this call may fail if the underlying virtualization hypervisor
does not support it or if growing the number is arbitrarily limited.
This function may require privileged access to the hypervisor.

@flags may include VIR_DOMAIN_AFFECT_LIVE to affect a running
domain (which may fail if domain is not active), or
VIR_DOMAIN_AFFECT_CONFIG to affect the next boot via the XML
description of the domain.  Both flags may be set.
If neither flag is specified (that is, @flags is VIR_DOMAIN_AFFECT_CURRENT),
then an inactive domain modifies persistent setup, while an active domain
is hypervisor-dependent on whether just live or both live and persistent
state is changed.

Note that if this call is executed before the guest has finished booting,
the guest may fail to process the change.

If @flags includes VIR_DOMAIN_VCPU_MAXIMUM, then
VIR_DOMAIN_AFFECT_LIVE must be clear, and only the maximum virtual
CPU limit is altered; generally, this value must be less than or
equal to virConnectGetMaxVcpus().  Otherwise, this call affects the
current virtual CPU limit, which must be less than or equal to the
maximum limit. Note that hypervisors may not allow changing the maximum
vcpu count if processor topology is specified.

If @flags includes VIR_DOMAIN_VCPU_GUEST, then the state of processors is
modified inside the guest instead of the hypervisor. This flag can only
be used with live guests and is incompatible with VIR_DOMAIN_VCPU_MAXIMUM.
The usage of this flag may require a guest agent configured.

Not all hypervisors can support all flag combinations. r   zvirDomainSetVcpusFlags() failed)r   virDomainSetVcpusFlagsr   r   )r   r|  rX   r]   s       r    setVcpusFlagsvirDomain.setVcpusFlags  s3    @ //G"9@AA
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )a  Shutdown a domain, the domain object is still usable thereafter, but
the domain OS is being stopped. Note that the guest OS may ignore the
request. Additionally, the hypervisor may check and support the domain
'on_poweroff' XML setting resulting in a domain that reboots instead of
shutting down. For guests that react to a shutdown request, the differences
from virDomainDestroy() are that the guests disk storage will be in a
stable state rather than having the (virtual) power cord pulled, and
this command returns as soon as the shutdown request is issued rather
than blocking until the guest is no longer running.

If the domain is transient and has any snapshot metadata (see
virDomainSnapshotNum()), then that metadata will automatically
be deleted when the domain quits. r   zvirDomainShutdown() failed)r   virDomainShutdownr   r   r   s     r    shutdownvirDomain.shutdown  s0     **4773"9;<<
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )a  Shutdown a domain, the domain object is still usable thereafter but
the domain OS is being stopped. Note that the guest OS may ignore the
request. Additionally, the hypervisor may check and support the domain
'on_poweroff' XML setting resulting in a domain that reboots instead of
shutting down. For guests that react to a shutdown request, the differences
from virDomainDestroy() are that the guest's disk storage will be in a
stable state rather than having the (virtual) power cord pulled, and
this command returns as soon as the shutdown request is issued rather
than blocking until the guest is no longer running.

If the domain is transient and has any snapshot metadata (see
virDomainSnapshotNum()), then that metadata will automatically
be deleted when the domain quits.

If @flags is set to zero, then the hypervisor will choose the
method of shutdown it considers best. To have greater control
pass one or more of the virDomainShutdownFlagValues. The order
in which the hypervisor tries each shutdown method is undefined,
and a hypervisor is not required to support all methods.

To use guest agent (VIR_DOMAIN_SHUTDOWN_GUEST_AGENT) the domain XML
must have <channel> configured. r   zvirDomainShutdownFlags() failed)r   virDomainShutdownFlagsr   r   r   s      r    shutdownFlagsvirDomain.shutdownFlags  s2    . //?"9@AA
r"   c                 v    [         R                  " U R                  X5      nUc  [        S5      e[	        XS9nU$ )a  Creates a new snapshot of a domain based on the snapshot xml
contained in xmlDesc, with a top-level element <domainsnapshot>.

If @flags is 0, the domain can be active, in which case the
snapshot will be a full system snapshot (capturing both disk state,
and runtime VM state such as RAM contents), where reverting to the
snapshot is
the same as resuming from hibernation (TCP connections may have
timed out, but everything else picks up where it left off); or
the domain can be inactive, in which case the snapshot includes
just the disk state prior to booting.  The newly created snapshot
becomes current (see virDomainSnapshotCurrent()), and is a child
of any previous current snapshot.

If @flags includes VIR_DOMAIN_SNAPSHOT_CREATE_VALIDATE, then @xmlDesc
is validated against the <domainsnapshot> XML schema.

If @flags includes VIR_DOMAIN_SNAPSHOT_CREATE_REDEFINE, then this
is a request to reinstate snapshot metadata that was previously
captured from virDomainSnapshotGetXMLDesc() before removing that
metadata, rather than creating a new snapshot.  This can be used to
recreate a snapshot hierarchy on a destination, then remove it on
the source, in order to allow migration (since migration normally
fails if snapshot metadata still remains on the source machine).
Note that while original creation can omit a number of elements
from @xmlDesc (and libvirt will supply sane defaults based on the
domain state at that point in time), a redefinition must supply
more elements (as the domain may have changed in the meantime, so
that libvirt no longer has a way to resupply correct
defaults). When redefining snapshot metadata, the domain's current
snapshot will not be altered unless the
VIR_DOMAIN_SNAPSHOT_CREATE_CURRENT flag is also present.  It is an
error to request the VIR_DOMAIN_SNAPSHOT_CREATE_CURRENT flag
without VIR_DOMAIN_SNAPSHOT_CREATE_REDEFINE.  On some hypervisors,
redefining an existing snapshot can be used to alter host-specific
portions of the domain XML to be used during revert (such as
backing filenames associated with disk devices), but must not alter
guest-visible layout.  When redefining a snapshot name that does
not exist, the hypervisor may validate that reverting to the
snapshot appears to be possible (for example, disk images have
snapshot contents by the requested name).  Not all hypervisors
support these flags.

If @flags includes VIR_DOMAIN_SNAPSHOT_CREATE_NO_METADATA, then the
domain's disk images are modified according to @xmlDesc, but
libvirt does not track any metadata (similar to immediately calling
virDomainSnapshotDelete() with
VIR_DOMAIN_SNAPSHOT_DELETE_METADATA_ONLY).  This flag is
incompatible with VIR_DOMAIN_SNAPSHOT_CREATE_REDEFINE.

If @flags includes VIR_DOMAIN_SNAPSHOT_CREATE_HALT, then the domain
will be inactive after the snapshot completes, regardless of whether
it was active before; otherwise, a running domain will still be
running after the snapshot.  This flag is invalid on transient domains,
and is incompatible with VIR_DOMAIN_SNAPSHOT_CREATE_REDEFINE.

If @flags includes VIR_DOMAIN_SNAPSHOT_CREATE_LIVE, then the domain
is not paused while creating the snapshot. This increases the size
of the memory dump file, but reduces downtime of the guest while
taking the snapshot. Some hypervisors only support this flag during
external snapshots.

If @flags includes VIR_DOMAIN_SNAPSHOT_CREATE_DISK_ONLY, then the
snapshot will be limited to the disks described in @xmlDesc, and no
VM state will be saved.  For an active guest, the disk image may be
inconsistent (as if power had been pulled), and specifying this
with the VIR_DOMAIN_SNAPSHOT_CREATE_HALT flag risks data loss.

If @flags includes VIR_DOMAIN_SNAPSHOT_CREATE_QUIESCE, then the
libvirt will attempt to use guest agent to freeze and thaw all
file systems in use within domain OS. However, if the guest agent
is not present, an error is thrown. Moreover, this flag requires
VIR_DOMAIN_SNAPSHOT_CREATE_DISK_ONLY to be passed as well.
For better control and error recovery users should invoke virDomainFSFreeze
manually before taking the snapshot and then virDomainFSThaw to restore the
VM rather than using VIR_DOMAIN_SNAPSHOT_CREATE_QUIESCE.

By default, if the snapshot involves external files, and any of the
destination files already exist as a non-empty regular file, the
snapshot is rejected to avoid losing contents of those files.
However, if @flags includes VIR_DOMAIN_SNAPSHOT_CREATE_REUSE_EXT,
then the destination files must be pre-created manually with
the correct image format and metadata including backing store path
(this allows a management app to pre-create files with relative backing
file names, rather than the default of creating with absolute backing
file names). Note that only the file specified in the snapshot XML is
inserted as a snapshot thus setting incorrect metadata in the pre-created
image may lead to the VM being unable to start or other block jobs may fail.

Be aware that although libvirt prefers to report errors up front with
no other effect, some hypervisors have certain types of failures where
the overall command can easily fail even though the guest configuration
was partially altered (for example, if a disk snapshot request for two
disks fails on the second disk, but the first disk alteration cannot be
rolled back).  If this API call fails, it is therefore normally
necessary to follow up with virDomainGetXMLDesc() and check each disk
to determine if any partial changes occurred.  However, if @flags
contains VIR_DOMAIN_SNAPSHOT_CREATE_ATOMIC, then libvirt guarantees
that this command will not alter any disks unless the entire set of
changes can be done atomically, making failure recovery simpler (note
that it is still possible to fail after disks have changed, but only
in the much rarer cases of running out of memory or disk space).

Some hypervisors may prevent this operation if there is a current
block copy operation; in that case, use virDomainBlockJobAbort()
to stop the block copy first.

virDomainSnapshotFree should be used to free the resources after the
snapshot object is no longer needed. z#virDomainSnapshotCreateXML() failedrZ   )r   virDomainSnapshotCreateXMLr   r   virDomainSnapshotrl  s        r    snapshotCreateXMLvirDomain.snapshotCreateXML  s;    \ 33DGGWL;DEE!$1r"   c                 v    [         R                  " U R                  U5      nUc  [        S5      e[	        XS9nU$ )zGet the current snapshot for a domain, if any.

virDomainSnapshotFree should be used to free the resources after the
snapshot object is no longer needed. z!virDomainSnapshotCurrent() failedrZ   )r   virDomainSnapshotCurrentr   r   r  )r   rX   r]   rn  s       r    snapshotCurrentvirDomain.snapshotCurrentv  s:    
 11$''5A;BCC!$1r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )z8collect the list of snapshot names for the given domain z#virDomainSnapshotListNames() failed)r   virDomainSnapshotListNamesr   r   r   s      r    snapshotListNamesvirDomain.snapshotListNames  r  r"   c                 v    [         R                  " U R                  X5      nUc  [        S5      e[	        XS9nU$ )z3Try to lookup a domain snapshot based on its name. z&virDomainSnapshotLookupByName() failedrZ   )r   virDomainSnapshotLookupByNamer   r   r  rs  s        r    snapshotLookupByNamevirDomain.snapshotLookupByName  s8    66twwL;GHH!$1r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )a  Provides the number of domain snapshots for this domain.

This function will accept VIR_DOMAIN_SNAPSHOT_LIST_TOPOLOGICAL in
@flags only if virDomainSnapshotListNames() can honor it, although
the flag has no other effect here.

By default, this command covers all snapshots. It is also possible
to limit things to just snapshots with no parents, when @flags
includes VIR_DOMAIN_SNAPSHOT_LIST_ROOTS.  Additional filters are
provided via the same @flags values as documented in
virDomainListAllSnapshots(). r   zvirDomainSnapshotNum() failed)r   virDomainSnapshotNumr   r   r   s      r    snapshotNumvirDomain.snapshotNum  s2     --dggu="9>??
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )zCalculate the current domain's memory dirty rate in next @seconds.
The calculated dirty rate information is available by calling
virConnectGetAllDomainStats. r   z$virDomainStartDirtyRateCalc() failed)r   virDomainStartDirtyRateCalcr   r   )r   secondsrX   r]   s       r    startDirtyRateCalcvirDomain.startDirtyRateCalc  s2     44TWWgM"9EFF
r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )zExtract domain state. zvirDomainGetState() failed)r   virDomainGetStater   r   r   s      r    r(  virDomain.state  .    **477E:;;<<
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )at  Suspends an active domain, the process is frozen without further access
to CPU resources and I/O but the memory used by the domain at the
hypervisor level will stay allocated. Use virDomainResume() to reactivate
the domain.
This function may require privileged access.
Moreover, suspend may not be supported if domain is in some
special state like VIR_DOMAIN_PMSUSPENDED. r   zvirDomainSuspend() failed)r   virDomainSuspendr   r   r   s     r    suspendvirDomain.suspend  s0     ))$''2"9:;;
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )a  Undefine a domain. If the domain is running, it's converted to
transient domain, without stopping it. If the domain is inactive,
the domain configuration is removed.

If the domain has a managed save image (see
virDomainHasManagedSaveImage()), or if it is inactive and has any
snapshot metadata (see virDomainSnapshotNum()) or checkpoint
metadata (see virDomainListAllCheckpoints()), then the undefine
will fail. See virDomainUndefineFlags() for more control. r   zvirDomainUndefine() failed)r   virDomainUndefiner   r   r   s     r    undefinevirDomain.undefine  s0     **4773"9;<<
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )ac  Undefine a domain. If the domain is running, it's converted to
transient domain, without stopping it. If the domain is inactive,
the domain configuration is removed.

If the domain has a managed save image (see virDomainHasManagedSaveImage()),
then including VIR_DOMAIN_UNDEFINE_MANAGED_SAVE in @flags will also remove
that file, and omitting the flag will cause the undefine process to fail.

If the domain is inactive and has any snapshot metadata (see
virDomainSnapshotNum()), then including
VIR_DOMAIN_UNDEFINE_SNAPSHOTS_METADATA in @flags will also remove
that metadata.  Omitting the flag will cause the undefine of an
inactive domain with snapshots to fail.  Active domains will retain
snapshot metadata until the (now-transient) domain halts,
regardless of whether this flag is present.  On hypervisors that
support snapshots, but where snapshots do not use libvirt metadata,
this flag has no effect.

If the domain is inactive and has any checkpoint metadata (see
virDomainListAllCheckpoints()), then including
VIR_DOMAIN_UNDEFINE_CHECKPOINTS_METADATA in @flags will also remove
that metadata. Omitting the flag will cause the undefine of an
inactive domain with checkpoints to fail. Active domains will
retain checkpoint metadata until the (now-transient) domain halts,
regardless of whether this flag is present. On hypervisors that
support checkpoints, but where checkpoints do not use libvirt
metadata, this flag has no effect.

If the domain has any nvram specified, the undefine process will fail
unless VIR_DOMAIN_UNDEFINE_KEEP_NVRAM is specified, or if
VIR_DOMAIN_UNDEFINE_NVRAM is specified to remove the nvram file. r   zvirDomainUndefineFlags() failed)r   virDomainUndefineFlagsr   r   r   s      r    undefineFlagsvirDomain.undefineFlags  s3    @ //?"9@AA
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )a   Change a virtual device on a domain, using the flags parameter
to control how the device is changed.  VIR_DOMAIN_AFFECT_CURRENT
specifies that the device change is made based on current domain
state.  VIR_DOMAIN_AFFECT_LIVE specifies that the device shall be
changed on the active domain instance only and is not added to the
persisted domain configuration. VIR_DOMAIN_AFFECT_CONFIG
specifies that the device shall be changed on the persisted domain
configuration only.  Note that the target hypervisor must return an
error if unable to satisfy flags.  E.g. the hypervisor driver will
return failure if LIVE is specified but it only supports modifying the
persisted device allocation.

This method is used for actions such changing CDROM/Floppy device
media, altering the graphics configuration such as password,
reconfiguring the NIC device backend connectivity, etc.

The supplied XML description of the device should contain all
the information that is found in the corresponding domain XML.
Leaving out any piece of information may be treated as a
request for its removal, which may be denied. For instance,
when users want to change CDROM media only for live XML, they
must provide live disk XML as found in the corresponding live
domain XML with only the disk path changed. r   z#virDomainUpdateDeviceFlags() failed)r   virDomainUpdateDeviceFlagsr   r   r  s       r    updateDeviceFlagsvirDomain.updateDeviceFlags  s2    0 33DGGSH"9DEE
r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )z=Query the CPU affinity setting of all virtual CPUs of domain z virDomainGetVcpuPinInfo() failed)r   virDomainGetVcpuPinInfor   r   r   s      r    vcpuPinInfovirDomain.vcpuPinInfo'  rz  r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )z^Extract information about virtual CPUs of domain, store it in info array and also in cpumaps. zvirDomainGetVcpus() failed)r   virDomainGetVcpusr   r   r   s     r    vcpusvirDomain.vcpus.  ,    **4773;;<<
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )a  Query the number of virtual CPUs used by the domain.  Note that
this call may fail if the underlying virtualization hypervisor does
not support it.  This function may require privileged access to the
hypervisor.

If @flags includes VIR_DOMAIN_AFFECT_LIVE, this will query a
running domain (which will fail if domain is not active); if
it includes VIR_DOMAIN_AFFECT_CONFIG, this will query the XML
description of the domain.  It is an error to set both flags.
If neither flag is set (that is, VIR_DOMAIN_AFFECT_CURRENT),
then the configuration queried depends on whether the domain
is currently running.

If @flags includes VIR_DOMAIN_VCPU_MAXIMUM, then the maximum
virtual CPU limit is queried.  Otherwise, this call queries the
current virtual CPU count.

If @flags includes VIR_DOMAIN_VCPU_GUEST, then the state of the processors
is queried in the guest instead of the hypervisor. This flag is only usable
on live domains. Guest agent may be needed for this flag to be available. r   zvirDomainGetVcpusFlags() failed)r   virDomainGetVcpusFlagsr   r   r   s      r    
vcpusFlagsvirDomain.vcpusFlags9  s2    * //?"9@AA
r"   rX   r   r  c                     [         R                  " U R                  U5      nUc  [        S5      eU Vs/ s H  n[	        XS9PM     sn$ s  snf )z9List all snapshots and returns a list of snapshot objectsz"virDomainListAllSnapshots() failedrZ   )r   virDomainListAllSnapshotsr   r   r  r   rX   r]   snapptrs       r    listAllSnapshotsvirDomain.listAllSnapshotsV  sG    22477EB;CDDEHIS'!$5SIII   A
rk  c                     [         R                  " U R                  U5      nUc  [        S5      eU Vs/ s H  n[	        XS9PM     sn$ s  snf )z=List all checkpoints and returns a list of checkpoint objectsz$virDomainListAllCheckpoints() failedrZ   )r   virDomainListAllCheckpointsr   r   rk  r   rX   r]   chkptrs       r    listAllCheckpointsvirDomain.listAllCheckpoints^  sG    44TWWeD;EFFEHIS6#D6SIIIr  filesc                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )aD  Launch a defined domain. If the call succeeds the domain moves from the
defined to the running domains pools.

@files provides an array of file descriptors which will be
made available to the 'init' process of the guest. The file
handles exposed to the guest will be renumbered to start
from 3 (ie immediately following stderr). This is only
supported for guests which use container based virtualization
technology.

If the VIR_DOMAIN_START_PAUSED flag is set, or if the guest domain
has a managed save image that requested paused state (see
virDomainManagedSave()) the guest domain will be started, but its
CPUs will remain paused. The CPUs can later be manually started
using virDomainResume().  In all other cases, the guest domain will
be running.

If the VIR_DOMAIN_START_AUTODESTROY flag is set, the guest
domain will be automatically destroyed when the virConnectPtr
object is finally released. This will also happen if the
client application crashes / loses its connection to the
libvirtd daemon. Any domains marked for auto destroy will
block attempts at migration, save-to-file, or snapshots.

If the VIR_DOMAIN_START_BYPASS_CACHE flag is set, and there is a
managed save file for this domain (created by virDomainManagedSave()),
then libvirt will attempt to bypass the file system cache while restoring
the file, or fail if it cannot do so for the given system; this can allow
less pressure on file system cache, but also risks slowing loads from NFS.

If the VIR_DOMAIN_START_FORCE_BOOT flag is set, then any managed save
file for this domain is discarded, and the domain boots from scratch. r   z!virDomainCreateWithFiles() failed)r   virDomainCreateWithFilesr   r   )r   r  rX   r]   s       r    createWithFilesvirDomain.createWithFilesf  s3    B 11$''5H"9BCC
r"   mountpointsc                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )z.Freeze specified filesystems within the guest r   zvirDomainFSFreeze() failed)r   virDomainFSFreezer   r   r   r  rX   r]   s       r    fsFreezevirDomain.fsFreeze  s0    **477KG"9;<<
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )z,Thaw specified filesystems within the guest r   zvirDomainFSThaw() failed)r   virDomainFSThawr   r   r  s       r    fsThawvirDomain.fsThaw  s0    ((+E"99::
r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )z%Extract information about guest time zvirDomainGetTime() failed)r   virDomainGetTimer   r   r   s      r    getTimevirDomain.getTime  .    ))$''59;:;;
r"   timec                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )zSet guest time to the given value. @time is a dict containing
'seconds' field for seconds and 'nseconds' field for nanoseconds r   zvirDomainSetTime() failed)r   virDomainSetTimer   r   )r   r  rX   r]   s       r    setTimevirDomain.setTime  s2     ))$''4?"9:;;
r"   r_   c                 l    [         R                  " U R                  XU5      nUS:X  a  [        S5      eU$ )a=  Associate the array of FDs passed as @fds with the domain object
under @name. The FDs are associated as long as the connection used to
associated exists and are disposed of afterwards. FD may still be kept
open by the hypervisor for as long as it's needed.

Security labelling (e.g. via the selinux) may be applied on the passed
FDs when requiredg for usage by the VM. By default libvirt does not
restore the seclabels on the FDs afterwards to avoid keeping it open
unnecessarily.

Restoring of the security label can be requested by passing either
VIR_DOMAIN_FD_ASSOCIATE_SECLABEL_RESTORE for a best-effort attempt to
restore the security label after use.  Requesting the restore of
security label will require that the file descriptors are kept open for
the whole time they are used by the hypervisor, or other additional
overhead.

In certain cases usage of the fd group would imply read-only access.
Passing VIR_DOMAIN_FD_ASSOCIATE_SECLABEL_WRITABLE in @flags ensures
that a writable security label is picked in case when the file
represented by the fds may be used in write mode. r   zvirDomainFDAssociate() failed)r   virDomainFDAssociater   r   )r   r_   r  rX   r]   s        r    FDAssociatevirDomain.FDAssociate  s4    , --dggtEJ"9>??
r"   r   r   rj   r   r$   r   r   )r   NNr   )Nr   NNr   )r   Nr   )NNNr   Nr   )rI   rJ   rK   rL   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r  r  r  r   r$  r-  r3  r9  r>  rB  rF  rL  rR  rV  rZ  r^  rc  rg  ro  rt  rx  r~  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r!  r%  r)  r-  r2  r6  r;  r@  rG  rK  rO  rS  rW  r[  r`  re  ri  rm  rr  rx  r|  r_   r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r$  r)  r-  r1  r5  r:  r@  rD  rH  rL  rQ  rW  r[  r`  rf  rj  rn  rs  rx  r}  r  r  r  r  r  r  r  r  r  r(  r  r  r  r  r  r  r  rN   r   r  r  r  rM   r  r  r  r  r  rO   rP   r"   r    r   r     s@   
5
6.* :;z
 ]F&X8#JgRB2h04"H.&.@&.h&"	6(
	$(2		GR.:,<($*4
		!N4:"H0
4&8

$#J&@rh	*#JB:Jc J$7J2K JJ JD9N4O J$T#Y $s $; $LDI S  $s) 3 s S  C s 3  DI c #  r"   c                       \ rS rSrSS jrS rS rS rS S jrS r	S	 r
S!S
 jrS rS rS rS rS rS rS!S jrS rS!S jrS rS rS rS!S jrS rS!S jrS!S\S\S   4S jjrSrg)"
virNetworki  Nc                 |    Xl         [        U5      R                  S;  a  [        S[        U5      -  5      eX l        g r   r   r   s      r    r   virNetwork.__init__  r   r"   c                 l    U R                   b   [        R                  " U R                   5        S U l         g rj   )r   r   virNetworkFreer&   s    r    r   virNetwork.__del__  s%    77%%dgg.r"   c                     U R                   $ rj   r   r&   s    r    r   virNetwork.connect  r   r"   c                 B    [         R                  " U R                  5      $ r   )r   virNetwork_pointerr   r&   s    r    r   virNetwork.c_pointer      ,,TWW55r"   c                 d    [         R                  " U R                  X5      nUc  [        S5      eU$ )zTReturns a list of dhcp leases for interfaces connected to the given virtual network z virNetworkGetDHCPLeases() failed)r   virNetworkGetDHCPLeasesr   r   )r   macrX   r]   s       r    
DHCPLeasesvirNetwork.DHCPLeases  s.    00#E;ABB
r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )z1Extract the UUID unique Identifier of a network. zvirNetworkGetUUID() failed)r   virNetworkGetUUIDr   r   r   s     r    r   virNetwork.UUID  r  r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )z5Fetch globally unique ID of the network as a string. z virNetworkGetUUIDString() failed)r   virNetworkGetUUIDStringr   r   r   s     r    r   virNetwork.UUIDString  ,    009;ABB
r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )am  Provide an XML description of the network. The description may be reused
later to relaunch the network with virNetworkCreateXML().

Normally, if a network included a physical function, the output includes
all virtual functions tied to that physical interface.  If @flags includes
VIR_NETWORK_XML_INACTIVE, then the expansion of virtual interfaces is
not performed. zvirNetworkGetXMLDesc() failed)r   virNetworkGetXMLDescr   r   r   s      r    r   virNetwork.XMLDesc  s0     --dggu=;>??
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )z*Extract the autostart flag for a network. r   zvirNetworkGetAutostart() failed)r   virNetworkGetAutostartr   r   r   s     r    r  virNetwork.autostart  .    //8"9@AA
r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )zqProvides a bridge interface name to which a domain may connect
a network interface in order to join the network. z virNetworkGetBridgeName() failed)r   virNetworkGetBridgeNamer   r   r   s     r    
bridgeNamevirNetwork.bridgeName  s.     009;ABB
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )zzCreate and start a defined network. If the call succeed the network
moves from the defined to the running networks pools. r   zvirNetworkCreate() failed)r   virNetworkCreater   r   r   s     r    r  virNetwork.create  s0     ))$''2"9:;;
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )zDestroy the network object. The running instance is shutdown if not down
already and all resources used by it are given back to the hypervisor. This
does not free the associated virNetworkPtr object.
This function may require privileged access r   zvirNetworkDestroy() failed)r   virNetworkDestroyr   r   r   s     r    r  virNetwork.destroy!  r   r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )z.Determine if the network is currently running r   zvirNetworkIsActive() failed)r   virNetworkIsActiver   r   r   s     r    r  virNetwork.isActive+  r  r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )zlDetermine if the network has a persistent configuration
which means it will still exist after shutting down r   zvirNetworkIsPersistent() failed)r   virNetworkIsPersistentr   r   r   s     r    r  virNetwork.isPersistent2  s0     //8"9@AA
r"   c                 f    [         R                  " U R                  XU5      nUc  [        S5      eU$ )a(  Retrieves the appropriate network element given by @type.
If VIR_NETWORK_METADATA_ELEMENT is requested parameter @uri
must be set to the name of the namespace the requested elements
belong to, otherwise must be None.

If an element of the network XML is not present, the resulting
error will be VIR_ERR_NO_NETWORK_METADATA.  This method forms
a shortcut for seeing information from virNetworkSetMetadata()
without having to go through virNetworkGetXMLDesc().

@flags controls whether the live network state or persistent
configuration will be queried. zvirNetworkGetMetadata() failed)r   virNetworkGetMetadatar   r   r?  s        r    r@  virNetwork.metadata:  s2     ..tww5I;?@@
r"   c                 F    [         R                  " U R                  5      nU$ )z%Get the public name for that network )r   virNetworkGetNamer   r   s     r    r_   virNetwork.nameL  s    **4773
r"   c                 v    [         R                  " U R                  X5      nUc  [        S5      e[	        XS9nU$ )zCreate a new network port, based on an XML description
similar to the one returned by virNetworkPortGetXMLDesc()

virNetworkPortFree should be used to free the resources after the
network port object is no longer needed. z virNetworkPortCreateXML() failedrZ   )r   virNetworkPortCreateXMLr   r   virNetworkPort)r   xmldescrX   r]   _virNetwork__tmps        r    portCreateXMLvirNetwork.portCreateXMLQ  s:     00'I;ABBt.r"   c                 v    [         R                  " U R                  U5      nUc  [        S5      e[	        XS9nU$ )=Try to lookup a port on the given network based on its UUID. z#virNetworkPortLookupByUUID() failedrZ   )r   virNetworkPortLookupByUUIDr   r   r+  )r   uuidr]   r-  s       r    portLookupByUUIDvirNetwork.portLookupByUUIDa  s8    33DGGTB;DEEt.r"   c                 v    [         R                  " U R                  U5      nUc  [        S5      e[	        XS9nU$ )r1  z)virNetworkPortLookupByUUIDString() failedrZ   )r    virNetworkPortLookupByUUIDStringr   r   r+  )r   uuidstrr]   r-  s       r    portLookupByUUIDString!virNetwork.portLookupByUUIDStringm  s8    99$''7K;JKKt.r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )zOConfigure the network to be automatically started
when the host machine boots. r   zvirNetworkSetAutostart() failed)r   virNetworkSetAutostartr   r   r  s      r    r  virNetwork.setAutostartu  s2     //C"9@AA
r"   c                 n    [         R                  " U R                  XX4U5      nUS:X  a  [        S5      eU$ )aI  Sets the appropriate network element given by @type to the
value of @metadata.  A @type of VIR_NETWORK_METADATA_DESCRIPTION
is free-form text; VIR_NETWORK_METADATA_TITLE is free-form, but no
newlines are permitted, and should be short (although the length is
not enforced). For these two options @key and @uri are irrelevant and
must be set to None.

For type VIR_NETWORK_METADATA_ELEMENT @metadata must be well-formed
XML belonging to namespace defined by @uri with local name @key.

Passing None for @metadata says to remove that element from the
network XML (passing the empty string leaves the element present).

The resulting metadata will be present in virNetworkGetXMLDesc(),
as well as quick access through virNetworkGetMetadata().

@flags controls whether the live network state, persistent configuration,
or both will be modified. r   zvirNetworkSetMetadata() failed)r   virNetworkSetMetadatar   r   rU  s          r    rW  virNetwork.setMetadata}  s7    & ..twwRWX"9?@@
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )z9Undefine a network but does not stop it if it is running r   zvirNetworkUndefine() failed)r   virNetworkUndefiner   r   r   s     r    r  virNetwork.undefine  r  r"   c                 n    [         R                  " U R                  XX4U5      nUS:X  a  [        S5      eU$ )ztUpdate the definition of an existing network, either its live
running state, its persistent configuration, or both. r   zvirNetworkUpdate() failed)r   virNetworkUpdater   r   )r   commandsectionparentIndexr   rX   r]   s          r    updatevirNetwork.update  s7     ))$''7[W\]"9:;;
r"   rX   r   r+  c                     [         R                  " U R                  U5      nUc  [        S5      eU Vs/ s H  n[	        XS9PM     sn$ s  snf )zHList all ports on the network and returns a list of network port objectszvirNetworkListAllPorts() failedrZ   )r   virNetworkListAllPortsr   r   r+  r   rX   r]   domptrs       r    listAllPortsvirNetwork.listAllPorts  sF    //?;@AA@CDft1DDDr  r  rj   r$   r  )rI   rJ   rK   rL   r   r   r   r   r  r   r   r   r  r  r  r  r  r  r@  r_   r.  r4  r9  r  rW  r  rI  rN   r   rO  rO   rP   r"   r    r  r    s    
6"$

 0E# Ed3C.D E Er"   r  c                   n    \ rS rSrSSS jjrS rS rS rS rS r	S	 r
SS
 jrSS jrSS jrSS jrSrg)r+  i  Nc                     Xl         UR                  5       U l        [        U5      R                  S;  a  [        S[        U5      -  5      eX l        g r   )_netr   r   r   rI   r   r   )r   netr[   s      r    r   virNetworkPort.__init__  A    	[[]
:&@@DtDzQRRr"   c                 l    U R                   b   [        R                  " U R                   5        S U l         g rj   )r   r   virNetworkPortFreer&   s    r    r   virNetworkPort.__del__  %    77))$''2r"   c                     U R                   $ rj   r   r&   s    r    r   virNetworkPort.connect  r   r"   c                     U R                   $ rj   )rS  r&   s    r    networkvirNetworkPort.network      yyr"   c                 B    [         R                  " U R                  5      $ r   )r   virNetworkPort_pointerr   r&   s    r    r   virNetworkPort.c_pointer      0099r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )z6Extract the UUID unique Identifier of a network port. zvirNetworkPortGetUUID() failed)r   virNetworkPortGetUUIDr   r   r   s     r    r   virNetworkPort.UUID  ,    ..tww7;?@@
r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )z:Fetch globally unique ID of the network port as a string. z$virNetworkPortGetUUIDString() failed)r   virNetworkPortGetUUIDStringr   r   r   s     r    r   virNetworkPort.UUIDString  ,    44TWW=;EFF
r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )zProvide an XML description of the network port. The description may be reused
later to recreate the port with virNetworkPortCreateXML(). z!virNetworkPortGetXMLDesc() failed)r   virNetworkPortGetXMLDescr   r   r   s      r    r   virNetworkPort.XMLDesc  s0     11$''5A;BCC
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )zDelete the network port. This does not free the
associated virNetworkPortPtr object. It is the
caller's responsibility to ensure the port is not
still in use by a virtual machine before deleting
port. r   zvirNetworkPortDelete() failed)r   virNetworkPortDeleter   r   r   s      r    deletevirNetworkPort.delete  s2     --dggu="9>??
r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )zGet the port parameters z$virNetworkPortGetParameters() failed)r   virNetworkPortGetParametersr   r   r   s      r    
parametersvirNetworkPort.parameters  r&  r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )zChange the port tunables r   z$virNetworkPortSetParameters() failed)r   virNetworkPortSetParametersr   r   r  s       r    setParametersvirNetworkPort.setParameters  r  r"   )r   rS  r   rj   r   Nr  )rI   rJ   rK   rL   r   r   r   r^  r   r   r   r   rr  rv  rz  rO   rP   r"   r    r+  r+    s9    
:	r"   r+  c                   f    \ rS rSrSS jrS rS rS rS rSS jr	SS	 jr
SS
 jrS rS rS rSrg)virInterfacei  Nc                 |    Xl         [        U5      R                  S;  a  [        S[        U5      -  5      eX l        g r   r   r   s      r    r   virInterface.__init__  r   r"   c                 l    U R                   b   [        R                  " U R                   5        S U l         g rj   )r   r   virInterfaceFreer&   s    r    r   virInterface.__del__  s%    77''0r"   c                     U R                   $ rj   r   r&   s    r    r   virInterface.connect  r   r"   c                 B    [         R                  " U R                  5      $ r   )r   virInterface_pointerr   r&   s    r    r   virInterface.c_pointer  s    ..tww77r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )zTGet the MAC for an interface as string. For more information about
MAC see RFC4122. z!virInterfaceGetMACString() failed)r   virInterfaceGetMACStringr   r   r   s     r    	MACStringvirInterface.MACString  s.     11$'':;BCC
r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )a   VIR_INTERFACE_XML_INACTIVE - return the static configuration,
                                  suitable for use redefining the
                                  interface via virInterfaceDefineXML()

Provide an XML description of the interface. If
VIR_INTERFACE_XML_INACTIVE is set, the description may be reused
later to redefine the interface with virInterfaceDefineXML(). If it
is not set, the ip address and netmask will be the current live
setting of the interface, not the settings from the config files. zvirInterfaceGetXMLDesc() failed)r   virInterfaceGetXMLDescr   r   r   s      r    r   virInterface.XMLDesc   s0     //?;@AA
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )a#  Activate an interface (i.e. call "ifup").

If there was an open network config transaction at the time this
interface was defined (that is, if virInterfaceChangeBegin() had
been called), the interface will be brought back down (and then
undefined) if virInterfaceChangeRollback() is called. r   zvirInterfaceCreate() failed)r   virInterfaceCreater   r   r   s      r    r  virInterface.create/  s2     ++DGGU;"9<==
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )a  deactivate an interface (ie call "ifdown")
This does not remove the interface from the config, and
does not free the associated virInterfacePtr object.

If there is an open network config transaction at the time this
interface is destroyed (that is, if virInterfaceChangeBegin() had
been called), and if the interface is later undefined and then
virInterfaceChangeRollback() is called, the restoral of the
interface definition will also bring the interface back up. r   zvirInterfaceDestroy() failed)r   virInterfaceDestroyr   r   r   s      r    r  virInterface.destroy;  s2     ,,TWWe<"9=>>
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )z0Determine if the interface is currently running r   zvirInterfaceIsActive() failed)r   virInterfaceIsActiver   r   r   s     r    r  virInterface.isActiveJ  .    --dgg6"9>??
r"   c                 F    [         R                  " U R                  5      nU$ )z'Get the public name for that interface )r   virInterfaceGetNamer   r   s     r    r_   virInterface.nameQ  s    ,,TWW5
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )a  Undefine an interface, ie remove it from the config.
This does not free the associated virInterfacePtr object.

Normally this change in the interface configuration is
permanent/persistent, but if virInterfaceChangeBegin() has been
previously called (i.e. if an interface config transaction is
open), the removal of the interface definition will only become
permanent if virInterfaceChangeCommit() is called prior to the next
reboot of the system running libvirtd. Prior to that time, the
definition can be explicitly restored using
virInterfaceChangeRollback(), or will be automatically restored
during the next reboot of the system running libvirtd. r   zvirInterfaceUndefine() failed)r   virInterfaceUndefiner   r   r   s     r    r  virInterface.undefineV  s0     --dgg6"9>??
r"   r  rj   r  )rI   rJ   rK   rL   r   r   r   r   r  r   r  r  r  r_   r  rO   rP   r"   r    r~  r~    s9    
8

r"   r~  c                       \ rS rSrS S jrS rS rS rS rS r	S!S	 jr
S
 rS!S jrS!S jrS!S jrS!S jrS!S jrS rS rS rS rS rS rS rS!S jrS rS rS rS!S\S\S   4S jjrSrg)"virStoragePoolih  Nc                 |    Xl         [        U5      R                  S;  a  [        S[        U5      -  5      eX l        g r   r   r   s      r    r   virStoragePool.__init__i  r   r"   c                 l    U R                   b   [        R                  " U R                   5        S U l         g rj   )r   r   virStoragePoolFreer&   s    r    r   virStoragePool.__del__o  rZ  r"   c                     U R                   $ rj   r   r&   s    r    r   virStoragePool.connectt  r   r"   c                 B    [         R                  " U R                  5      $ r   )r   virStoragePool_pointerr   r&   s    r    r   virStoragePool.c_pointerw  rd  r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )z6Extract the UUID unique Identifier of a storage pool. zvirStoragePoolGetUUID() failed)r   virStoragePoolGetUUIDr   r   r   s     r    r   virStoragePool.UUID  rh  r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )z:Fetch globally unique ID of the storage pool as a string. z$virStoragePoolGetUUIDString() failed)r   virStoragePoolGetUUIDStringr   r   r   s     r    r   virStoragePool.UUIDString  rl  r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )zFetch an XML document describing all aspects of the
storage pool. This is suitable for later feeding back
into the virStoragePoolCreateXML method. z!virStoragePoolGetXMLDesc() failed)r   virStoragePoolGetXMLDescr   r   r   s      r    r   virStoragePool.XMLDesc  s0     11$''5A;BCC
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )z.Extract the autostart flag for a storage pool r   z#virStoragePoolGetAutostart() failed)r   virStoragePoolGetAutostartr   r   r   s     r    r  virStoragePool.autostart  .    33DGG<"9DEE
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )zCurrently only filesystem pool accepts flags VIR_STORAGE_POOL_BUILD_OVERWRITE
and VIR_STORAGE_POOL_BUILD_NO_OVERWRITE.

Build the underlying storage pool r   zvirStoragePoolBuild() failed)r   virStoragePoolBuildr   r   r   s      r    buildvirStoragePool.build  s2    
 ,,TWWe<"9=>>
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )z Starts an inactive storage pool r   zvirStoragePoolCreate() failed)r   virStoragePoolCreater   r   r   s      r    r  virStoragePool.create  s0    --dggu="9>??
r"   c                     [         R                  " U R                  X5      nUc  [        S5      e[	        U R
                  US9nU$ )a  Create a storage volume within a pool based
on an XML description. Not all pools support
creation of volumes.

Since 1.0.1 VIR_STORAGE_VOL_CREATE_PREALLOC_METADATA
in flags can be used to get higher performance with
qcow2 image files which don't support full preallocation,
by creating a sparse image file with metadata.

virStorageVolFree should be used to free the resources after the
storage volume object is no longer needed. zvirStorageVolCreateXML() failedrZ   )r   virStorageVolCreateXMLr   r   virStorageVolr   )r   rm  rX   r]   _virStoragePool__tmps        r    	createXMLvirStoragePool.createXML  s@     //H;@AAdjjs3r"   c                     Uc  SnOUR                   n[        R                  " U R                   XU5      nUc  [        S5      e[	        U R
                  US9nU$ )a  Create a storage volume in the parent pool, using the
'clonevol' volume as input. Information for the new
volume (name, perms)  are passed via a typical volume
XML description.

Since 1.0.1 VIR_STORAGE_VOL_CREATE_PREALLOC_METADATA
in flags can be used to get higher performance with
qcow2 image files which don't support full preallocation,
by creating a sparse image file with metadata.

virStorageVolFree should be used to free the resources after the
storage volume object is no longer needed. Nz#virStorageVolCreateXMLFrom() failedrZ   )r   r   virStorageVolCreateXMLFromr   r  r   )r   rm  clonevolrX   clonevol__or]   r  s          r    createXMLFromvirStoragePool.createXMLFrom  sW     K"++K33DGGWSXY;DEEdjjs3r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )z~Delete the underlying pool resources. This is
a non-recoverable operation. The virStoragePoolPtr object
itself is not free'd. r   zvirStoragePoolDelete() failed)r   virStoragePoolDeleter   r   r   s      r    rr  virStoragePool.delete  s2     --dggu="9>??
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )a  Destroy an active storage pool. This will deactivate the
pool on the host, but keep any persistent config associated
with it. If it has a persistent config it can later be
restarted with virStoragePoolCreate(). This does not free
the associated virStoragePoolPtr object. r   zvirStoragePoolDestroy() failed)r   virStoragePoolDestroyr   r   r   s     r    r  virStoragePool.destroy  s0     ..tww7"9?@@
r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )zExtract information about a storage pool. Note that if the connection used to get the domain is limited only a partial set of the information can be extracted. zvirStoragePoolGetInfo() failed)r   virStoragePoolGetInfor   r   r   s     r    r  virStoragePool.info  rh  r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )z3Determine if the storage pool is currently running r   zvirStoragePoolIsActive() failed)r   virStoragePoolIsActiver   r   r   s     r    r  virStoragePool.isActive  r  r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )zqDetermine if the storage pool has a persistent configuration
which means it will still exist after shutting down r   z#virStoragePoolIsPersistent() failed)r   virStoragePoolIsPersistentr   r   r   s     r    r  virStoragePool.isPersistent  s0     33DGG<"9DEE
r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )zElist the storage volumes, stores the pointers to the names in @names z"virStoragePoolListVolumes() failed)r   virStoragePoolListVolumesr   r   r   s     r    listVolumesvirStoragePool.listVolumes  r  r"   c                 F    [         R                  " U R                  5      nU$ )z2Fetch the locally unique name of the storage pool )r   virStoragePoolGetNamer   r   s     r    r_   virStoragePool.name$  s    ..tww7
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )z2Fetch the number of storage volumes within a pool r   z#virStoragePoolNumOfVolumes() failed)r   virStoragePoolNumOfVolumesr   r   r   s     r    numOfVolumesvirStoragePool.numOfVolumes)  r  r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )zRequest that the pool refresh its list of volumes. This may
involve communicating with a remote server, and/or initializing
new devices at the OS layer r   zvirStoragePoolRefresh() failed)r   virStoragePoolRefreshr   r   r   s      r    refreshvirStoragePool.refresh0  s2     ..tww>"9?@@
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )zTConfigure the storage pool to be automatically started
when the host machine boots. r   z#virStoragePoolSetAutostart() failed)r   virStoragePoolSetAutostartr   r   r  s      r    r  virStoragePool.setAutostart9  s2     33DGGYG"9DEE
r"   c                     [         R                  " U R                  U5      nUc  [        S5      e[	        U R
                  US9nU$ )zFetch a pointer to a storage volume based on its name
within a pool

virStorageVolFree should be used to free the resources after the
storage volume object is no longer needed. z"virStorageVolLookupByName() failedrZ   )r   virStorageVolLookupByNamer   r   r  r   )r   r_   r]   r  s       r    storageVolLookupByName%virStoragePool.storageVolLookupByNameA  s@     22477DA;CDDdjjs3r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )z"Undefine an inactive storage pool r   zvirStoragePoolUndefine() failed)r   virStoragePoolUndefiner   r   r   s     r    r  virStoragePool.undefineM  r  r"   rX   r   r  c                     [         R                  " U R                  U5      nUc  [        S5      eU Vs/ s H  n[	        U R
                  US9PM     sn$ s  snf )zEList all storage volumes and returns a list of storage volume objectsz%virStoragePoolListAllVolumes() failedrZ   )r   virStoragePoolListAllVolumesr   r   r  r   )r   rX   r]   volptrs       r    listAllVolumesvirStoragePool.listAllVolumesW  sL    55dgguE;FGGEHIS6djjv6SIIIs   Ar  rj   r  ) rI   rJ   rK   rL   r   r   r   r   r   r   r   r  r  r  r  r  rr  r  r  r  r  r  r_   r  r  r  r  r  rN   r   r  rO   rP   r"   r    r  r  h  s    
:$.	

JC J_0E J Jr"   r  c                       \ rS rSrSrSS jrS rS rS rSS jr	SS	 jr
SS
 jrS rSS jrS rS rS rSS jrS rSS jrSS jrSS jrSrg)r  i_  i Nc                 |    Xl         [        U5      R                  S;  a  [        S[        U5      -  5      eX l        g r   r   r   s      r    r   virStorageVol.__init__f  r   r"   c                 l    U R                   b   [        R                  " U R                   5        S U l         g rj   )r   r   virStorageVolFreer&   s    r    r   virStorageVol.__del__l  %    77((1r"   c                     U R                   $ rj   r   r&   s    r    r   virStorageVol.connectq  r   r"   c                 B    [         R                  " U R                  5      $ r   )r   virStorageVol_pointerr   r&   s    r    r   virStorageVol.c_pointert      //88r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )zCFetch an XML document describing all aspects of
the storage volume z virStorageVolGetXMLDesc() failed)r   virStorageVolGetXMLDescr   r   r   s      r    r   virStorageVol.XMLDesc|  0     00%@;ABB
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )z(Delete the storage volume from the pool r   zvirStorageVolDelete() failed)r   virStorageVolDeleter   r   r   s      r    rr  virStorageVol.delete  0    ,,TWWe<"9=>>
r"   c                     Uc  SnOUR                   n[        R                  " U R                   XRX45      nUS:X  a  [        S5      eU$ )a  Download the content of the volume as a stream. If @length
is zero, then the remaining contents of the volume after
@offset will be downloaded. Please note that the stream
transports the volume itself as is, so the downloaded data may
not correspond to guest OS visible state in cases when a
complex storage format such as qcow2 or vmdk is used.

If VIR_STORAGE_VOL_DOWNLOAD_SPARSE_STREAM is set in @flags
effective transmission of holes is enabled. This assumes using
the @stream with combination of virStreamSparseRecvAll() or
virStreamRecvFlags(stream, ..., flags =
VIR_STREAM_RECV_STOP_AT_HOLE) for honouring holes sent by
server.

This call sets up an asynchronous stream; subsequent use of
stream APIs is necessary to transfer the actual data,
determine how much data is successfully transferred, and
detect any errors. The results will be unpredictable if
another active stream is writing to the storage volume. Nr   zvirStorageVolDownload() failed)r   r   virStorageVolDownloadr   r   r  rP  lengthrX   r  r]   s          r    downloadvirStorageVol.download  sG    ( >I		I..tww	6Y"9?@@
r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )Extract information about a storage volume. Note that if the connection used to get the domain is limited only a partial set of the information can be extracted. zvirStorageVolGetInfo() failed)r   virStorageVolGetInfor   r   r   s     r    r  virStorageVol.info  r8  r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )r  z"virStorageVolGetInfoFlags() failed)r   virStorageVolGetInfoFlagsr   r   r   s      r    	infoFlagsvirStorageVol.infoFlags  s.    22477EB;CDD
r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )zFetch the storage volume key. This is globally
unique, so the same volume will have the same
key no matter what host it is accessed from zvirStorageVolGetKey() failed)r   virStorageVolGetKeyr   r   r   s     r    rV  virStorageVol.key  s.     ,,TWW5;=>>
r"   c                 F    [         R                  " U R                  5      nU$ )zIFetch the storage volume name. This is unique
within the scope of a pool )r   virStorageVolGetNamer   r   s     r    r_   virStorageVol.name  s     --dgg6
r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )zFetch the storage volume path. Depending on the pool
configuration this is either persistent across hosts,
or dynamically assigned at pool startup. Consult
pool documentation for information on getting the
persistent naming zvirStorageVolGetPath() failed)r   virStorageVolGetPathr   r   r   s     r    r8  virStorageVol.path  s.     --dgg6;>??
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )a  Changes the capacity of the storage volume @vol to @capacity. The
operation will fail if the new capacity requires allocation that would
exceed the remaining free space in the parent pool.  The contents of
the new capacity will appear as all zero bytes. The capacity value will
be rounded to the granularity supported by the hypervisor.

Normally, the operation will attempt to affect capacity with a minimum
impact on allocation (that is, the default operation favors a sparse
resize).  If @flags contains VIR_STORAGE_VOL_RESIZE_ALLOCATE, then the
operation will ensure that allocation is sufficient for the new
capacity; this may make the operation take noticeably longer.

Normally, the operation treats @capacity as the new size in bytes;
but if @flags contains VIR_STORAGE_VOL_RESIZE_DELTA, then @capacity
represents the size difference to add to the current size.  It is
up to the storage pool implementation whether unaligned requests are
rounded up to the next valid boundary, or rejected.

Normally, this operation should only be used to enlarge capacity;
but if @flags contains VIR_STORAGE_VOL_RESIZE_SHRINK, it is possible to
attempt a reduction in capacity even though it might cause data loss.
If VIR_STORAGE_VOL_RESIZE_DELTA is also present, then @capacity is
subtracted from the current size; without it, @capacity represents
the absolute new size regardless of whether it is larger or smaller
than the current size. r   zvirStorageVolResize() failed)r   virStorageVolResizer   r   )r   capacityrX   r]   s       r    resizevirStorageVol.resize  s2    4 ,,TWWhF"9=>>
r"   c                     [         R                  " U R                  5      nUc  [        S5      e[	        U R
                  US9nU$ )zFetch a storage pool which contains a particular volume

virStoragePoolFree should be used to free the resources after the
storage pool object is no longer needed. z%virStoragePoolLookupByVolume() failedrZ   )r   virStoragePoolLookupByVolumer   r   r  r   )r   r]   _virStorageVol__tmps      r    storagePoolLookupByVolume'virStorageVol.storagePoolLookupByVolume  s>    
 55dgg>;FGGtzz4r"   c                     Uc  SnOUR                   n[        R                  " U R                   XRX45      nUS:X  a  [        S5      eU$ )a  Upload new content to the volume from a stream. This call
will fail if @offset + @length exceeds the size of the
volume. Otherwise, if @length is non-zero, an error
will be raised if an attempt is made to upload greater
than @length bytes of data. Please note that the stream
transports the volume itself as is, so the downloaded data may
not correspond to guest OS visible state in cases when a
complex storage format such as qcow2 or vmdk is used.

If VIR_STORAGE_VOL_UPLOAD_SPARSE_STREAM is set in @flags
effective transmission of holes is enabled. This assumes using
the @stream with combination of virStreamSparseSendAll() or
virStreamSendHole() to preserve source file sparseness.

This call sets up an asynchronous stream; subsequent use of
stream APIs is necessary to transfer the actual data,
determine how much data is successfully transferred, and
detect any errors. The results will be unpredictable if
another active stream is writing to the storage volume.

When the data stream is closed whether the upload is successful
or not an attempt will be made to refresh the target storage pool
if an asynchronous build is not running in order to reflect pool
and volume changes as a result of the upload. Depending on
the target volume storage backend and the source stream type
for a successful upload, the target volume may take on the
characteristics from the source stream such as format type,
capacity, and allocation. Nr   zvirStorageVolUpload() failed)r   r   virStorageVolUploadr   r  s          r    uploadvirStorageVol.upload  sG    : >I		I,,TWWiW"9=>>
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )aE  Ensure data previously on a volume is not accessible to future reads.

The data to be wiped may include the format and possibly size information,
so non-raw images might become raw with a different size. It is storage
backend dependent whether the format and size information is regenerated
once the initial volume wipe is completed.

Depending on the actual volume representation, this call may not
overwrite the physical location of the volume. For instance, files
stored journaled, log structured, copy-on-write, versioned, and
network file systems are known to be problematic. r   zvirStorageVolWipe() failed)r   virStorageVolWiper   r   r   s      r    wipevirStorageVol.wipe(  s2     **477E:"9;<<
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )ac  Similar to virStorageVolWipe, but one can choose between
different wiping algorithms. Also note, that depending on the
actual volume representation, this call may not really
overwrite the physical location of the volume. For instance,
files stored journaled, log structured, copy-on-write,
versioned, and network file systems are known to be
problematic. r   z!virStorageVolWipePattern() failed)r   virStorageVolWipePatternr   r   )r   	algorithmrX   r]   s       r    wipePatternvirStorageVol.wipePattern9  s2     11$''9L"9BCC
r"   r  rj   r  )rI   rJ   rK   rL   streamBufSizer   r   r   r   r   rr  r  r  r  rV  r_   r8  r(  r-  r1  r5  r:  rO   rP   r"   r    r  r  _  s`    
 M
9B	>	$L"r"   r  c                      \ rS rSrSS jrS rSS jrSS jrSS jrSS jr	SS	 jr
SS
 jrS rSS jrSS jrSS jrSS jrS rSS jrSS jrSS jrSS jrSS jrSS jrSS jrS rS rSS jrS rSS jrS rS rS r S  r!SS! jr"SS" jr#SS# jr$S$ r%SS% jr&SS& jr'S' r(S( r)S) r*SS* jr+S+ r,S, r-S- r.S. r/S/ r0S0 r1S1 r2S2 r3S3 r4SS4 jr5S5 r6S6 r7S7 r8S8 r9S9 r:S: r;S; r<S< r=S= r>S> r?S? r@SS@ jrASA rBSSB jrCSC rDSD rESE rFSSF jrGSSG jrHSSH jrISI rJSSJ jrKSK rLSL rMSM rNSN rOSSO jrPSP rQSQ rRSR rSSS rTST rUSU rVSSV jrWSW rXSX rYSSY jrZSZ r[S[ r\S\ r]S] r^SS^ jr_SS_ jr`SS` jraSSa jrbSSb jrcSc rdSd reSe rfSSf jrgSg rhSSh jriSSi jrjSSj jrkSk rlSl rmSm rnSn roSo rpSp rqSSq jrrSr rsSs rtSSu jruSSv jrvSw\w\x\y      Sx\w\y   Sy\w\z   StS4Sz jr{S{\|StS4S| jr}S{\|S}\~StS4S~ jrSSS\S\StS4S jrSSS\S\S\\\4   St\4
S jrSSS\\\4   St\4S jrSSS\S\\\4   St\4S jrSSS\S\\\4   St\4S jrSSS\S\S\S\\\4   St\4S jrSSS\S\S\S\S\\\4   St\4S jrSSS\S\S\S\S\S\\\4   St\4S jrSSS\S\S\S\\\4   StS4S jrSSS\S\S\S\S\\\4   St\4S jrSSS\S\S\\\4   St\4
S jrSSS\S\\\4   St\4S jrSSS\S\\\4   St\4S jrSSS\S\\\4   St\4S jrSSS\S\\\4   St\4S jrSSS\S\\\4   St\4S jrSSS\S\\\4   St\4S jrSSS\S\S\\\4   St\4
S jrSSS\S\\\4   St\4S jrSSS\S\\\4   St\4S jrSSS\\\4   S\\\4   St\4S jrSSS\S\\\4   St\4S jrSSS\S\S\\\4   St\4
S jrSSS\S\S\S\S\\\4   St\4S jrSSS\S\S\S\\\4   St\4S jrSSS\S\S\\\4   St\4
S jrSSS\S\S\S\\\4   St\4S jrS\StS4S jrSSS\S\S\\\4   St\4
S jrSSS\S\S\\\4   St\4
S jrS\StS4S jrS\wS   S\S{\S}\~St\4
S jrS\wS   S\S{\S}\~St\4
S jrSSS\S\S\\\4   St\4
S jrSSS\\\4   St\4S jrS\StS4S jrS\wS   S\S{\S}\~St\4
S jrSSS\S\S\\\4   St\4
S jrSSS\\\4   St\4S jrS\StS4S jrS\wS   S\S{\S}\~St\4
S jrSSS\S\S\\\4   St\4
S jrSSS\\\4   St\4S jrS\StS4S jrS\wS   S\S{\S}\~St\4
S jrSS\St\S   4S jjrSS\St\S   4S jjrSS\St\S   4S jjrSS\St\S   4S jjrSS\St\S   4S jjrSS\St\S   4S jjrSS\St\S   4S jjrSS\St\S   4S jjrS\S\\\4   St\4S jrSS jrS{\S}\~St\4S jrSS\S\\   S\StS4S jjrSS\S\St\\S\\\4   4      4S jjrSS\S   S\S\St\\S\\\4   4      4S jjrSrg)r   iF  Nc                 p    [        U5      R                  S;  a  [        S[        U5      -  5      eXl        g r   )r   rI   r   r   )r   r[   s     r    r   virConnect.__init__G  s/    :&@@DtDzQRRr"   c                 B    [         R                  " U R                  5      $ r   )r   virConnect_pointerr   r&   s    r    r   virConnect.c_pointerL  r  r"   c                 l    [         R                  " U R                  XX45      nUS:X  a  [        S5      eU$ )z3Allocate or free some pages in the huge pages pool r   zvirNodeAllocPages() failed)r   virNodeAllocPagesr   r   )r   pages	startCell	cellCountrX   r]   s         r    
allocPagesvirConnect.allocPagesT  s2    **477EiW"9;<<
r"   c                 d    [         R                  " U R                  X5      nUc  [        S5      eU$ )zQComputes the most feature-rich CPU which is compatible with all given host CPUs. zvirConnectBaselineCPU() failed)r   virConnectBaselineCPUr   r   )r   xmlCPUsrX   r]   s       r    baselineCPUvirConnect.baselineCPU[  .    ..twwG;?@@
r"   c           	      h    [         R                  " U R                  XX4XV5      nUc  [        S5      eU$ )z|Computes the most feature-rich CPU which is compatible with all given CPUs and can be provided by the specified hypervisor. z(virConnectBaselineHypervisorCPU() failed)r   virConnectBaselineHypervisorCPUr   r   )r   emulatorarchmachinevirttyperL  rX   r]   s           r    baselineHypervisorCPU virConnect.baselineHypervisorCPUb  s4    88(RYelt;IJJ
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )a  This function creates a restore point to which one can return
later by calling virInterfaceChangeRollback(). This function should
be called before any transaction with interface configuration.
Once it is known that a new configuration works, it can be committed via
virInterfaceChangeCommit(), which frees the restore point.

If virInterfaceChangeBegin() is called when a transaction is
already opened, this function will fail, and a
VIR_ERR_INVALID_OPERATION will be logged. r   z virInterfaceChangeBegin() failed)r   virInterfaceChangeBeginr   r   r   s      r    changeBeginvirConnect.changeBeginm  s2     00%@"9ABB
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )a  This commits the changes made to interfaces and frees the restore point
created by virInterfaceChangeBegin().

If virInterfaceChangeCommit() is called when a transaction is not
opened, this function will fail, and a VIR_ERR_INVALID_OPERATION
will be logged. r   z!virInterfaceChangeCommit() failed)r   virInterfaceChangeCommitr   r   r   s      r    changeCommitvirConnect.changeCommit|  s2     11$''5A"9BCC
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )a	  This cancels changes made to interfaces settings by restoring previous
state created by virInterfaceChangeBegin().

If virInterfaceChangeRollback() is called when a transaction is not
opened, this function will fail, and a VIR_ERR_INVALID_OPERATION
will be logged. r   z#virInterfaceChangeRollback() failed)r   virInterfaceChangeRollbackr   r   r   s      r    changeRollbackvirConnect.changeRollback  s2     33DGGUC"9DEE
r"   c                 v    [         R                  " U R                  5      nSU l        US:X  a  [        S5      eU$ )a  This function closes the connection to the Hypervisor. This should
not be called if further interaction with the Hypervisor are needed
especially if there is running domain which need further monitoring by
the application.

Connections are reference counted; the count is explicitly
increased by the initial open (virConnectOpen, virConnectOpenAuth,
and the like) as well as virConnectRef; it is also temporarily
increased by other API that depend on the connection remaining
alive.  The open and every virConnectRef call should have a
matching virConnectClose, and all other references will be released
after the corresponding operation completes. Nr   zvirConnectClose() failed)r   virConnectCloser   r   r   s     r    closevirConnect.close  s7     ((1"99::
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )zCompares the given CPU description with the host CPU.

See virConnectCompareHypervisorCPU() if you want to consider hypervisor
abilities and compare the CPU to the CPU which a hypervisor is able to
provide on the host. r   zvirConnectCompareCPU() failed)r   virConnectCompareCPUr   r   r   rm  rX   r]   s       r    
compareCPUvirConnect.compareCPU  s2     --dggwF"9>??
r"   c           	      n    [         R                  " U R                  XX4XV5      nUS:X  a  [        S5      eU$ )a  Compares the given CPU description with the CPU the specified hypervisor is
able to provide on the host. Any of @emulator, @arch, @machine, and
@virttype parameters may be None; libvirt will choose sensible defaults
tailored to the host and its current configuration.

This is different from virConnectCompareCPU() which compares the CPU
definition with the host CPU without considering any specific hypervisor and
its abilities. r   z'virConnectCompareHypervisorCPU() failed)r   virConnectCompareHypervisorCPUr   r   )r   rR  rS  rT  rU  xmlCPUrX   r]   s           r    compareHypervisorCPUvirConnect.compareHypervisorCPU  s8     77QXdjr"9HII
r"   c                 v    [         R                  " U R                  X5      nUc  [        S5      e[	        XS9nU$ )zDeprecated after 0.4.6.
Renamed to virDomainCreateXML() providing identical functionality.
This existing name will be left indefinitely for API compatibility. zvirDomainCreateLinux() failedrZ   )r   virDomainCreateLinuxr   r   r   r   rm  rX   r]   _virConnect__tmps        r    createLinuxvirConnect.createLinux  s:     --dggwF;>??$)r"   c                 v    [         R                  " U R                  X5      nUc  [        S5      e[	        XS9nU$ )av  Launch a new guest domain, based on an XML description similar
to the one returned by virDomainGetXMLDesc()
This function may require privileged access to the hypervisor.
The domain is not persistent, so its definition will disappear when it
is destroyed, or if the host is restarted (see virDomainDefineXML() to
define persistent domains).

If the VIR_DOMAIN_START_PAUSED flag is set, the guest domain
will be started, but its CPUs will remain paused. The CPUs
can later be manually started using virDomainResume.

If the VIR_DOMAIN_START_AUTODESTROY flag is set, the guest
domain will be automatically destroyed when the virConnectPtr
object is finally released. This will also happen if the
client application crashes / loses its connection to the
libvirtd daemon. Any domains marked for auto destroy will
block attempts at migration. Hypervisors may also block save-to-file,
or snapshots.

If @flags includes VIR_DOMAIN_START_RESET_NVRAM, then libvirt will
discard any existing NVRAM file and re-initialize NVRAM from the
pristine template.

virDomainFree should be used to free the resources after the
domain object is no longer needed. zvirDomainCreateXML() failedrZ   )r   virDomainCreateXMLr   r   r   rt  s        r    r  virConnect.createXML  s:    4 ++DGGWD;<==$)r"   c                 v    [         R                  " U R                  U5      nUc  [        S5      e[	        XS9nU$ )aI  Define a domain, but does not start it.
This definition is persistent, until explicitly undefined with
virDomainUndefine(). A previous definition for this domain with the same
UUID and name would be overridden if it already exists.

virDomainFree should be used to free the resources after the
domain object is no longer needed. zvirDomainDefineXML() failedrZ   )r   virDomainDefineXMLr   r   r   r   r   r]   ru  s       r    	defineXMLvirConnect.defineXML  s:     ++DGGS9;<==$)r"   c                 v    [         R                  " U R                  X5      nUc  [        S5      e[	        XS9nU$ )aJ  Defines a domain, but does not start it.
This definition is persistent, until explicitly undefined with
virDomainUndefine(). A previous definition for this domain with the same
UUID and name would be overridden if it already exists.

virDomainFree should be used to free the resources after the
domain object is no longer needed. z virDomainDefineXMLFlags() failedrZ   )r   virDomainDefineXMLFlagsr   r   r   r   r   rX   r]   ru  s        r    defineXMLFlagsvirConnect.defineXMLFlags   s:     00#E;ABB$)r"   c                 f    [         R                  " U R                  XU5      nUc  [        S5      eU$ )zReads native configuration data  describing a domain, and
generates libvirt domain XML. The format of the native
data is hypervisor dependent. z&virConnectDomainXMLFromNative() failed)r   virConnectDomainXMLFromNativer   r   )r   nativeFormatnativeConfigrX   r]   s        r    domainXMLFromNativevirConnect.domainXMLFromNative  s3     66tww\ab;GHH
r"   c                 f    [         R                  " U R                  XU5      nUc  [        S5      eU$ )aD  Reads a domain XML configuration document, and generates
a native configuration file describing the domain.
The format of the native data is hypervisor dependent.

Note that certain hypervisor drivers such as the QEMU driver configure many
aspects of the domain dynamically via hypervisor APIs and that may not be
part of the returned native configuration format. Similarly certain resources
are passed to the hypervisor via file descriptors, which are not part of the
native configuration returned by this API. Such configuration is thus not
trivially usable outside of libvirt. z$virConnectDomainXMLToNative() failed)r   virConnectDomainXMLToNativer   r   )r   r  	domainXmlrX   r]   s        r    domainXMLToNativevirConnect.domainXMLToNative  s3     44TWWlW\];EFF
r"   c                 f    [         R                  " U R                  XU5      nUc  [        S5      eU$ )a  Talks to a storage backend and attempts to auto-discover the set of
available storage pool sources. e.g. For iSCSI this would be a set of
iSCSI targets. For NFS this would be a list of exported paths.  The
srcSpec (optional for some storage pool types, e.g. local ones) is
an instance of the storage pool's source element specifying where
to look for the pools.

srcSpec is not required for some types (e.g., those querying
local storage resources only) z)virConnectFindStoragePoolSources() failed)r    virConnectFindStoragePoolSourcesr   r   )r   r   srcSpecrX   r]   s        r    findStoragePoolSources!virConnect.findStoragePoolSources+  s3     99$''4RWX;JKK
r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )zGet node CPU information zvirNodeGetCPUMap() failed)r   virNodeGetCPUMapr   r   r   s      r    	getCPUMapvirConnect.getCPUMap>  r  r"   c                 d    [         R                  " U R                  X5      nUc  [        S5      eU$ )z&Get the list of supported CPU models. z#virConnectGetCPUModelNames() failed)r   virConnectGetCPUModelNamesr   r   )r   rS  rX   r]   s       r    getCPUModelNamesvirConnect.getCPUModelNamesE  s.    33DGGTI;DEE
r"   c                 d    [         R                  " U R                  X5      nUc  [        S5      eU$ )zExtract node's CPU statistics. zvirNodeGetCPUStats() failed)r   virNodeGetCPUStatsr   r   )r   cpuNumrX   r]   s       r    r  virConnect.getCPUStatsL  s.    ++DGGVC;<==
r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )z2Provides capabilities of the hypervisor / driver. z"virConnectGetCapabilities() failed)r   virConnectGetCapabilitiesr   r   r   s     r    getCapabilitiesvirConnect.getCapabilitiesW  r  r"   c                 d    [         R                  " U R                  X5      nUc  [        S5      eU$ )z1Returns the available memory for a list of cells z"virNodeGetCellsFreeMemory() failed)r   virNodeGetCellsFreeMemoryr   r   )r   rF  maxCellsr]   s       r    getCellsFreeMemoryvirConnect.getCellsFreeMemoryb  s.    22477IP;CDD
r"   c                 h    [         R                  " U R                  XX4U5      nUc  [        S5      eU$ )zQuery domain capabilities z(virConnectGetDomainCapabilities() failed)r   virConnectGetDomainCapabilitiesr   r   )r   emulatorbinrS  rT  rU  rX   r]   s          r    getDomainCapabilities virConnect.getDomainCapabilitiesm  s4    88+U\hmn;IJJ
r"   c                 F    [         R                  " U R                  5      nU$ )zprovides the free memory available on the Node
Note: most libvirt APIs provide memory sizes in kibibytes, but in this
function the returned value is in bytes. Divide by 1024 as necessary. )r   virNodeGetFreeMemoryr   r   s     r    getFreeMemoryvirConnect.getFreeMemoryx  s     --dgg6
r"   c                 f    [         R                  " U R                  XX45      nUc  [        S5      eU$ )zIReturns the number of available pages for a list of cells and page sizes zvirNodeGetFreePages() failed)r   virNodeGetFreePagesr   r   )r   rE  rF  r  rX   r]   s         r    getFreePagesvirConnect.getFreePages  s0    ,,TWWeX;=>>
r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )a  This returns a system hostname on which the hypervisor is
running (based on the result of the gethostname system call, but
possibly expanded to a fully-qualified domain name via getaddrinfo).
If we are connected to a remote system, then this returns the
hostname of the remote system. zvirConnectGetHostname() failed)r   virConnectGetHostnamer   r   r   s     r    getHostnamevirConnect.getHostname  s.     ..tww7;?@@
r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )zjExtract hardware information about the Node. Note that the memory size is reported in MiB instead of KiB. zvirNodeGetInfo() failed)r   virNodeGetInfor   r   r   s     r    getInfovirConnect.getInfo  s,    ''0;899
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )z3Returns the libvirt version of the connection host r   z virConnectGetLibVersion() failed)r   virConnectGetLibVersionr   r   r   s     r    getLibVersionvirConnect.getLibVersion  .    009"9ABB
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )a  Provides the maximum number of virtual CPUs supported for a guest VM of a
specific type. The 'type' parameter here corresponds to the 'type'
attribute in the <domain> element of the XML. This API doesn't take emulator
limits into consideration, hence the returned value is not guaranteed to be
usable. It is recommended to use virConnectGetDomainCapabilities() and look
for "<vcpu max='...'>" in its output instead. r   zvirConnectGetMaxVcpus() failed)r   virConnectGetMaxVcpusr   r   )r   r   r]   s      r    getMaxVcpusvirConnect.getMaxVcpus  s2     ..tww="9?@@
r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )zGet the node memory parameters z#virNodeGetMemoryParameters() failed)r   virNodeGetMemoryParametersr   r   r   s      r    getMemoryParametersvirConnect.getMemoryParameters  r  r"   c                 d    [         R                  " U R                  X5      nUc  [        S5      eU$ )z"Extract node's memory statistics. zvirNodeGetMemoryStats() failed)r   virNodeGetMemoryStatsr   r   )r   cellNumrX   r]   s       r    getMemoryStatsvirConnect.getMemoryStats  rO  r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )z8Get platform specific information from the SEV firmware zvirNodeGetSEVInfo() failed)r   virNodeGetSEVInfor   r   r   s      r    
getSEVInfovirConnect.getSEVInfo  r  r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )z8Extract information about the hypervisor security model z virNodeGetSecurityModel() failed)r   virNodeGetSecurityModelr   r   r   s     r    getSecurityModelvirConnect.getSecurityModel  r  r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )zPrior creating a storage pool (for instance via virStoragePoolCreateXML
or virStoragePoolDefineXML) it may be suitable to know what pool types
are supported along with the file/disk formats for each pool. z-virConnectGetStoragePoolCapabilities() failed)r   $virConnectGetStoragePoolCapabilitiesr   r   r   s      r    getStoragePoolCapabilities%virConnect.getStoragePoolCapabilities  s0     ==dgguM;NOO
r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )a  This returns the XML description of the sysinfo details for the
host on which the hypervisor is running, in the same format as the
<sysinfo> element of a domain XML.  This information is generally
available only for hypervisors running with root privileges. zvirConnectGetSysinfo() failed)r   virConnectGetSysinfor   r   r   s      r    
getSysinfovirConnect.getSysinfo  s0    
 --dggu=;>??
r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )a8  Get the name of the Hypervisor driver used. This is merely the driver
name; for example, both KVM and QEMU guests are serviced by the
driver for the qemu:// URI, so a return of "QEMU" does not indicate
whether KVM acceleration is present.  For more details about the
hypervisor, use virConnectGetCapabilities(). zvirConnectGetType() failed)r   virConnectGetTyper   r   r   s     r    getTypevirConnect.getType  s.     **4773;;<<
r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )aj  This returns the URI (name) of the hypervisor connection.
Normally this is the same as or similar to the string passed
to the virConnectOpen/virConnectOpenReadOnly call, but
the driver may make the URI canonical.  If name == None
was passed to virConnectOpen, then the driver will return
a non-None URI which can be used to connect to the same
hypervisor later. zvirConnectGetURI() failed)r   virConnectGetURIr   r   r   s     r    getURIvirConnect.getURI  s.     ))$''2;:;;
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )z>Returns the running hypervisor version of the connection host r   zvirConnectGetVersion() failed)r   virConnectGetVersionr   r   r   s     r    rc   virConnect.getVersion  r  r"   c                 v    [         R                  " U R                  X5      nUc  [        S5      e[	        XS9nU$ )a  Define an inactive persistent physical host interface or modify an existing
persistent one from the XML description.

Normally this change in the interface configuration is immediately
permanent/persistent, but if virInterfaceChangeBegin() has been
previously called (i.e. if an interface config transaction is
open), the new interface definition will only become permanent if
virInterfaceChangeCommit() is called prior to the next reboot of
the system running libvirtd. Prior to that time, it can be
explicitly removed using virInterfaceChangeRollback(), or will be
automatically removed during the next reboot of the system running
libvirtd.

virInterfaceFree should be used to free the resources after the
interface object is no longer needed. zvirInterfaceDefineXML() failedrZ   )r   virInterfaceDefineXMLr   r   r~  r  s        r    interfaceDefineXMLvirConnect.interfaceDefineXML  s:      ..twwC;?@@T,r"   c                 v    [         R                  " U R                  U5      nUc  [        S5      e[	        XS9nU$ )zTry to lookup an interface on the given hypervisor based on its MAC.

virInterfaceFree should be used to free the resources after the
interface object is no longer needed. z&virInterfaceLookupByMACString() failedrZ   )r   virInterfaceLookupByMACStringr   r   r~  )r   macstrr]   ru  s       r    interfaceLookupByMACString%virConnect.interfaceLookupByMACString3  s:    
 66twwG;GHHT,r"   c                 v    [         R                  " U R                  U5      nUc  [        S5      e[	        XS9nU$ )zTry to lookup an interface on the given hypervisor based on its name.

virInterfaceFree should be used to free the resources after the
interface object is no longer needed. z!virInterfaceLookupByName() failedrZ   )r   virInterfaceLookupByNamer   r   r~  r   r_   r]   ru  s       r    interfaceLookupByName virConnect.interfaceLookupByName>  s:    
 11$''4@;BCCT,r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )zDetermine if the connection to the hypervisor is still alive

A connection will be classed as alive if it is either local, or running
over a channel (TCP or UNIX socket) which is not closed. r   zvirConnectIsAlive() failed)r   virConnectIsAliver   r   r   s     r    isAlivevirConnect.isAliveM  r   r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )z;Determine if the connection to the hypervisor is encrypted r   zvirConnectIsEncrypted() failed)r   virConnectIsEncryptedr   r   r   s     r    isEncryptedvirConnect.isEncryptedW  r  r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )zDetermine if the connection to the hypervisor is secure

A connection will be classed as secure if it is either
encrypted, or running over a channel which is not exposed
to eavesdropping (eg a UNIX domain socket, or pipe) r   zvirConnectIsSecure() failed)r   virConnectIsSecurer   r   r   s     r    isSecurevirConnect.isSecure^  s0     ++DGG4"9<==
r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )zElist the defined domains, stores the pointers to the names in @names z%virConnectListDefinedDomains() failed)r   virConnectListDefinedDomainsr   r   r   s     r    listDefinedDomainsvirConnect.listDefinedDomainsm  s,    55dgg>;FGG
r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )zHlist the defined interfaces, stores the pointers to the names in @names z(virConnectListDefinedInterfaces() failed)r   virConnectListDefinedInterfacesr   r   r   s     r    listDefinedInterfaces virConnect.listDefinedInterfacest  r  r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )zFlist the defined networks, stores the pointers to the names in @names z&virConnectListDefinedNetworks() failed)r   virConnectListDefinedNetworksr   r   r   s     r    listDefinedNetworksvirConnect.listDefinedNetworks{  r  r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )zJlist the defined storage pool, stores the pointers to the names in @names z*virConnectListDefinedStoragePools() failed)r   !virConnectListDefinedStoragePoolsr   r   r   s     r    listDefinedStoragePools"virConnect.listDefinedStoragePools  s,    ::477C;KLL
r"   c                 d    [         R                  " U R                  X5      nUc  [        S5      eU$ )zlist the node devices zvirNodeListDevices() failed)r   virNodeListDevicesr   r   r   caprX   r]   s       r    listDevicesvirConnect.listDevices  s.    ++DGGS@;<==
r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )z<Returns the list of the ID of the domains on the hypervisor z virConnectListDomainsID() failed)r   virConnectListDomainsIDr   r   r   s     r    listDomainsIDvirConnect.listDomainsID  r  r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )zHlist the running interfaces, stores the pointers to the names in @names z!virConnectListInterfaces() failed)r   virConnectListInterfacesr   r   r   s     r    listInterfacesvirConnect.listInterfaces  ,    11$'':;BCC
r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )z!List the defined network filters z virConnectListNWFilters() failed)r   virConnectListNWFiltersr   r   r   s     r    listNWFiltersvirConnect.listNWFilters  r  r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )z>list the networks, stores the pointers to the names in @names zvirConnectListNetworks() failed)r   virConnectListNetworksr   r   r   s     r    listNetworksvirConnect.listNetworks  r   r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )zList the defined secret IDs zvirConnectListSecrets() failed)r   virConnectListSecretsr   r   r   s     r    listSecretsvirConnect.listSecrets  rh  r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )zClist the storage pools, stores the pointers to the names in @names z#virConnectListStoragePools() failed)r   virConnectListStoragePoolsr   r   r   s     r    listStoragePoolsvirConnect.listStoragePools  ,    33DGG<;DEE
r"   c                 v    [         R                  " U R                  U5      nUc  [        S5      e[	        XS9nU$ )a(  Try to find a domain based on the hypervisor ID number
Note that this won't work for inactive domains which have an ID of -1,
in that case a lookup based on the Name or UUID need to be done instead.

virDomainFree should be used to free the resources after the
domain object is no longer needed. zvirDomainLookupByID() failedrZ   )r   virDomainLookupByIDr   r   r   )r   idr]   ru  s       r    
lookupByIDvirConnect.lookupByID  s:     ,,TWWb9;=>>$)r"   c                 v    [         R                  " U R                  U5      nUc  [        S5      e[	        XS9nU$ )zTry to lookup a domain on the given hypervisor based on its name.

virDomainFree should be used to free the resources after the
domain object is no longer needed. zvirDomainLookupByName() failedrZ   )r   virDomainLookupByNamer   r   r   r  s       r    lookupByNamevirConnect.lookupByName  s:    
 ..tww=;?@@$)r"   c                 v    [         R                  " U R                  U5      nUc  [        S5      e[	        XS9nU$ )zBTry to lookup a domain on the given hypervisor based on its UUID. zvirDomainLookupByUUID() failedrZ   )r   virDomainLookupByUUIDr   r   r   r   r3  r]   ru  s       r    lookupByUUIDvirConnect.lookupByUUID  8    ..tww=;?@@$)r"   c                 v    [         R                  " U R                  U5      nUc  [        S5      e[	        XS9nU$ )zTry to lookup a domain on the given hypervisor based on its UUID.

virDomainFree should be used to free the resources after the
domain object is no longer needed. z$virDomainLookupByUUIDString() failedrZ   )r   virDomainLookupByUUIDStringr   r   r   r   r8  r]   ru  s       r    lookupByUUIDStringvirConnect.lookupByUUIDString  s:    
 44TWWgF;EFF$)r"   c                 v    [         R                  " U R                  U5      nUc  [        S5      e[	        XS9nU$ )Create and start a new virtual network, based on an XML description
similar to the one returned by virNetworkGetXMLDesc()

virNetworkFree should be used to free the resources after the
network object is no longer needed. zvirNetworkCreateXML() failedrZ   )r   virNetworkCreateXMLr   r   r  r   rm  r]   ru  s       r    networkCreateXMLvirConnect.networkCreateXML  s:     ,,TWWg>;=>>4*r"   c                 v    [         R                  " U R                  X5      nUc  [        S5      e[	        XS9nU$ )rK  z!virNetworkCreateXMLFlags() failedrZ   )r   virNetworkCreateXMLFlagsr   r   r  rt  s        r    networkCreateXMLFlags virConnect.networkCreateXMLFlags  s:     11$''7J;BCC4*r"   c                 v    [         R                  " U R                  U5      nUc  [        S5      e[	        XS9nU$ )Define an inactive persistent virtual network or modify an existing
persistent one from the XML description.

virNetworkFree should be used to free the resources after the
network object is no longer needed. zvirNetworkDefineXML() failedrZ   )r   virNetworkDefineXMLr   r   r  r}  s       r    networkDefineXMLvirConnect.networkDefineXML  s:     ,,TWWc:;=>>4*r"   c                 v    [         R                  " U R                  X5      nUc  [        S5      e[	        XS9nU$ )rU  z!virNetworkDefineXMLFlags() failedrZ   )r   virNetworkDefineXMLFlagsr   r   r  r  s        r    networkDefineXMLFlags virConnect.networkDefineXMLFlags)  s:     11$''3F;BCC4*r"   c                 v    [         R                  " U R                  U5      nUc  [        S5      e[	        XS9nU$ )zTry to lookup a network on the given hypervisor based on its name.

virNetworkFree should be used to free the resources after the
network object is no longer needed. zvirNetworkLookupByName() failedrZ   )r   virNetworkLookupByNamer   r   r  r  s       r    networkLookupByNamevirConnect.networkLookupByName5  s:    
 //>;@AA4*r"   c                 v    [         R                  " U R                  U5      nUc  [        S5      e[	        XS9nU$ )CTry to lookup a network on the given hypervisor based on its UUID. zvirNetworkLookupByUUID() failedrZ   )r   virNetworkLookupByUUIDr   r   r  rA  s       r    networkLookupByUUIDvirConnect.networkLookupByUUIDD  s8    //>;@AA4*r"   c                 v    [         R                  " U R                  U5      nUc  [        S5      e[	        XS9nU$ )rb  z%virNetworkLookupByUUIDString() failedrZ   )r   virNetworkLookupByUUIDStringr   r   r  rG  s       r    networkLookupByUUIDString$virConnect.networkLookupByUUIDStringP  s8    55dggwG;FGG4*r"   c                 v    [         R                  " U R                  U5      nUc  [        S5      e[	        XS9nU$ )a  Creates a new stream object which can be used to perform
streamed I/O with other public API function.

When no longer needed, a stream object must be released
with virStreamFree. If a data stream has been used,
then the application must call virStreamFinish or
virStreamAbort before free'ing to, in order to notify
the driver of termination.

If a non-blocking data stream is required passed
VIR_STREAM_NONBLOCK for flags, otherwise pass 0. zvirStreamNew() failedrZ   )r   virStreamNewr   r   	virStream)r   rX   r]   ru  s       r    	newStreamvirConnect.newStream\  s:     %%dggu5;677$)r"   c                 v    [         R                  " U R                  X5      nUc  [        S5      e[	        XS9nU$ )zCreate a new device on the VM host machine, for example, virtual
HBAs created using vport_create.

virNodeDeviceFree should be used to free the resources after the
node device object is no longer needed. zvirNodeDeviceCreateXML() failedrZ   )r   virNodeDeviceCreateXMLr   r   virNodeDevicert  s        r    nodeDeviceCreateXMLvirConnect.nodeDeviceCreateXMLr  s:     //H;@AAd-r"   c                 v    [         R                  " U R                  X5      nUc  [        S5      e[	        XS9nU$ )a  Define a new inactive persistent device or modify an existing persistent
one from the XML description on the VM host machine, for example, a mediated
device.

virNodeDeviceFree should be used to free the resources after the
node device object is no longer needed. zvirNodeDeviceDefineXML() failedrZ   )r   virNodeDeviceDefineXMLr   r   rq  rt  s        r    nodeDeviceDefineXMLvirConnect.nodeDeviceDefineXML~  s:     //H;@AAd-r"   c                 v    [         R                  " U R                  U5      nUc  [        S5      e[	        XS9nU$ )zLookup a node device by its name.

virNodeDeviceFree should be used to free the resources after the
node device object is no longer needed. z"virNodeDeviceLookupByName() failedrZ   )r   virNodeDeviceLookupByNamer   r   rq  r  s       r    nodeDeviceLookupByName!virConnect.nodeDeviceLookupByName  s:    
 22477DA;CDDd-r"   c                 x    [         R                  " U R                  XU5      nUc  [        S5      e[	        XS9nU$ )zLookup SCSI Host which is capable with 'fc_host' by its WWNN and WWPN.

virNodeDeviceFree should be used to free the resources after the
node device object is no longer needed. z)virNodeDeviceLookupSCSIHostByWWN() failedrZ   )r    virNodeDeviceLookupSCSIHostByWWNr   r   rq  )r   wwnnwwpnrX   r]   ru  s         r    nodeDeviceLookupSCSIHostByWWN(virConnect.nodeDeviceLookupSCSIHostByWWN  s<    
 99$''4uU;JKKd-r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )z5Provides the number of defined but inactive domains. r   z&virConnectNumOfDefinedDomains() failed)r   virConnectNumOfDefinedDomainsr   r   r   s     r    numOfDefinedDomainsvirConnect.numOfDefinedDomains  s.    66tww?"9GHH
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )zKProvides the number of defined (inactive) interfaces on the physical host. r   z)virConnectNumOfDefinedInterfaces() failed)r    virConnectNumOfDefinedInterfacesr   r   r   s     r    numOfDefinedInterfaces!virConnect.numOfDefinedInterfaces  s.    99$''B"9JKK
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )z*Provides the number of inactive networks. r   z'virConnectNumOfDefinedNetworks() failed)r   virConnectNumOfDefinedNetworksr   r   r   s     r    numOfDefinedNetworksvirConnect.numOfDefinedNetworks  s.    77@"9HII
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )z.Provides the number of inactive storage pools r   z+virConnectNumOfDefinedStoragePools() failed)r   "virConnectNumOfDefinedStoragePoolsr   r   r   s     r    numOfDefinedStoragePools#virConnect.numOfDefinedStoragePools  s.    ;;DGGD"9LMM
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )zProvides the number of node devices.

If the optional 'cap'  argument is non-None, then the count
will be restricted to devices with the specified capability r   zvirNodeNumOfDevices() failed)r   virNodeNumOfDevicesr   r   r  s       r    numOfDevicesvirConnect.numOfDevices  s2    
 ,,TWWcA"9=>>
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )z'Provides the number of active domains. r   zvirConnectNumOfDomains() failed)r   virConnectNumOfDomainsr   r   r   s     r    numOfDomainsvirConnect.numOfDomains  r  r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )z?Provides the number of active interfaces on the physical host. r   z"virConnectNumOfInterfaces() failed)r   virConnectNumOfInterfacesr   r   r   s     r    numOfInterfacesvirConnect.numOfInterfaces  r  r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )z"Provides the number of nwfilters. r   z!virConnectNumOfNWFilters() failed)r   virConnectNumOfNWFiltersr   r   r   s     r    numOfNWFiltersvirConnect.numOfNWFilters  s.    11$'':"9BCC
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )z(Provides the number of active networks. r   z virConnectNumOfNetworks() failed)r   virConnectNumOfNetworksr   r   r   s     r    numOfNetworksvirConnect.numOfNetworks   r  r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )z+Fetch number of currently defined secrets. r   zvirConnectNumOfSecrets() failed)r   virConnectNumOfSecretsr   r   r   s     r    numOfSecretsvirConnect.numOfSecrets  r  r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )z,Provides the number of active storage pools r   z$virConnectNumOfStoragePools() failed)r   virConnectNumOfStoragePoolsr   r   r   s     r    numOfStoragePoolsvirConnect.numOfStoragePools  s.    44TWW="9EFF
r"   c                 v    [         R                  " U R                  X5      nUc  [        S5      e[	        XS9nU$ )ay  Define a new network filter, based on an XML description
similar to the one returned by virNWFilterGetXMLDesc(). This
API may be used to associate a filter with a currently running
guest that does not have a filter defined for a specific network
port. Since the bindings are generally automatically managed by
the hypervisor, using this command to define a filter for a network
port and then starting the guest afterwards may prevent the guest
from starting if it attempts to use the network port and finds a
filter already defined.

virNWFilterFree should be used to free the resources after the
binding object is no longer needed. z$virNWFilterBindingCreateXML() failedrZ   )r   virNWFilterBindingCreateXMLr   r   virNWFilterBindingr  s        r    nwfilterBindingCreateXML#virConnect.nwfilterBindingCreateXML!  s:     44TWWcI;EFF"42r"   c                 v    [         R                  " U R                  U5      nUc  [        S5      e[	        XS9nU$ )zTry to lookup a network filter binding on the given hypervisor based
on network port device name.

virNWFilterBindingFree should be used to free the resources after the
binding object is no longer needed. z*virNWFilterBindingLookupByPortDev() failedrZ   )r   !virNWFilterBindingLookupByPortDevr   r   r  )r   portdevr]   ru  s       r    nwfilterBindingLookupByPortDev)virConnect.nwfilterBindingLookupByPortDev4  s:     ::477GL;KLL"42r"   c                 v    [         R                  " U R                  U5      nUc  [        S5      e[	        XS9nU$ )Define a new network filter, based on an XML description
similar to the one returned by virNWFilterGetXMLDesc()

virNWFilterFree should be used to free the resources after the
nwfilter object is no longer needed. zvirNWFilterDefineXML() failedrZ   )r   virNWFilterDefineXMLr   r   virNWFilterrM  s       r    nwfilterDefineXMLvirConnect.nwfilterDefineXML@  s:     --dggw?;>??D+r"   c                 v    [         R                  " U R                  X5      nUc  [        S5      e[	        XS9nU$ )r  z"virNWFilterDefineXMLFlags() failedrZ   )r   virNWFilterDefineXMLFlagsr   r   r  rt  s        r    nwfilterDefineXMLFlags!virConnect.nwfilterDefineXMLFlagsL  s:     22477GK;CDDD+r"   c                 v    [         R                  " U R                  U5      nUc  [        S5      e[	        XS9nU$ )zTry to lookup a network filter on the given hypervisor based on its name.

virNWFilterFree should be used to free the resources after the
nwfilter object is no longer needed. z virNWFilterLookupByName() failedrZ   )r   virNWFilterLookupByNamer   r   r  r  s       r    nwfilterLookupByNamevirConnect.nwfilterLookupByNameX  s:    
 00$?;ABBD+r"   c                 v    [         R                  " U R                  U5      nUc  [        S5      e[	        XS9nU$ )zJTry to lookup a network filter on the given hypervisor based on its UUID. z virNWFilterLookupByUUID() failedrZ   )r   virNWFilterLookupByUUIDr   r   r  rA  s       r    nwfilterLookupByUUIDvirConnect.nwfilterLookupByUUIDg  s8    00$?;ABBD+r"   c                 v    [         R                  " U R                  U5      nUc  [        S5      e[	        XS9nU$ )zTry to lookup an nwfilter on the given hypervisor based on its UUID.

virNWFilterFree should be used to free the resources after the
nwfilter object is no longer needed. z&virNWFilterLookupByUUIDString() failedrZ   )r   virNWFilterLookupByUUIDStringr   r   r  rG  s       r    nwfilterLookupByUUIDString%virConnect.nwfilterLookupByUUIDStrings  s:    
 66twwH;GHHD+r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )zsThis method will restore a domain saved to disk by virDomainSave().

See virDomainRestoreFlags() for more control. r   zvirDomainRestore() failed)r   virDomainRestorer   r   )r   frmr]   s      r    restorevirConnect.restore  s2     ))$''37"9:;;
r"   c                 l    [         R                  " U R                  XU5      nUS:X  a  [        S5      eU$ )al  This method will restore a domain saved to disk by virDomainSave().

If the hypervisor supports it, @dxml can be used to alter
host-specific portions of the domain XML that will be used when
restoring an image.  For example, it is possible to alter the
backing filename that is associated with a disk device, in order to
prepare for file renaming done as part of backing up the disk
device while the domain is stopped.

If @flags includes VIR_DOMAIN_SAVE_BYPASS_CACHE, then libvirt will
attempt to bypass the file system cache while restoring the file, or
fail if it cannot do so for the given system; this can allow less
pressure on file system cache, but also risks slowing restores from NFS.

Normally, the saved state file will remember whether the domain was
running or paused, and restore defaults to the same state.
Specifying VIR_DOMAIN_SAVE_RUNNING or VIR_DOMAIN_SAVE_PAUSED in
@flags will override the default read from the file.  These two
flags are mutually exclusive.

If @flags includes VIR_DOMAIN_SAVE_RESET_NVRAM, then libvirt will
discard any existing NVRAM file and re-initialize NVRAM from the
pristine template. r   zvirDomainRestoreFlags() failed)r   virDomainRestoreFlagsr   r   )r   r  r  rX   r]   s        r    restoreFlagsvirConnect.restoreFlags  s4    0 ..tww5I"9?@@
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )z1This method will restore a domain saved to disk. r   zvirDomainRestoreParams() failed)r   virDomainRestoreParamsr   r   r  s       r    restoreParamsvirConnect.restoreParams  rb  r"   c                 l    [         R                  " U R                  XU5      nUS:X  a  [        S5      eU$ )a  This updates the definition of a domain stored in a saved state
file.  @file must be a file created previously by virDomainSave()
or virDomainSaveFlags().

@dxml can be used to alter host-specific portions of the domain XML
that will be used when restoring an image.  For example, it is
possible to alter the backing filename that is associated with a
disk device, to match renaming done as part of backing up the disk
device while the domain is stopped.

Normally, the saved state file will remember whether the domain was
running or paused, and restore defaults to the same state.
Specifying VIR_DOMAIN_SAVE_RUNNING or VIR_DOMAIN_SAVE_PAUSED in
@flags will override the default saved into the file; omitting both
leaves the file's default unchanged.  These two flags are mutually
exclusive. r   z$virDomainSaveImageDefineXML() failed)r   virDomainSaveImageDefineXMLr   r   )r   filer  rX   r]   s        r    saveImageDefineXMLvirConnect.saveImageDefineXML  s4    " 44TWWd%P"9EFF
r"   c                 d    [         R                  " U R                  X5      nUc  [        S5      eU$ )a  This method will extract the XML describing the domain at the time
a saved state file was created.  @file must be a file created
previously by virDomainSave() or virDomainSaveFlags().

No security-sensitive data will be included unless @flags contains
VIR_DOMAIN_SAVE_IMAGE_XML_SECURE. z%virDomainSaveImageGetXMLDesc() failed)r   virDomainSaveImageGetXMLDescr   r   )r   r  rX   r]   s       r    saveImageGetXMLDescvirConnect.saveImageGetXMLDesc  s0     55dggtK;FGG
r"   c                 v    [         R                  " U R                  X5      nUc  [        S5      e[	        XS9nU$ )a  If XML specifies a UUID, locates the specified secret and replaces all
attributes of the secret specified by UUID by attributes specified in xml
(any attributes not specified in xml are discarded).

Otherwise, creates a new secret with an automatically chosen UUID, and
initializes its attributes from xml.

virSecretFree should be used to free the resources after the
secret object is no longer needed. zvirSecretDefineXML() failedrZ   )r   virSecretDefineXMLr   r   	virSecretr  s        r    secretDefineXMLvirConnect.secretDefineXML  s:     ++DGGS@;<==$)r"   c                 v    [         R                  " U R                  U5      nUc  [        S5      e[	        XS9nU$ )zBTry to lookup a secret on the given hypervisor based on its UUID. zvirSecretLookupByUUID() failedrZ   )r   virSecretLookupByUUIDr   r   r  rA  s       r    secretLookupByUUIDvirConnect.secretLookupByUUID  rD  r"   c                 v    [         R                  " U R                  U5      nUc  [        S5      e[	        XS9nU$ )zTry to lookup a secret on the given hypervisor based on its UUID.
Uses the printable string value to describe the UUID

virSecretFree should be used to free the resources after the
secret object is no longer needed. z$virSecretLookupByUUIDString() failedrZ   )r   virSecretLookupByUUIDStringr   r   r  rG  s       r    secretLookupByUUIDString#virConnect.secretLookupByUUIDString  s:     44TWWgF;EFF$)r"   c                 v    [         R                  " U R                  X5      nUc  [        S5      e[	        XS9nU$ )zTry to lookup a secret on the given hypervisor based on its usage
The usageID is unique within the set of secrets sharing the
same usageType value.

virSecretFree should be used to free the resources after the
secret object is no longer needed. zvirSecretLookupByUsage() failedrZ   )r   virSecretLookupByUsager   r   r  )r   	usageTypeusageIDr]   ru  s        r    secretLookupByUsagevirConnect.secretLookupByUsage	  s:     //L;@AA$)r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )zJOverride the default identity information associated with the connection. r   zvirConnectSetIdentity() failed)r   virConnectSetIdentityr   r   r  s       r    setIdentityvirConnect.setIdentity  s0    ..twwF"9?@@
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )a  Start sending keepalive messages after @interval seconds of inactivity and
consider the connection to be broken when no response is received after
@count keepalive messages sent in a row.  In other words, sending count + 1
keepalive message results in closing the connection.  When @interval is
<= 0, no keepalive messages will be sent.  When @count is 0, the connection
will be automatically closed after @interval seconds of inactivity without
sending any keepalive messages.

Note: The client has to implement and run an event loop with
virEventRegisterImpl() or virEventRegisterDefaultImpl() to be able to
use keepalive messages.  Failure to do so may result in connections
being closed unexpectedly.

Note: This API function controls only keepalive messages sent by the client.
If the server is configured to use keepalive you still need to run the event
loop to respond to them, even if you disable keepalives by this function. r   zvirConnectSetKeepAlive() failed)r   virConnectSetKeepAliver   r   )r   intervalcountr]   s       r    setKeepAlivevirConnect.setKeepAlive!  s2    " //I"9@AA
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )z Change the node memory tunables r   z#virNodeSetMemoryParameters() failed)r   virNodeSetMemoryParametersr   r   r  s       r    rL  virConnect.setMemoryParameters;  r]  r"   c                 v    [         R                  " U R                  X5      nUc  [        S5      e[	        XS9nU$ )a  Create a new storage based on its XML description. The
pool is not persistent, so its definition will disappear
when it is destroyed, or if the host is restarted

virStoragePoolFree should be used to free the resources after the
storage pool object is no longer needed. z virStoragePoolCreateXML() failedrZ   )r   virStoragePoolCreateXMLr   r   r  rt  s        r    storagePoolCreateXMLvirConnect.storagePoolCreateXMLF  s:     00'I;ABBt.r"   c                 v    [         R                  " U R                  X5      nUc  [        S5      e[	        XS9nU$ )zDefine an inactive persistent storage pool or modify an existing persistent
one from the XML description.

virStoragePoolFree should be used to free the resources after the
storage pool object is no longer needed. z virStoragePoolDefineXML() failedrZ   )r   virStoragePoolDefineXMLr   r   r  r  s        r    storagePoolDefineXMLvirConnect.storagePoolDefineXMLS  s:     00#E;ABBt.r"   c                 v    [         R                  " U R                  U5      nUc  [        S5      e[	        XS9nU$ )zFetch a storage pool based on its unique name

virStoragePoolFree should be used to free the resources after the
storage pool object is no longer needed. z#virStoragePoolLookupByName() failedrZ   )r   virStoragePoolLookupByNamer   r   r  r  s       r    storagePoolLookupByName"virConnect.storagePoolLookupByName_  :    
 33DGGTB;DEEt.r"   c                 v    [         R                  " U R                  U5      nUc  [        S5      e[	        XS9nU$ )a  Fetch a storage pool which maps to a particular target directory.
If more than one pool maps to the path, it is undefined which
will be returned first.

virStoragePoolFree should be used to free the resources after the
storage pool object is no longer needed. z)virStoragePoolLookupByTargetPath() failedrZ   )r    virStoragePoolLookupByTargetPathr   r   r  r   r8  r]   ru  s       r    storagePoolLookupByTargetPath(virConnect.storagePoolLookupByTargetPathj  s:     99$''4H;JKKt.r"   c                 v    [         R                  " U R                  U5      nUc  [        S5      e[	        XS9nU$ )Fetch a storage pool based on its globally unique id

virStoragePoolFree should be used to free the resources after the
storage pool object is no longer needed. z#virStoragePoolLookupByUUID() failedrZ   )r   virStoragePoolLookupByUUIDr   r   r  rA  s       r    storagePoolLookupByUUID"virConnect.storagePoolLookupByUUIDw  r  r"   c                 v    [         R                  " U R                  U5      nUc  [        S5      e[	        XS9nU$ )r  z)virStoragePoolLookupByUUIDString() failedrZ   )r    virStoragePoolLookupByUUIDStringr   r   r  rG  s       r    storagePoolLookupByUUIDString(virConnect.storagePoolLookupByUUIDString  s:    
 99$''7K;JKKt.r"   c                 v    [         R                  " U R                  U5      nUc  [        S5      e[	        XS9nU$ )zFetch a pointer to a storage volume based on its
globally unique key

virStorageVolFree should be used to free the resources after the
storage volume object is no longer needed. z!virStorageVolLookupByKey() failedrZ   )r   virStorageVolLookupByKeyr   r   r  )r   rV  r]   ru  s       r    storageVolLookupByKey virConnect.storageVolLookupByKey  s:     11$''3?;BCCd-r"   c                 v    [         R                  " U R                  U5      nUc  [        S5      e[	        XS9nU$ )zFetch a pointer to a storage volume based on its
locally (host) unique path

virStorageVolFree should be used to free the resources after the
storage volume object is no longer needed. z"virStorageVolLookupByPath() failedrZ   )r   virStorageVolLookupByPathr   r   r  r  s       r    storageVolLookupByPath!virConnect.storageVolLookupByPath  s:     22477DA;CDDd-r"   c                 l    [         R                  " U R                  XU5      nUS:X  a  [        S5      eU$ )zAttempt to suspend the node (host machine) for the given duration of
time in the specified state (Suspend-to-RAM, Suspend-to-Disk or
Hybrid-Suspend). Schedule the node's Real-Time-Clock interrupt to
resume the node after the duration is complete. r   z"virNodeSuspendForDuration() failed)r   virNodeSuspendForDurationr   r   r  s        r    suspendForDurationvirConnect.suspendForDuration  s4    
 22477FeT"9CDD
r"   c                 F    [         R                  " U R                  5      nU$ )aY  Provide a pointer to the last error caught on that connection

This method is not protected against access from multiple
threads. In a multi-threaded application, always use the
global virGetLastError() API which is backed by thread
local storage.

If the connection object was discovered to be invalid by
an API call, then the error will be reported against the
global error object.

Since 0.6.0, all errors reported in the per-connection object
are also duplicated in the global error object. As such an
application can always use virGetLastError(). This method
remains for backwards compatibility. )r   virConnGetLastErrorr   r   s     r    r,  virConnect.virConnGetLastError  s      ,,TWW5
r"   c                 D    [         R                  " U R                  5        g)zThe error object is kept in thread local storage, so separate
threads can safely access this concurrently.

Reset the last error caught on that connection N)r   virConnResetLastErrorr   r&   s    r    r/   virConnect.virConnResetLastError  s    
 	((1r"   r   c                     U R                   R                  5         U ? [        R                  " U R                  U 5        U R                  b   [        R                  " U R                  5        S U l        g ! [
         a     NAf = frj   )domainEventCallbacksclearr   virConnectDomainEventDeregisterr   AttributeErrorre  r&   s    r    r   virConnect.__del__  sl    	%%++-)66twwE 77&&tww/  		s   =A4 4
B Bc                     U $ rj   rP   r&   s    r    	__enter__virConnect.__enter__  s    r"   	exc_type_
exc_value_
traceback_c                 $    U R                  5         g rj   )rf  )r   r:  r;  r<  s       r    __exit__virConnect.__exit__  s    

r"   r|   c                      U R                   U	 [        U R                   5      S:X  a5  U ? [        R                  " U R                  U 5      nUS:X  a  [        S5      egg! [         a     gf = f)oRemoves a Domain Event Callback. De-registering for a
domain callback will disable delivery of this event type r   r   z(virConnectDomainEventDeregister() failedN)r2  lenr   r4  r   r   r5  )r   r|   r]   s      r    domainEventDeregister virConnect.domainEventDeregister  su    	))"-4,,-2- @@$O"9&'QRR  3
  		s   AA 
A+*A+rg   c                      X R                   U'   g! [         a=    X0U l         [        R                  " U R                  U 5      nUS:X  a  [        S5      e gf = f)cAdds a Domain Event Callback. Registering for a domain
callback will enable delivery of the events r   z&virConnectDomainEventRegister() failedN)r2  r5  r   virConnectDomainEventRegisterr   r   )r   r|   rg   r]   s       r    domainEventRegistervirConnect.domainEventRegister  s_    	M,2%%b) 	M)+D%::477DICby"#KLL 	Ms    AAAdomr   rf   detailc           	           U R                   R                  5        H  u  pEU" U [        XS9X#U5        M     g! [         a     gf = f)z@Dispatches events to python user domain event callbacks
        rZ   N)r2  itemsr   r5  )r   rJ  rf   rK  r|   rg   s         r    _dispatchDomainEventCallbacks(virConnect._dispatchDomainEventCallbacks  sH    	"77==?
442E6J @ 		s   58 
AAry   c                 <    US   nUS   nU" U [        XS9X#U5        g)zJDispatches events to python user domain lifecycle event callbacks
        r|   rg   rZ   r   r   )r   rJ  rf   rK  ry   r|   rg   s          r    %_dispatchDomainEventLifecycleCallback0virConnect._dispatchDomainEventLifecycleCallback  s-     D\!
44*E6Br"   c                 :    US   nUS   nU" U [        XS9U5        g)zHDispatches events to python user domain generic event callbacks
        r|   rg   rZ   r   rQ  )r   rJ  ry   r|   rg   s        r    #_dispatchDomainEventGenericCallback.virConnect._dispatchDomainEventGenericCallback  s+     D\!
44*F3r"   rP  c                 :    US   nUS   nU" U [        XS9X%5        g)zKDispatches events to python user domain RTC change event callbacks
        r|   rg   rZ   r   rQ  )r   rJ  rP  ry   r|   rg   s         r    %_dispatchDomainEventRTCChangeCallback0virConnect._dispatchDomainEventRTCChangeCallback  +     D\!
44*F;r"   r9  c                 :    US   nUS   nU" U [        XS9X%5        g)zIDispatches events to python user domain watchdog event callbacks
        r|   rg   rZ   r   rQ  )r   rJ  r9  ry   r|   rg   s         r    $_dispatchDomainEventWatchdogCallback/virConnect._dispatchDomainEventWatchdogCallback"  rZ  r"   srcPathdevAliasc                 <    US   nUS   nU" U [        XS9X#XG5        gzIDispatches events to python user domain IO error event callbacks
        r|   rg   rZ   r   rQ  )r   rJ  r^  r_  r9  ry   r|   rg   s           r    #_dispatchDomainEventIOErrorCallback.virConnect._dispatchDomainEventIOErrorCallback+  s-     D\!
44*GvNr"   reasonc           	      >    US   nUS   nU" U [        XS9X#UXX5        gra  rQ  )	r   rJ  r^  r_  r9  rd  ry   r|   rg   s	            r    )_dispatchDomainEventIOErrorReasonCallback4virConnect._dispatchDomainEventIOErrorReasonCallback4  s2     D\!
44*Gv	r"   phase	localAddr
remoteAddr
authSchemesubjectc           
      @    US   nUS   n	U" U [        XS9X#UXVU	5        g)zIDispatches events to python user domain graphics event callbacks
        r|   rg   rZ   r   rQ  )
r   rJ  rh  ri  rj  rk  rl  ry   r|   rg   s
             r    $_dispatchDomainEventGraphicsCallback/virConnect._dispatchDomainEventGraphicsCallback>  s4     D\!
44*Ej	(r"   r)  r   statusc                 ^     US   nUS   nU" U [        XS9X#XG5        g! [         a     gf = f)zSDispatches events to python user domain blockJob/blockJob2 event callbacks
        r|   rg   rZ   N)r   r5  )r   rJ  r)  r   rp  ry   r|   rg   s           r    $_dispatchDomainEventBlockJobCallback/virConnect._dispatchDomainEventBlockJobCallbackH  s?    	BH%FtYt.FK 		s    
,,
oldSrcPath
newSrcPathc           	      >    US   nUS   nU" U [        XS9X#XEU5        g)zJDispatches event to python user domain diskChange event callbacks
        r|   rg   rZ   r   rQ  )	r   rJ  rt  ru  r_  rd  ry   r|   rg   s	            r    &_dispatchDomainEventDiskChangeCallback1virConnect._dispatchDomainEventDiskChangeCallbackS  s0     D\!
44*JHV\]r"   c                 <    US   nUS   nU" U [        XS9X#U5        g)zJDispatches event to python user domain trayChange event callbacks
        r|   rg   rZ   r   rQ  )r   rJ  r_  rd  ry   r|   rg   s          r    &_dispatchDomainEventTrayChangeCallback1virConnect._dispatchDomainEventTrayChangeCallback\  s-     D\!
44*HfEr"   c                 :    US   nUS   nU" U [        XS9X%5        g)zHDispatches event to python user domain pmwakeup event callbacks
        r|   rg   rZ   r   rQ  r   rJ  rd  ry   r|   rg   s         r    $_dispatchDomainEventPMWakeupCallback/virConnect._dispatchDomainEventPMWakeupCallbacke  rZ  r"   c                 :    US   nUS   nU" U [        XS9X%5        g)zIDispatches event to python user domain pmsuspend event callbacks
        r|   rg   rZ   r   rQ  r}  s         r    %_dispatchDomainEventPMSuspendCallback0virConnect._dispatchDomainEventPMSuspendCallbackn  rZ  r"   actualc                 :    US   nUS   nU" U [        XS9X%5        g)zODispatches events to python user domain balloon change event callbacks
        r|   rg   rZ   r   rQ  )r   rJ  r  ry   r|   rg   s         r    )_dispatchDomainEventBalloonChangeCallback4virConnect._dispatchDomainEventBalloonChangeCallbackw  rZ  r"   c                 :    US   nUS   nU" U [        XS9X%5        g)zNDispatches event to python user domain pmsuspend-disk event callbacks
        r|   rg   rZ   r   rQ  r}  s         r    )_dispatchDomainEventPMSuspendDiskCallback4virConnect._dispatchDomainEventPMSuspendDiskCallback  rZ  r"   c                 :    US   nUS   nU" U [        XS9X%5        g)zNDispatches event to python user domain device removed event callbacks
        r|   rg   rZ   r   rQ  r   rJ  r_  ry   r|   rg   s         r    )_dispatchDomainEventDeviceRemovedCallback4virConnect._dispatchDomainEventDeviceRemovedCallback  +     D\!
44*H=r"   r2  c                 :    US   nUS   nU" U [        XS9X%5        g)zGDispatches event to python user domain tunable event callbacks
        r|   rg   rZ   r   rQ  r   rJ  r2  ry   r|   rg   s         r    #_dispatchDomainEventTunableCallback.virConnect._dispatchDomainEventTunableCallback  rZ  r"   r(  c                 <    US   nUS   nU" U [        XS9X#U5        g)zNDispatches event to python user domain agent lifecycle event callback
        r|   rg   rZ   r   rQ  )r   rJ  r(  rd  ry   r|   rg   s          r    *_dispatchDomainEventAgentLifecycleCallback5virConnect._dispatchDomainEventAgentLifecycleCallback  s-     D\!
44*E6Br"   c                 :    US   nUS   nU" U [        XS9X%5        g)zLDispatches event to python user domain device added event callbacks
        r|   rg   rZ   r   rQ  r  s         r    '_dispatchDomainEventDeviceAddedCallback2virConnect._dispatchDomainEventDeviceAddedCallback  r  r"   	iterationc                 :    US   nUS   nU" U [        XS9X%5        g)zSDispatches event to python user domain migration iteration event callbacks
        r|   rg   rZ   r   rQ  )r   rJ  r  ry   r|   rg   s         r    ._dispatchDomainEventMigrationIterationCallback9virConnect._dispatchDomainEventMigrationIterationCallback  s+     D\!
44*I>r"   c                 :    US   nUS   nU" U [        XS9X%5        g)zGDispatches event to python user domain job completed callbacks
        r|   rg   rZ   r   rQ  r  s         r    (_dispatchDomainEventJobCompletedCallback3virConnect._dispatchDomainEventJobCompletedCallback  rZ  r"   c                 :    US   nUS   nU" U [        XS9X%5        g)zUDispatches event to python user domain device removal failed event callbacks
        r|   rg   rZ   r   rQ  r  s         r    /_dispatchDomainEventDeviceRemovalFailedCallback:virConnect._dispatchDomainEventDeviceRemovalFailedCallback  r  r"   mtypensuric                 <    US   nUS   nU" U [        XS9X#U5        g)zODispatches event to python user domain metadata change event callbacks
        r|   rg   rZ   r   rQ  r   rJ  r  r  ry   r|   rg   s          r    *_dispatchDomainEventMetadataChangeCallback5virConnect._dispatchDomainEventMetadataChangeCallback  s-     D\!
44*E&Ar"   r"  r8  r#  excessc           	      >    US   nUS   nU" U [        XS9X#XEU5        g)zVDispatches event to python user domain block device threshold event callbacks
        r|   rg   rZ   r   rQ  )	r   rJ  r"  r8  r#  r  ry   r|   rg   s	            r    *_dispatchDomainEventBlockThresholdCallback5virConnect._dispatchDomainEventBlockThresholdCallback  s/     D\!
44*Cy&Qr"   	recipientrX   c                 <    US   nUS   nU" U [        XS9X#XG5        g)zNDispatches event to python user domain memory failure event callbacks
        r|   rg   rZ   r   rQ  )r   rJ  r  r9  rX   ry   r|   rg   s           r    )_dispatchDomainEventMemoryFailureCallback4virConnect._dispatchDomainEventMemoryFailureCallback  s-     D\!
44*IuMr"   r  rQ  c                 <    US   nUS   nU" U [        XS9X#U5        g)zYDispatches event to python user domain memory device size change event callbacks
        r|   rg   rZ   r   rQ  )r   rJ  r  rQ  ry   r|   rg   s          r    2_dispatchDomainEventMemoryDeviceSizeChangeCallback=virConnect._dispatchDomainEventMemoryDeviceSizeChangeCallback  s-     D\!
44*E@r"   oldMACnewMACc                 <    US   nUS   nU" U [        XS9X#XG5        g)zNDispatches event to python user domain NIC MAC change event callbacks
        r|   rg   rZ   r   rQ  )r   rJ  r  r  r  ry   r|   rg   s           r    (_dispatchDomainEventNICMACChangeCallback3virConnect._dispatchDomainEventNICMACChangeCallback  s-     D\!
44*E6Jr"   
callbackIDc                      [         R                  " U R                  U5      nUS:X  a  [        S5      eU R                  U	 g! [
         a     gf = f)rA  r   z+virConnectDomainEventDeregisterAny() failedN)r   "virConnectDomainEventDeregisterAnyr   r   domainEventCallbackIDr5  r   r  r]   s      r    domainEventDeregisterAny#virConnect.domainEventDeregisterAny  P    	??TCby"#PQQ**:6 		   ?A 
AArT  r  c                 <    US   nUS   nU" U [        XS9X#U5        g)zKDispatches events to python user network lifecycle event callbacks
        r|   rg   rZ   r   r  )r   rT  rf   rK  ry   r|   rg   s          r    &_dispatchNetworkEventLifecycleCallback1virConnect._dispatchNetworkEventLifecycleCallback  s-     D\!
4D+UFCr"   c                 <    US   nUS   nU" U [        XS9X#U5        g)zPDispatches event to python user network metadata change event callbacks
        r|   rg   rZ   r   r  r  s          r    +_dispatchNetworkEventMetadataChangeCallback6virConnect._dispatchNetworkEventMetadataChangeCallback
  s-     D\!
4D+U6Br"   c                      [         R                  " U R                  U5      nUS:X  a  [        S5      eU R                  U	 g! [
         a     gf = f)zpRemoves a Network Event Callback. De-registering for a
network callback will disable delivery of this event typer   z,virConnectNetworkEventDeregisterAny() failedN)r   #virConnectNetworkEventDeregisterAnyr   r   networkEventCallbackIDr5  r  s      r    networkEventDeregisterAny$virConnect.networkEventDeregisterAny  sP    	@@*UCby"#QRR++J7 		r  eventIDc                 "   [        U S5      (       d  0 U l        X0US.nUc#  [        R                  " U R                  SX%5      nO,[        R                  " U R                  UR                  X%5      nUS:X  a  [        S5      eX@R                  U'   U$ )zdAdds a Network Event Callback. Registering for a network
callback will enable delivery of the eventsr  r|   r   rg   Nr   z*virConnectNetworkEventRegisterAny() failed)hasattrr  r   !virConnectNetworkEventRegisterAnyr   r   )r   rT  r  r|   rg   ry   r]   s          r    networkEventRegisterAny"virConnect.networkEventRegisterAny  s     t566*,D'F;;>>twwg^C>>twwPW`C"9KLL+1##C(
r"   c                 "   [        U S5      (       d  0 U l        X0US.nUc#  [        R                  " U R                  SX%5      nO,[        R                  " U R                  UR                  X%5      nUS:X  a  [        S5      eX@R                  U'   U$ )rF  r  r  Nr   z)virConnectDomainEventRegisterAny() failed)r  r  r    virConnectDomainEventRegisterAnyr   r   )r   rJ  r  r|   rg   ry   r]   s          r    domainEventRegisterAny!virConnect.domainEventRegisterAny-  s     t455)+D&F;;==dggtW]C==dggsvvw_C"9JKK*0""3'
r"   poolr  c                 <    US   nUS   nU" U [        XS9X#U5        g)zHDispatches events to python user storage pool
lifecycle event callbacks
r|   rg   rZ   r   r  )r   r  rf   rK  ry   r|   rg   s          r    *_dispatchStoragePoolEventLifecycleCallback5virConnect._dispatchStoragePoolEventLifecycleCallback<  s-     D\!
40%Hr"   c                 :    US   nUS   nU" U [        XS9U5        g)zFDispatches events to python user storage pool
generic event callbacks
r|   rg   rZ   r   r  )r   r  ry   r|   rg   s        r    (_dispatchStoragePoolEventGenericCallback3virConnect._dispatchStoragePoolEventGenericCallbackF  s+     D\!
40&9r"   c                      [         R                  " U R                  U5      nUS:X  a  [        S5      eU R                  U	 g! [
         a     gf = f)zzRemoves a Storage Pool Event Callback. De-registering for a
storage pool callback will disable delivery of this event typer   z0virConnectStoragePoolEventDeregisterAny() failedN)r   'virConnectStoragePoolEventDeregisterAnyr   r   storagePoolEventCallbackIDr5  r  s      r    storagePoolEventDeregisterAny(virConnect.storagePoolEventDeregisterAnyP  sP    	DDTWWjYCby"#UVV//
; 		r  c                 "   [        U S5      (       d  0 U l        X0US.nUc#  [        R                  " U R                  SX%5      nO,[        R                  " U R                  UR                  X%5      nUS:X  a  [        S5      eX@R                  U'   U$ )znAdds a Storage Pool Event Callback. Registering for a storage pool
callback will enable delivery of the eventsr  r  Nr   z.virConnectStoragePoolEventRegisterAny() failed)r  r  r   %virConnectStoragePoolEventRegisterAnyr   r   )r   r  r  r|   rg   ry   r]   s          r    storagePoolEventRegisterAny&virConnect.storagePoolEventRegisterAny[  s     t9::.0D+F;<BB477DRYbCBB477DGGU\eC"9OPP/5'',
r"   rq  c                 <    US   nUS   nU" U [        XS9X#U5        g)zGDispatches events to python user node device
lifecycle event callbacks
r|   rg   rZ   r   rq  )r   r"  rf   rK  ry   r|   rg   s          r    )_dispatchNodeDeviceEventLifecycleCallback4virConnect._dispatchNodeDeviceEventLifecycleCallbackj  s-     D\!
4t.vFr"   c                 :    US   nUS   nU" U [        XS9U5        g)zEDispatches events to python user node device
generic event callbacks
r|   rg   rZ   r   r  )r   r"  ry   r|   rg   s        r    '_dispatchNodeDeviceEventGenericCallback2virConnect._dispatchNodeDeviceEventGenericCallbackt  s+     D\!
4t.7r"   c                      [         R                  " U R                  U5      nUS:X  a  [        S5      eU R                  U	 g! [
         a     gf = f)zxRemoves a Node Device Event Callback. De-registering for a
node device callback will disable delivery of this event typer   z/virConnectNodeDeviceEventDeregisterAny() failedN)r   &virConnectNodeDeviceEventDeregisterAnyr   r   nodeDeviceEventCallbackIDr5  r  s      r    nodeDeviceEventDeregisterAny'virConnect.nodeDeviceEventDeregisterAny~  sP    	CCDGGZXCby"#TUU..z: 		r  c                 "   [        U S5      (       d  0 U l        X0US.nUc#  [        R                  " U R                  SX%5      nO,[        R                  " U R                  UR                  X%5      nUS:X  a  [        S5      eX@R                  U'   U$ )zlAdds a Node Device Event Callback. Registering for a node device
callback will enable delivery of the eventsr  r  Nr   z-virConnectNodeDeviceEventRegisterAny() failed)r  r  r   $virConnectNodeDeviceEventRegisterAnyr   r   )r   r"  r  r|   rg   ry   r]   s          r    nodeDeviceEventRegisterAny%virConnect.nodeDeviceEventRegisterAny  s     t899-/D*F;;AA$''4QXaCAA$''366SZcC"9NOO.4&&s+
r"   secretr  c                 <    US   nUS   nU" U [        XS9X#U5        g)zJDispatches events to python user secret lifecycle event callbacks
        r|   rg   rZ   r   r  )r   r  rf   rK  ry   r|   rg   s          r    %_dispatchSecretEventLifecycleCallback0virConnect._dispatchSecretEventLifecycleCallback  s-     D\!
44-ufEr"   c                 :    US   nUS   nU" U [        XS9U5        g)zHDispatches events to python user secret generic event callbacks
        r|   rg   rZ   r   r  )r   r  ry   r|   rg   s        r    #_dispatchSecretEventGenericCallback.virConnect._dispatchSecretEventGenericCallback  s+     D\!
44-v6r"   c                      [         R                  " U R                  U5      nUS:X  a  [        S5      eU R                  U	 g! [
         a     gf = f)znRemoves a Secret Event Callback. De-registering for a
secret callback will disable delivery of this event typer   z+virConnectSecretEventDeregisterAny() failedN)r   "virConnectSecretEventDeregisterAnyr   r   secretEventCallbackIDr5  r  s      r    secretEventDeregisterAny#virConnect.secretEventDeregisterAny  r  r  c                 "   [        U S5      (       d  0 U l        X0US.nUc#  [        R                  " U R                  SX%5      nO,[        R                  " U R                  UR                  X%5      nUS:X  a  [        S5      eX@R                  U'   U$ )zbAdds a Secret Event Callback. Registering for a secret
callback will enable delivery of the eventsr  r  Nr   z)virConnectSecretEventRegisterAny() failed)r  r  r    virConnectSecretEventRegisterAnyr   r   )r   r  r  r|   rg   ry   r]   s          r    secretEventRegisterAny!virConnect.secretEventRegisterAny  s     t455)+D&F;>==dggtW]C==dggvyyRYbC"9JKK*0""3'
r"   c                     [         R                  " U R                  U5      nUc  [        S5      eU Vs/ s H  n[	        XS9PM     sn$ s  snf )z5List all domains and returns a list of domain objectsz!virConnectListAllDomains() failedrZ   )r   virConnectListAllDomainsr   r   r   rM  s       r    listAllDomainsvirConnect.listAllDomains  sF    11$''5A;BCC;>?3	$,3???r  c                     [         R                  " U R                  U5      nUc  [        S5      eU Vs/ s H  n[	        XS9PM     sn$ s  snf )z&Returns a list of storage pool objectsz&virConnectListAllStoragePools() failedrZ   )r   virConnectListAllStoragePoolsr   r   r  )r   rX   r]   poolptrs       r    listAllStoragePoolsvirConnect.listAllStoragePools  sF    66twwF;GHHBEF#wt2#FFFr  c                     [         R                  " U R                  U5      nUc  [        S5      eU Vs/ s H  n[	        XS9PM     sn$ s  snf )z!Returns a list of network objectsz"virConnectListAllNetworks() failedrZ   )r   virConnectListAllNetworksr   r   r  )r   rX   r]   netptrs       r    listAllNetworksvirConnect.listAllNetworks  sF    22477EB;CDD<?@C&
4-C@@@r  r~  c                     [         R                  " U R                  U5      nUc  [        S5      eU Vs/ s H  n[	        XS9PM     sn$ s  snf )z#Returns a list of interface objectsz$virConnectListAllInterfaces() failedrZ   )r   virConnectListAllInterfacesr   r   r~  )r   rX   r]   ifaceptrs       r    listAllInterfacesvirConnect.listAllInterfaces  sF    44TWWeD;EFFBEF#hT1#FFFr  c                     [         R                  " U R                  U5      nUc  [        S5      eU Vs/ s H  n[	        XS9PM     sn$ s  snf )z*Returns a list of host node device objectsz%virConnectListAllNodeDevices() failedrZ   )r   virConnectListAllNodeDevicesr   r   rq  )r   rX   r]   devptrs       r    listAllDevicesvirConnect.listAllDevices  sF    55dgguE;FGG?BCsVd0sCCCr  r  c                     [         R                  " U R                  U5      nUc  [        S5      eU Vs/ s H  n[	        XS9PM     sn$ s  snf )z(Returns a list of network filter objectsz#virConnectListAllNWFilters() failedrZ   )r   virConnectListAllNWFiltersr   r   r  r   rX   r]   
filter_ptrs       r    listAllNWFiltersvirConnect.listAllNWFilters  sF    33DGGUC;DEEEHISzD2SIIIr  r  c                     [         R                  " U R                  U5      nUc  [        S5      eU Vs/ s H  n[	        XS9PM     sn$ s  snf )z0Returns a list of network filter binding objectsz*virConnectListAllNWFilterBindings() failedrZ   )r   !virConnectListAllNWFilterBindingsr   r   r  r%  s       r    listAllNWFilterBindings"virConnect.listAllNWFilterBindings  sG    ::477EJ;KLLLOPCj"49CPPPr  c                     [         R                  " U R                  U5      nUc  [        S5      eU Vs/ s H  n[	        XS9PM     sn$ s  snf )z Returns a list of secret objectsz!virConnectListAllSecrets() failedrZ   )r   virConnectListAllSecretsr   r   r  )r   rX   r]   
secret_ptrs       r    listAllSecretsvirConnect.listAllSecrets  sF    11$''5A;BCCCFG3Z	$03GGGr  c                 *    US   nUS   nU" XU5        g)z/Dispatches events to python user close callbackr|   rg   r   rP   )r   rd  ry   r|   rg   s        r    _dispatchCloseCallback!virConnect._dispatchCloseCallback  s"    D\!
4 r"   c                 f    [         R                  " U R                  5      nUS:X  a  [        S5      eg)zRemoves a close event callbackr   z*virConnectUnregisterCloseCallback() failedN)r   !virConnectUnregisterCloseCallbackr   r   r   s     r    unregisterCloseCallback"virConnect.unregisterCloseCallback  s.    ::477C"9KLL r"   c                 t    XUS.n[         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )zVAdds a close event callback, providing a notification
when a connection fails / closesr  r   z(virConnectRegisterCloseCallback() failed)r   virConnectRegisterCloseCallbackr   r   )r   r|   rg   ry   r]   s        r    registerCloseCallback virConnect.registerCloseCallback  s<     F;88&I"9IJJ
r"   rm  r  c                 x    [         R                  " U R                  XU5      nUc  [        S5      e[	        XS9nU$ )a  Launch a new guest domain, based on an XML description similar
to the one returned by virDomainGetXMLDesc()
This function may require privileged access to the hypervisor.
The domain is not persistent, so its definition will disappear when it
is destroyed, or if the host is restarted (see virDomainDefineXML() to
define persistent domains).

@files provides an array of file descriptors which will be
made available to the 'init' process of the guest. The file
handles exposed to the guest will be renumbered to start
from 3 (ie immediately following stderr). This is only
supported for guests which use container based virtualization
technology.

If the VIR_DOMAIN_START_PAUSED flag is set, the guest domain
will be started, but its CPUs will remain paused. The CPUs
can later be manually started using virDomainResume.

If the VIR_DOMAIN_START_AUTODESTROY flag is set, the guest
domain will be automatically destroyed when the virConnectPtr
object is finally released. This will also happen if the
client application crashes / loses its connection to the
libvirtd daemon. Any domains marked for auto destroy will
block attempts at migration, save-to-file, or snapshots. z$virDomainCreateXMLWithFiles() failedrZ   )r   virDomainCreateXMLWithFilesr   r   r   )r   rm  r  rX   r]   ru  s         r    createXMLWithFilesvirConnect.createXMLWithFiles  s<    2 44TWWgeT;EFF$)r"   statsc                     [         R                  " U R                  X5      nUc  [        S5      eU Vs/ s H  n[	        XS   S9US   4PM     sn$ s  snf )a  Query statistics for all domains on a given connection.

Report statistics of various parameters for a running VM according to @stats
field. The statistics are returned as an array of structures for each queried
domain. The structure contains an array of typed parameters containing the
individual statistics. The typed parameter name for each statistic field
consists of a dot-separated string containing name of the requested group
followed by a group specific description of the statistic value.

The statistic groups are enabled using the @stats parameter which is a
binary-OR of enum virDomainStatsTypes. The following groups are available
(although not necessarily implemented for each hypervisor):

VIR_DOMAIN_STATS_STATE: Return domain state and reason for entering that
state. The typed parameter keys are in this format:
"state.state" - state of the VM, returned as int from virDomainState enum
"state.reason" - reason for entering given state, returned as int from
                 virDomain*Reason enum corresponding to given state.

Using 0 for @stats returns all stats groups supported by the given
hypervisor.

Specifying VIR_CONNECT_GET_ALL_DOMAINS_STATS_ENFORCE_STATS as @flags makes
the function return error in case some of the stat types in @stats were
not recognized by the daemon.

Similarly to virConnectListAllDomains, @flags can contain various flags to
filter the list of domains to provide stats for.

VIR_CONNECT_GET_ALL_DOMAINS_STATS_ACTIVE selects online domains while
VIR_CONNECT_GET_ALL_DOMAINS_STATS_INACTIVE selects offline ones.

VIR_CONNECT_GET_ALL_DOMAINS_STATS_PERSISTENT and
VIR_CONNECT_GET_ALL_DOMAINS_STATS_TRANSIENT allow to filter the list
according to their persistence.

To filter the list of VMs by domain state @flags can contain
VIR_CONNECT_GET_ALL_DOMAINS_STATS_RUNNING,
VIR_CONNECT_GET_ALL_DOMAINS_STATS_PAUSED,
VIR_CONNECT_GET_ALL_DOMAINS_STATS_SHUTOFF and/or
VIR_CONNECT_GET_ALL_DOMAINS_STATS_OTHER for all other states. z$virConnectGetAllDomainStats() failedr   rZ   r+   )r   virConnectGetAllDomainStatsr   r   r   )r   rA  rX   r]   elems        r    getAllDomainStatsvirConnect.getAllDomainStats:  sV    T 44TWWeK;EFFEHIST41g.Q8SIIIs   Adomsc                 L   [        5       nU H>  n[        U[        5      (       d  [        S5      eUR	                  UR
                  5        M@     [        R                  " U R
                  XBU5      nUc  [        S5      eU Vs/ s H  n[        XS   S9US   4PM     sn$ s  snf )ay  Query statistics for given domains.

Report statistics of various parameters for a running VM according to @stats
field. The statistics are returned as an array of structures for each queried
domain. The structure contains an array of typed parameters containing the
individual statistics. The typed parameter name for each statistic field
consists of a dot-separated string containing name of the requested group
followed by a group specific description of the statistic value.

The statistic groups are enabled using the @stats parameter which is a
binary-OR of enum virDomainStatsTypes. The following groups are available
(although not necessarily implemented for each hypervisor):

VIR_DOMAIN_STATS_STATE: Return domain state and reason for entering that
state. The typed parameter keys are in this format:
"state.state" - state of the VM, returned as int from virDomainState enum
"state.reason" - reason for entering given state, returned as int from
                 virDomain*Reason enum corresponding to given state.

Using 0 for @stats returns all stats groups supported by the given
hypervisor.

Specifying VIR_CONNECT_GET_ALL_DOMAINS_STATS_ENFORCE_STATS as @flags makes
the function return error in case some of the stat types in @stats were
not recognized by the daemon.

Get statistics about domains provided as a list in @doms. @stats is
a bit field selecting requested statistics types.z(domain list contains non-domain elementszvirDomainListGetStats() failedr   rZ   r+   )listro   r   r   appendr   r   virDomainListGetStats)r   rG  rA  rX   domlistrJ  r]   rD  s           r    domainListGetStatsvirConnect.domainListGetStatsj  s    : &Cc9--"#MNNNN366"	  ..twwN;?@@EHIST41g.Q8SIIIs   B!)r   r  r2  r  r  r  r  rj   )r   r   r   r  )NNNNr   r$   r|  r   r   r  )rI   rJ   rK   rL   r   r   rH  rM  rV  rZ  r^  rb  rf  rk  rp  rv  r  r~  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  rc   r  r  r  r  r   r  r  r  r  r  r  r  r"  r'  r+  r/  r3  r9  r=  rB  rH  rN  rR  rW  r[  r_  rd  rh  rm  rr  rv  rz  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  rL  r  r
  r  r  r  r  r!  r%  r)  r,  r/  r   r8  r   r   BaseExceptionr   r>  	_DomainCBrC  r   rH  rN   rN  r   rM   r   rR  rU  rX  r\  rb  rf  rn  rr  rw  rz  r~  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r   r  r  r  r  r  r  r  r  r  r  r  r   r  r	  r   r  r  r  r  r!  r'  r+  r0  r3  r7  r;  r?  r
   rE  rM  rO   rP   r"   r    r   r   F  s   
6

 &	$@(&	
 	",					



	,
		&


		B,
 (
"4
			

 &2
(4+>"? XVcMd rz  |I  sJ   OS 	 d 	Mi 	M 	M 	M S RU Z^  S Z] gkloqtltgu z} { DQTVYQYN _b  c [_`ceh`h[i nq  S Z^_bdg_gZh mp { S \_ il vz{~  AD  |D  wE   JM [ SV be or |   JN  OR  TW  OW  JX   ]`  C \_ mp   B   MP   Z^  _b  dg  _g  Zh   mp 	 	3 	VY 	cf 	ptuxz}u}p~ 	  DH 	+ SV dg sv   AD   NR  SV  X[  S[  N\   ad + QT ^a kopsuxpxky   B  S Z^_bdg_gZh mp  c [_`ceh`h[i nq [ RU _cdgildl_m ru [ RU _cdgildl_m ru [ TW aefiknfnao tw { C Y]^acf^fYg lo k RU _b lpqtvyqylz   @C ; RU _cdgildl_m ru + Z] gkloqtltgu z} K QUVY[^V^Q_ imnqsvnviw | ; Z] gkloqtltgu z} k RU ^a kopsuxpxky   B k PS [^ kn x{   FJ  KN  PS  KS  FT   Y\ [ UX be nq {  AD  FI  AI  |J   OR k Z] eh rvwz|w  sA   FI K PS ]` jm w{|  BE  }E  xF   KN 	3 	4 	, s \_ imnqsvnviw | | TW `c mqruwzrzm{   AD 	C 	D 	8L+A C U] gi nq (;*? # S[ eg lo ?O X[ eh rvwz|w  sA   FI =M W[\_ad\dWe jm 	 	 	9I0J UX ^f pr wz _ UX be ostwy|t|o}   CF ? TXY\^aYaTb gj 	s 	t 	h.G RU [c mo tw K PS ]` jnortwowjx   ~A + tTWY\T\~ be 	3 	4 	Xk-B S V^ hj or @C @[0A @G GT:J5K GAS Al1C AGs G43G GDC D_0E DJc J$}2E JQS Q>R9S QHC H[0A HS $sCx. S M "  # d3i  T_ >.Js .Js .J4k[_`ceh`h[iNiHjCk .J`(JtK'8 (J (JQT (J]abghsuyz}  @C  {C  vD  iD  cE  ^F (J (Jr"   c                       \ rS rSrSS jrS rS rS rSS jrS r	SS	 jr
S
 rSS jrS rS rS rS rS rS rS rS rS rS rSS jrSS jrSrg)rq  i  Nc                 |    Xl         [        U5      R                  S;  a  [        S[        U5      -  5      eX l        g r   r   r   s      r    r   virNodeDevice.__init__  r   r"   c                 l    U R                   b   [        R                  " U R                   5        S U l         g rj   )r   r   virNodeDeviceFreer&   s    r    r   virNodeDevice.__del__  r  r"   c                     U R                   $ rj   r   r&   s    r    r   virNodeDevice.connect  r   r"   c                 B    [         R                  " U R                  5      $ r   )r   virNodeDevice_pointerr   r&   s    r    r   virNodeDevice.c_pointer  r  r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )z<Fetch an XML document describing all aspects of
the device. z virNodeDeviceGetXMLDesc() failed)r   virNodeDeviceGetXMLDescr   r   r   s      r    r   virNodeDevice.XMLDesc  r	  r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )z.Extract the autostart flag for a node device. r   z"virNodeDeviceGetAutostart() failed)r   virNodeDeviceGetAutostartr   r   r   s     r    r  virNodeDevice.autostart  r  r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )zStart a defined node device: r   zvirNodeDeviceCreate() failed)r   virNodeDeviceCreater   r   r   s      r    r  virNodeDevice.create  r  r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )zDestroy the device object. The virtual device (only works for vHBA
currently) is removed from the host operating system.  This function
may require privileged access. r   zvirNodeDeviceDestroy() failed)r   virNodeDeviceDestroyr   r   r   s     r    r  virNodeDevice.destroy  s0     --dgg6"9>??
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )a  Detach the node device from the node itself so that it may be
assigned to a guest domain.

Depending on the hypervisor, this may involve operations such as
unbinding any device drivers from the device, binding the device to
a dummy device driver and resetting the device. Different backend
drivers expect the device to be bound to different dummy
devices. For example, QEMU's "kvm" backend driver (the default)
expects the device to be bound to "pci-stub", but its "vfio"
backend driver expects the device to be bound to "vfio-pci".

If the device is currently in use by the node, this method may
fail.

Once the device is not assigned to any guest, it may be re-attached
to the node using the virNodeDeviceReAttach() method. r   z!virNodeDeviceDetachFlags() failed)r   virNodeDeviceDetachFlagsr   r   )r   
driverNamerX   r]   s       r    detachFlagsvirNodeDevice.detachFlags  s2    " 11$'':M"9BCC
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )a  Detach the node device from the node itself so that it may be
assigned to a guest domain.

Depending on the hypervisor, this may involve operations such
as unbinding any device drivers from the device, binding the
device to a dummy device driver and resetting the device.

If the device is currently in use by the node, this method may
fail.

Once the device is not assigned to any guest, it may be re-attached
to the node using the virNodeDeviceReattach() method.

If the caller needs control over which backend driver will be used
during PCI device assignment (to use something other than the
default, for example VFIO), the newer virNodeDeviceDetachFlags()
API should be used instead. r   zvirNodeDeviceDettach() failed)r   virNodeDeviceDettachr   r   r   s     r    dettachvirNodeDevice.dettach  s0    $ --dgg6"9>??
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )z1Determine if the node device is currently active r   zvirNodeDeviceIsActive() failed)r   virNodeDeviceIsActiver   r   r   s     r    r  virNodeDevice.isActive  r  r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )zpDetermine if the node device has a persistent configuration
which means it will still exist after shutting down r   z"virNodeDeviceIsPersistent() failed)r   virNodeDeviceIsPersistentr   r   r   s     r    r  virNodeDevice.isPersistent  s0     22477;"9CDD
r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )z$list the node device's capabilities zvirNodeDeviceListCaps() failed)r   virNodeDeviceListCapsr   r   r   s     r    listCapsvirNodeDevice.listCaps  rh  r"   c                 F    [         R                  " U R                  5      nU$ )zJust return the device name )r   virNodeDeviceGetNamer   r   s     r    r_   virNodeDevice.name  s    --dgg6
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )zAAccessor for the number of capabilities supported by the device. r   zvirNodeDeviceNumOfCaps() failed)r   virNodeDeviceNumOfCapsr   r   r   s     r    	numOfCapsvirNodeDevice.numOfCaps"  r  r"   c                 F    [         R                  " U R                  5      nU$ )z&Accessor for the parent of the device )r   virNodeDeviceGetParentr   r   s     r    parentvirNodeDevice.parent)  s    //8
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )aQ  Re-attach a previously detached node device to the node so that it
may be used by the node again.

Depending on the hypervisor, this may involve operations such
as resetting the device, unbinding it from a dummy device driver
and binding it to its appropriate driver.

If the device is currently in use by a guest, this method may fail. r   zvirNodeDeviceReAttach() failed)r   virNodeDeviceReAttachr   r   r   s     r    reAttachvirNodeDevice.reAttach.  s0     ..tww7"9?@@
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )a  Reset a previously detached node device to the node before or
after assigning it to a guest.

The exact reset semantics depends on the hypervisor and device
type but, for example, KVM will attempt to reset PCI devices with
a Function Level Reset, Secondary Bus Reset or a Power Management
D-State reset.

If the reset will affect other devices which are currently in use,
this function may fail. r   zvirNodeDeviceReset() failed)r   virNodeDeviceResetr   r   r   s     r    r  virNodeDevice.reset<  s0     ++DGG4"9<==
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )zzConfigure the node device to be automatically started when the host machine
boots or the parent device becomes available. r   z"virNodeDeviceSetAutostart() failed)r   virNodeDeviceSetAutostartr   r   r  s      r    r  virNodeDevice.setAutostartL  r  r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )zUndefine the device object. The virtual device  is removed from the host
operating system.  This function may require privileged access. r   zvirNodeDeviceUndefine() failed)r   virNodeDeviceUndefiner   r   r   s      r    r  virNodeDevice.undefineT  s2     ..tww>"9?@@
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )zUpdate the definition of an existing node device, either its live running
configuration, its persistent configuration, or both. r   zvirNodeDeviceUpdate() failed)r   virNodeDeviceUpdater   r   rj  s       r    rI  virNodeDevice.update\  s2     ,,TWWgE"9=>>
r"   r  rj   r  )rI   rJ   rK   rL   r   r   r   r   r   r  r  r  rl  rp  r  r  rz  r_   r  r  r  r  r  r  rI  rO   rP   r"   r    rq  rq    sk    
9,.

 r"   rq  c                   l    \ rS rSrSS jrS rS rS rS rS r	SS	 jr
SS
 jrS rS rS rSS jrSrg)r  id  Nc                 |    Xl         [        U5      R                  S;  a  [        S[        U5      -  5      eX l        g r   r   r   s      r    r   virSecret.__init__e  r   r"   c                 l    U R                   b   [        R                  " U R                   5        S U l         g rj   )r   r   virSecretFreer&   s    r    r   virSecret.__del__k  r   r"   c                     U R                   $ rj   r   r&   s    r    r   virSecret.connectp  r   r"   c                 B    [         R                  " U R                  5      $ r   )r   virSecret_pointerr   r&   s    r    r   virSecret.c_pointers  r   r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )z0Extract the UUID unique Identifier of a secret. zvirSecretGetUUID() failed)r   virSecretGetUUIDr   r   r   s     r    r   virSecret.UUID{  r   r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )z4Fetch globally unique ID of the secret as a string. zvirSecretGetUUIDString() failed)r   virSecretGetUUIDStringr   r   r   s     r    r   virSecret.UUIDString  r   r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )z=Fetches an XML document describing attributes of the secret. zvirSecretGetXMLDesc() failed)r   virSecretGetXMLDescr   r   r   s      r    r   virSecret.XMLDesc  s.    ,,TWWe<;=>>
r"   c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )z"Associates a value with a secret. r   zvirSecretSetValue() failed)r   virSecretSetValuer   r   )r   valuerX   r]   s       r    setValuevirSecret.setValue  s0    **477EA"9;<<
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )zVDeletes the specified secret.  This does not free the associated
virSecretPtr object. r   zvirSecretUndefine() failed)r   virSecretUndefiner   r   r   s     r    r  virSecret.undefine  s0     **4773"9;<<
r"   c                 F    [         R                  " U R                  5      nU$ )a  Get the unique identifier of the object with which this
secret is to be used. The format of the identifier is
dependent on the usage type of the secret. For a secret
with a usage type of VIR_SECRET_USAGE_TYPE_VOLUME the
identifier will be a fully qualified path name. The
identifiers are intended to be unique within the set of
all secrets sharing the same usage type. ie, there shall
only ever be one secret for each volume path. )r   virSecretGetUsageIDr   r   s     r    r  virSecret.usageID  s     ,,TWW5
r"   c                 F    [         R                  " U R                  5      nU$ )a  Get the type of object which uses this secret. The returned
value is one of the constants defined in the virSecretUsageType
enumeration. More values may be added to this enumeration in
the future, so callers should expect to see usage types they
do not explicitly know about. )r   virSecretGetUsageTyper   r   s     r    r  virSecret.usageType  s     ..tww7
r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )z,Fetches the value associated with a secret. zvirSecretGetValue() failed)r   virSecretGetValuer   r   r   s      r    r  virSecret.value  r  r"   r  rj   r  )rI   rJ   rK   rL   r   r   r   r   r   r   r   r  r  r  r  r  rO   rP   r"   r    r  r  d  s>    
5
r"   r  c                   R    \ rS rSrSS jrS rS rS rS rS r	SS	 jr
S
 rS rSrg)r  i  Nc                 |    Xl         [        U5      R                  S;  a  [        S[        U5      -  5      eX l        g r   r   r   s      r    r   virNWFilter.__init__  r   r"   c                 l    U R                   b   [        R                  " U R                   5        S U l         g rj   )r   r   virNWFilterFreer&   s    r    r   virNWFilter.__del__  s%    77&&tww/r"   c                     U R                   $ rj   r   r&   s    r    r   virNWFilter.connect  r   r"   c                 B    [         R                  " U R                  5      $ r   )r   virNWFilter_pointerr   r&   s    r    r   virNWFilter.c_pointer  s    --dgg66r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )z8Extract the UUID unique Identifier of a network filter. zvirNWFilterGetUUID() failed)r   virNWFilterGetUUIDr   r   r   s     r    r   virNWFilter.UUID  r   r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )z<Fetch globally unique ID of the network filter as a string. z!virNWFilterGetUUIDString() failed)r   virNWFilterGetUUIDStringr   r   r   s     r    r   virNWFilter.UUIDString  r$  r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )Provide an XML description of the network filter. The description may be
reused later to redefine the network filter with virNWFilterCreateXML(). zvirNWFilterGetXMLDesc() failed)r   virNWFilterGetXMLDescr   r   r   s      r    r   virNWFilter.XMLDesc  s0     ..tww>;?@@
r"   c                 F    [         R                  " U R                  5      nU$ )z+Get the public name for the network filter )r   virNWFilterGetNamer   r   s     r    r_   virNWFilter.name  s    ++DGG4
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )zUndefine the nwfilter object. This call will not succeed if
a running VM is referencing the filter. This does not free the
associated virNWFilterPtr object. r   zvirNWFilterUndefine() failed)r   virNWFilterUndefiner   r   r   s     r    r  virNWFilter.undefine  s0     ,,TWW5"9=>>
r"   r  rj   r  )rI   rJ   rK   rL   r   r   r   r   r   r   r   r_   r  rO   rP   r"   r    r  r    s/    
7
r"   r  c                   L    \ rS rSrSS jrS rS rS rSS jrS r	S	 r
S
 rSrg)r  i
  Nc                 |    Xl         [        U5      R                  S;  a  [        S[        U5      -  5      eX l        g r   r   r   s      r    r   virNWFilterBinding.__init__  r   r"   c                 l    U R                   b   [        R                  " U R                   5        S U l         g rj   )r   r   virNWFilterBindingFreer&   s    r    r   virNWFilterBinding.__del__  s%    77--dgg6r"   c                     U R                   $ rj   r   r&   s    r    r   virNWFilterBinding.connect  r   r"   c                 B    [         R                  " U R                  5      $ r   )r   virNWFilterBinding_pointerr   r&   s    r    r   virNWFilterBinding.c_pointer  s    44TWW==r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )r  z%virNWFilterBindingGetXMLDesc() failed)r   virNWFilterBindingGetXMLDescr   r   r   s      r    r   virNWFilterBinding.XMLDesc!  s0     55dgguE;FGG
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )av  Delete the binding object. This does not free the
associated virNWFilterBindingPtr object. This API
may be used to remove the network port binding filter
currently in use for the guest while the guest is
running without needing to restart the guest. Restoring
the network port binding filter for the running guest
would be accomplished by using virNWFilterBindingCreateXML. r   z!virNWFilterBindingDelete() failed)r   virNWFilterBindingDeleter   r   r   s     r    rr  virNWFilterBinding.delete)  s0     11$'':"9BCC
r"   c                 F    [         R                  " U R                  5      nU$ )z3Get the filter name for the network filter binding )r   virNWFilterBindingGetFilterNamer   r   s     r    
filterNamevirNWFilterBinding.filterName6  s    88A
r"   c                 F    [         R                  " U R                  5      nU$ )z5Get the port dev name for the network filter binding )r   virNWFilterBindingGetPortDevr   r   s     r    portDevvirNWFilterBinding.portDev;  s    55dgg>
r"   r  rj   r  )rI   rJ   rK   rL   r   r   r   r   r   rr  r  r  rO   rP   r"   r    r  r  
  s*    
>
r"   r  c            
          \ rS rSrS#S jrS rS rS rS rS r	S	 r
S$S jrS\S\\\4   S
\4S jrS\S\S \\/S4   S\S
S4S jrS\S \\/\4   S\S
S4S jrS\S \\/\4   S\S
S4S jrS\S
\4S jrS\S
\4S jrS%S\S
\4S jjrS%S\S\S
\4S jjrS%S\S\S
\\\4   4S jjrS\S \\/\\\4   4   S\S \\/\\   4   S\S
S4S jrS\S \\/\\\4   4   S\S \/\\ \4   4   S \S \\/\4   S\S
S4
S! jr!S"r"g)&rl  i@  Nc                 |    Xl         [        U5      R                  S;  a  [        S[        U5      -  5      eX l        g r   r   r   s      r    r   virStream.__init__A  r   r"   c                     U R                   $ rj   r   r&   s    r    r   virStream.connectG  r   r"   c                 B    [         R                  " U R                  5      $ r   )r   virStream_pointerr   r&   s    r    r   virStream.c_pointerJ  r   r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )ay  Request that the in progress data transfer be cancelled
abnormally before the end of the stream has been reached.
For output streams this can be used to inform the driver
that the stream is being terminated early. For input
streams this can be used to inform the driver that it
should stop sending data.

If the stream is non-blocking, any callback must be removed
beforehand. r   zvirStreamAbort() failed)r   virStreamAbortr   r   r   s     r    abortvirStream.abortR  s0     ''0"9899
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )z)Remove an event callback from the stream r   z%virStreamEventRemoveCallback() failed)r   virStreamEventRemoveCallbackr   r   r   s     r    eventRemoveCallbackvirStream.eventRemoveCallbacka  s.    55dgg>"9FGG
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )zChanges the set of events to monitor for a stream. This allows
for event notification to be changed without having to
unregister & register the callback completely. This method
is guaranteed to succeed if a callback is already registered r   z%virStreamEventUpdateCallback() failed)r   virStreamEventUpdateCallbackr   r   )r   rx   r]   s      r    eventUpdateCallbackvirStream.eventUpdateCallbackh  s2    
 55dggvF"9FGG
r"   c                 h    [         R                  " U R                  5      nUS:X  a  [        S5      eU$ )a  Indicate that there is no further data to be transmitted
on the stream. For output streams this should be called once
all data has been written. For input streams this should be
called once virStreamRecv returns end-of-file.

This method is a synchronization point for all asynchronous
errors, so if this returns a success code the application can
be sure that all data has been successfully processed.

If the stream is non-blocking, any callback must be removed
beforehand. r   zvirStreamFinish() failed)r   virStreamFinishr   r   r   s     r    finishvirStream.finishr  s0     ((1"99::
r"   r   c                      U R                   (       a   [        R                  " U R                  5        U R                  b   [        R
                  " U R                  5        S U l        g ! [         a     NAf = frj   )r|   r   r  r   r5  virStreamFreer&   s    r    r   virStream.__del__  sY    	ww77@ 77$$TWW-  		s   1A( (
A54A5rx   ry   c                 *    US   nUS   nU" XU5        g)z;
Dispatches events to python user's stream event callbacks
r|   rg   r   rP   )r   rx   ry   r|   rg   s        r    _dispatchStreamEventCallback&virStream._dispatchStreamEventCallback  s$     D\!
4 r"   r|   rg   c                 ~    X l         XUS.n[        R                  " U R                  X5      nUS:X  a  [	        S5      eg )N)r  r|   rg   r   z"virStreamEventAddCallback() failed)r|   r   virStreamEventAddCallbackr   r   )r   rx   r|   rg   ry   r]   s         r    eventAddCallbackvirStream.eventAddCallback  s?     f=22477FK"9CDD r"   handlerc                 N    U R                  [        R                  5      nUS:X  a  [        S5      e[	        U5      S:X  a  g U" XU5      n[        U[        5      (       a  US:  a  [        SU-  5      eMu  ! [         a#     U R                  5         e ! [         a     e f = ff = f)a  Receive the entire data stream, sending the data to the
requested data sink. This is simply a convenient alternative
to virStreamRecv, for apps that do blocking-I/O.

A hypothetical handler function looks like:

    def handler(stream, # virStream instance
                buf,    # string containing received data
                opaque): # extra data passed to recvAll as opaque
        fd = opaque
        return os.write(fd, buf)
z*cannot use recvAll with nonblocking streamr   zrecvAll handler returned %dN)recvr  r<  r   rB  ro   rN   RuntimeErrorrP  r  r   r   r	  rg   gotr]   s        r    recvAllvirStream.recvAll  s     ))M778Cby" $8 9 93x1}	d0c3''C!G&'Ds'JKK  ! JJL  ! s0   2A7 7
B$BB$
B B$B  B$c                       U" U [         R                  U5      nU(       d  gU R                  U5      nUS:X  a  [        S5      eME  ! [         a#     U R                  5         e ! [         a     e f = ff = f)a  
Send the entire data stream, reading the data from the
requested data source. This is simply a convenient alternative
to virStreamSend, for apps that do blocking-I/O.

A hypothetical handler function looks like:

    def handler(stream, # virStream instance
                nbytes, # int amt of data to read
                opaque): # extra data passed to recvAll as opaque
        fd = opaque
        return os.read(fd, nbytes)
r	  z*cannot use sendAll with nonblocking streamN)r  r<  rP  r  r   sendr   r	  s        r    sendAllvirStream.sendAll  s     dM$?$?H ))C.Cby" $8 9 9  ! JJL  ! s/   A 
A4A#"A4#
A0-A4/A00A4nbytesc                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )a  Reads a series of bytes from the stream. This method may
block the calling application for an arbitrary amount
of time.

Errors are not guaranteed to be reported synchronously
with the call, but may instead be delayed until a
subsequent call.

On success, the received data is returned. On failure, an
exception is raised. If the stream is a NONBLOCK stream and
the request would block, integer -2 is returned.
zvirStreamRecv() failed)r   virStreamRecvr   r   )r   r	  r]   s      r    r	  virStream.recv  s0     &&tww7;788
r"   datac                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )a  Write a series of bytes to the stream. This method may
block the calling application for an arbitrary amount
of time. Once an application has finished sending data
it should call virStreamFinish to wait for successful
confirmation from the driver, or detect any error

This method may not be used if a stream source has been
registered

Errors are not guaranteed to be reported synchronously
with the call, but may instead be delayed until a
subsequent call.
r   zvirStreamSend() failed)r   virStreamSendr   r   )r   r#	  r]   s      r    r	  virStream.send  s2     &&tww5"9788
r"   rX   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )zThis method is used to determine the length in bytes
of the empty space to be created in a stream's target
file when uploading or downloading sparsely populated
files. This is the counterpart to sendHole.
zvirStreamRecvHole() failed)r   virStreamRecvHoler   r   r   s      r    recvHolevirStream.recvHole  s0     **477E:;;<<
r"   r  c                 j    [         R                  " U R                  X5      nUS:X  a  [        S5      eU$ )zRather than transmitting empty file space, this method
directs the stream target to create length bytes of empty
space.  This method would be used when uploading or
downloading sparsely populated files to avoid the
needless copy of empty file space.
r   zvirStreamSendHole() failed)r   virStreamSendHoler   r   )r   r  rX   r]   s       r    sendHolevirStream.sendHole  s2     **477FB"9;<<
r"   c                 d    [         R                  " U R                  X5      nUc  [        S5      eU$ )a  Reads a series of bytes from the stream. This method may
block the calling application for an arbitrary amount
of time. This is just like recv except it has flags
argument.

Errors are not guaranteed to be reported synchronously
with the call, but may instead be delayed until a
subsequent call.

On success, the received data is returned. On failure, an
exception is raised. If the stream is a NONBLOCK stream and
the request would block, integer -2 is returned.
zvirStreamRecvFlags() failed)r   virStreamRecvFlagsr   r   )r   r	  rX   r]   s       r    	recvFlagsvirStream.recvFlags  s0     ++DGGVC;<==
r"   holeHandlerc                     [         R                  nU R                  U[        5      nUS:X  a  [	        S5      eUS:X  ar  U R                  5       nUc  U R                  5         [        S5      eU" XU5      n[        U[        5      (       a$  US:  a  U R                  5         [        SU-  5      eM  [        U[        5      (       a  [        U5      e[        U[        5      (       d  [        [        U5      5      e[        U5      S:X  a  gU" XU5      n[        U[        5      (       a$  US:  a  U R                  5         [        SU-  5      eGMM  )	a  Receive the entire data stream, sending the data to
the requested data sink handler and calling the skip
holeHandler to generate holes for sparse stream targets.
This is simply a convenient alternative to recvFlags, for
apps that do blocking-I/O and want to preserve sparseness.

Hypothetical callbacks can look like this:

    def handler(stream, # virStream instance
                buf,    # string containing received data
                opaque): # extra data passed to sparseRecvAll as opaque
        fd = opaque
        return os.write(fd, buf)

    def holeHandler(stream, # virStream instance
                    length, # number of bytes to skip
                    opaque): # extra data passed to sparseRecvAll as opaque
        fd = opaque
        cur = os.lseek(fd, length, os.SEEK_CUR)
        return os.ftruncate(fd, cur) # take this extra step to
                                     # actually allocate the hole
r	  z0cannot use sparseRecvAll with nonblocking streamNzrecvHole handler failedr   zholeHandler handler returned %dz!sparseRecvAll handler returned %d)r  r<  r1	  VIR_STREAM_RECV_STOP_AT_HOLEr   r)	  r  r	  ro   rN   
ValueErrorbytes	TypeErrorr   rB  )	r   r	  r3	  rg   wantr	  r  ret_holeret_datas	            r    sparseRecvAllvirStream.sparseRecvAll1  s#   .  ..D..'CDCby" $8 9 9>JJL&'@AA&tV<h,,AJJL&'H8'STTC%% o%U++S	**3x1}t&1H(C((X\

"#F#QRR7 r"   skipHandlerc                     U" X5      u  pVU(       d:  US:  a4  U R                  U5      S:  d  U" XU5      S:  a  U R                  5         ML  [        R                  nXv:  a  UnU" XU5      n[	        U[
        5      (       a$  US:  a  U R                  5         [        SU-  5      eU(       d  g[	        U[        5      (       d   eU R                  U5      n	U	S:X  a  [        S5      eM  )aS  Send the entire data stream, reading the data from the
requested data source. This is simply a convenient
alternative to virStreamSend, for apps that do
blocking-I/O and want to preserve sparseness.

Hypothetical callbacks can look like this:

    def handler(stream, # virStream instance
                nbytes, # int amt of data to read
                opaque): # extra data passed to sparseSendAll as opaque
        fd = opaque
        return os.read(fd, nbytes)

    def holeHandler(stream, # virStream instance
                    opaque): # extra data passed to sparseSendAll as opaque
        fd = opaque
        cur = os.lseek(fd, 0, os.SEEK_CUR)
        # ... find out current section and its boundaries
        # and set inData = True/False and sectionLen correspondingly
        os.lseek(fd, cur, os.SEEK_SET)
        return [inData, sectionLen]

    def skipHandler(stream, # virStream instance
                    length, # number of bytes to skip
                    opaque): # extra data passed to sparseSendAll as opaque
        fd = opaque
        return os.lseek(fd, length, os.SEEK_CUR)

r   z!sparseSendAll handler returned %dr	  z0cannot use sparseSendAll with nonblocking streamN)
r-	  r  r  r<  ro   rN   r	  r8	  r	  r   )
r   r	  r3	  r?	  rg   inData
sectionLenr:	  r	  r]   s
             r    sparseSendAllvirStream.sparseSendAlle  s    < #.t#< Vj1nMM*-1#Df=AJJL ..D!!$f-C#s##a

"#F#LMMc5))))))C.Cby" $8 9 9/ r"   )r   r   r|   rj   r|  r  )#rI   rJ   rK   rL   r   r   r   r  r  r	  r	  r   rN   r   rM   r   r	  r   r   r	  r8	  r	  r	  r	  r	  r)	  r-	  r   r1	  r   r=	  r
   boolrC	  rO   rP   r"   r    rl  rl  @  s   5(	3 S#X SV Es E+sB9OQU9U0V E`b Egk ExeR(@#(EF PR W[ @9xc2(>(EF 9PR 9W[ 9@3 5 $ 3 &	c 	# 	
s 
3 
s 
 C eSj8I &2SX{E2.FeUXjHY.Y%Z 2Siqs~  AD  FH  sI  KS  TW  KX  sX  jY 2S  ce 2S  jn 2Sh69X{C.DeESVJFW.W%X 69goq|  A  qB  DI  JN  PS  JS  DT  qT  hU 69  dl  ny  {~  @B  mC  EH  mH  dI 69  SU 69  Z^ 69r"   rl  c                       \ rS rSrSS jrS rS rS rS rSS jr	S	 r
SS
 jrSS jrSS jrSS jrSS\S\S    4S jjrSrg)rk  i  Nc                     Xl         UR                  5       U l        [        U5      R                  S;  a  [        S[        U5      -  5      eX l        g r   _domr   r   r   rI   r   r   r   rJ  r[   s      r    r   virDomainCheckpoint.__init__  rV  r"   c                 l    U R                   b   [        R                  " U R                   5        S U l         g rj   )r   r   virDomainCheckpointFreer&   s    r    r   virDomainCheckpoint.__del__  s%    77..tww7r"   c                     U R                   $ rj   r   r&   s    r    r   virDomainCheckpoint.connect  r   r"   c                     U R                   $ rj   rI	  r&   s    r    domainvirDomainCheckpoint.domain  r`  r"   c                 B    [         R                  " U R                  5      $ r   )r   virDomainCheckpoint_pointerr   r&   s    r    r   virDomainCheckpoint.c_pointer  s    55dgg>>r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )a  Removes a checkpoint from the domain.

When removing a checkpoint, the record of which portions of the
disk were dirtied after the checkpoint will be merged into the
record tracked by the parent checkpoint, if any.

If @flags includes VIR_DOMAIN_CHECKPOINT_DELETE_CHILDREN, then any
descendant checkpoints are also deleted. If @flags includes
VIR_DOMAIN_CHECKPOINT_DELETE_CHILDREN_ONLY, then any descendant
checkepoints are deleted, but this checkpoint remains. These two
flags are mutually exclusive.

If @flags includes VIR_DOMAIN_CHECKPOINT_DELETE_METADATA_ONLY, then
any checkpoint metadata tracked by libvirt is removed while keeping
the checkpoint contents intact; if a hypervisor does not require
any libvirt metadata to track checkpoints, then this flag is
silently ignored. r   z"virDomainCheckpointDelete() failed)r   virDomainCheckpointDeleter   r   r   s      r    rr  virDomainCheckpoint.delete  s2    $ 22477EB"9CDD
r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )z(Get the public name for that checkpoint z#virDomainCheckpointGetName() failed)r   virDomainCheckpointGetNamer   r   r   s     r    getNamevirDomainCheckpoint.getName  r5  r"   c                     [         R                  " U R                  U5      nUc  [        S5      e[	        U R
                  US9nU$ )zGet the parent checkpoint for @checkpoint, if any.

virDomainCheckpointFree should be used to free the resources after the
checkpoint object is no longer needed. z%virDomainCheckpointGetParent() failedrZ   )r   virDomainCheckpointGetParentr   r   rk  rI	  )r   rX   r]   _virDomainCheckpoint__tmps       r    	getParentvirDomainCheckpoint.getParent  s@    
 55dgguE;FGG#DIIC8r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )a  Provide an XML description of the domain checkpoint.

No security-sensitive data will be included unless @flags contains
VIR_DOMAIN_CHECKPOINT_XML_SECURE; this flag is rejected on read-only
connections.

Normally, the XML description includes an element giving a full
description of the domain at the time the checkpoint was created; to
reduce parsing time, it will be suppressed when @flags contains
VIR_DOMAIN_CHECKPOINT_XML_NO_DOMAIN.

By default, the XML description contains only static information that
does not change over time. However, when @flags contains
VIR_DOMAIN_CHECKPOINT_XML_SIZE, each <disk> listing adds an additional
attribute that shows an estimate of the current size in bytes that
have been dirtied between the time the checkpoint was created and the
current point in time. Note that updating the size may be expensive and
data will be inaccurate once guest OS writes to the disk. Also note that
hypervisors may require that the domain associated with @checkpoint is
running when VIR_DOMAIN_CHECKPOINT_XML_SIZE is used. z&virDomainCheckpointGetXMLDesc() failed)r   virDomainCheckpointGetXMLDescr   r   r   s      r    
getXMLDescvirDomainCheckpoint.getXMLDesc  s0    * 66twwF;GHH
r"   r   c                 "    U R                  5       $ )zIGet the connection that owns the domain that a checkpoint was created forr   r&   s    r    
getConnectvirDomainCheckpoint.getConnect      ||~r"   c                 "    U R                  5       $ )z0Get the domain that a checkpoint was created forrS	  r&   s    r    	getDomainvirDomainCheckpoint.getDomain      {{}r"   rX   c                     [         R                  " U R                  U5      nUc  [        S5      eU Vs/ s H  n[	        U R                  5       US9PM     sn$ s  snf )zCList all child checkpoints and returns a list of checkpoint objectsz+virDomainCheckpointListAllChildren() failedrZ   )r   "virDomainCheckpointListAllChildrenr   r   rk  rS	  r  s       r    listAllChildren#virDomainCheckpoint.listAllChildren  sO    ;;DGGUK;LMMNQRcF#DKKM?cRRR   "Ar   rI	  r   rj   r  rO  r   r   )rI   rJ   rK   rL   r   r   r   rS	  r   rr  r]	  rb	  rf	  rj	  ro	  rN   r   rt	  rO   rP   r"   r    rk  rk    s[    
?.	:SS S6K1L S Sr"   rk  c                       \ rS rSrSS jrS rS rS rS rSS jr	S	 r
SS
 jrSS jrSS jrSS jrSS jrSS jrSS jrSS jrSS\S\S    4S jjrSrg)r  i  Nc                     Xl         UR                  5       U l        [        U5      R                  S;  a  [        S[        U5      -  5      eX l        g r   rH	  rJ	  s      r    r   virDomainSnapshot.__init__  rV  r"   c                 l    U R                   b   [        R                  " U R                   5        S U l         g rj   )r   r   virDomainSnapshotFreer&   s    r    r   virDomainSnapshot.__del__  s%    77,,TWW5r"   c                     U R                   $ rj   r   r&   s    r    r   virDomainSnapshot.connect  r   r"   c                     U R                   $ rj   rR	  r&   s    r    rS	  virDomainSnapshot.domain  r`  r"   c                 B    [         R                  " U R                  5      $ r   )r   virDomainSnapshot_pointerr   r&   s    r    r   virDomainSnapshot.c_pointer!  s    33DGG<<r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )a7  Delete the snapshot.

If @flags is 0, then just this snapshot is deleted, and changes
from this snapshot are automatically merged into children
snapshots.  If @flags includes VIR_DOMAIN_SNAPSHOT_DELETE_CHILDREN,
then this snapshot and any descendant snapshots are deleted.  If
@flags includes VIR_DOMAIN_SNAPSHOT_DELETE_CHILDREN_ONLY, then any
descendant snapshots are deleted, but this snapshot remains.  These
two flags are mutually exclusive.

If @flags includes VIR_DOMAIN_SNAPSHOT_DELETE_METADATA_ONLY, then
any snapshot metadata tracked by libvirt is removed while keeping
the snapshot contents intact; if a hypervisor does not require any
libvirt metadata to track snapshots, then this flag is silently
ignored.

Since libvirt 9.0.0 deletion of external snapshots is supported
for QEMU driver. Using @flags VIR_DOMAIN_SNAPSHOT_DELETE_CHILDREN
and VIR_DOMAIN_SNAPSHOT_DELETE_CHILDREN_ONLY is not supported with
external snapshots. In case that daemon process is terminated
while the snapshot delete is in process the operation will be
aborted when the daemon starts again. r   z virDomainSnapshotDelete() failed)r   virDomainSnapshotDeleter   r   r   s      r    rr  virDomainSnapshot.delete)  s2    . 00%@"9ABB
r"   c                 b    [         R                  " U R                  5      nUc  [        S5      eU$ )z&Get the public name for that snapshot z!virDomainSnapshotGetName() failed)r   virDomainSnapshotGetNamer   r   r   s     r    r]	  virDomainSnapshot.getNameE  r$  r"   c                     [         R                  " U R                  U5      nUc  [        S5      e[	        U R
                  US9nU$ )zGet the parent snapshot for @snapshot, if any.

virDomainSnapshotFree should be used to free the resources after the
snapshot object is no longer needed. z#virDomainSnapshotGetParent() failedrZ   )r   virDomainSnapshotGetParentr   r   r  rI	  )r   rX   r]   _virDomainSnapshot__tmps       r    rb	  virDomainSnapshot.getParentL  s@    
 33DGGUC;DEE!$))#6r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )zProvide an XML description of the domain snapshot, with a top-level
element of <domainsnapshot>.

No security-sensitive data will be included unless @flags contains
VIR_DOMAIN_SNAPSHOT_XML_SECURE; this flag is rejected on read-only
connections. z$virDomainSnapshotGetXMLDesc() failed)r   virDomainSnapshotGetXMLDescr   r   r   s      r    rf	  virDomainSnapshot.getXMLDescW  s0     44TWWeD;EFF
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )zsDetermine if the given snapshot is associated with libvirt metadata
that would prevent the deletion of the domain. r   z%virDomainSnapshotHasMetadata() failed)r   virDomainSnapshotHasMetadatar   r   r   s      r    hasMetadatavirDomainSnapshot.hasMetadatac  s2     55dgguE"9FGG
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )zkDetermine if the given snapshot is the domain's current snapshot.  See
also virDomainHasCurrentSnapshot(). r   z#virDomainSnapshotIsCurrent() failed)r   virDomainSnapshotIsCurrentr   r   r   s      r    	isCurrentvirDomainSnapshot.isCurrentk  s2     33DGGUC"9DEE
r"   c                 d    [         R                  " U R                  U5      nUc  [        S5      eU$ )z@collect the list of child snapshot names for the given snapshot z+virDomainSnapshotListChildrenNames() failed)r   "virDomainSnapshotListChildrenNamesr   r   r   s      r    listChildrenNames#virDomainSnapshot.listChildrenNamesw  s.    ;;DGGUK;LMM
r"   c                 j    [         R                  " U R                  U5      nUS:X  a  [        S5      eU$ )a  Provides the number of child snapshots for this domain snapshot.

This function will accept VIR_DOMAIN_SNAPSHOT_LIST_TOPOLOGICAL in
@flags only if virDomainSnapshotListChildrenNames() can honor it,
although the flag has no other effect here.

By default, this command covers only direct children. It is also
possible to expand things to cover all descendants, when @flags
includes VIR_DOMAIN_SNAPSHOT_LIST_DESCENDANTS. Additional filters
are provided via the same @flags values as documented in
virDomainSnapshotListAllChildren(). r   z%virDomainSnapshotNumChildren() failed)r   virDomainSnapshotNumChildrenr   r   r   s      r    numChildrenvirDomainSnapshot.numChildren  s2     55dgguE"9FGG
r"   r   c                 "    U R                  5       $ )zGGet the connection that owns the domain that a snapshot was created forri	  r&   s    r    rj	  virDomainSnapshot.getConnect  rl	  r"   c                 "    U R                  5       $ )z.Get the domain that a snapshot was created forrn	  r&   s    r    ro	  virDomainSnapshot.getDomain  rq	  r"   rX   c                     [         R                  " U R                  U5      nUc  [        S5      eU Vs/ s H  n[	        U R                  5       US9PM     sn$ s  snf )z?List all child snapshots and returns a list of snapshot objectsz)virDomainSnapshotListAllChildren() failedrZ   )r    virDomainSnapshotListAllChildrenr   r   r  rS	  r  s       r    rt	  !virDomainSnapshot.listAllChildren  sO    99$''5I;JKKNQRc7!$++-g>cRRRrv	  rw	  rj   r  rO  rx	  )rI   rJ   rK   rL   r   r   r   rS	  r   rr  r]	  rb	  rf	  r	  r	  r	  r	  rj	  ro	  rN   r   rt	  rO   rP   r"   r    r  r    so    
=8	
(SS S6I1J S Sr"   r  r+   r   r2   r6   r:   r>   r   rB   rF   	          @      i    i   @l           i   i   i   i   i    i @  i   i   i   i   i   i   i    i  @ i   i   r	  
                                                               !   "   #   $   %   &   '   (   )   *   +   r   -   .   /   0   1   2   3   4   5   6   7   8   9   :   ;   <   =   >   ?   A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z   [   \   ]   ^   _   `   a   b   c   d   e   f   g   h   i   j   k   l   m   n   o   p   q   z
group-namez
process-idzprocess-timezsasl-user-namezselinux-contextzunix-group-idzunix-user-idz	user-namezx509-distinguished-namezinbound.averagezinbound.burstzinbound.floorzinbound.peakzoutbound.averagezoutbound.burstzoutbound.peakdevice_read_bytes_secdevice_read_iops_secdevice_weightdevice_write_bytes_secdevice_write_iops_secweightr,  zbuf-sizegranularity
group_nameread_bytes_secread_bytes_sec_maxread_bytes_sec_max_lengthread_iops_secread_iops_sec_maxread_iops_sec_max_lengthsize_iops_sectotal_bytes_sectotal_bytes_sec_maxtotal_bytes_sec_max_lengthtotal_iops_sectotal_iops_sec_maxtotal_iops_sec_max_lengthwrite_bytes_secwrite_bytes_sec_maxwrite_bytes_sec_max_lengthwrite_iops_secwrite_iops_sec_maxwrite_iops_sec_max_lengtherrsflush_operationsflush_total_timesrd_bytesrd_operationsrd_total_timeswr_byteswr_operationswr_total_timescpu_timesystem_time	user_time	vcpu_timez
disk.countzdisk.z.aliasz.dependency.countz.dependency.z.namez.guest_aliasz
.guest_busz
.partitionz.serialzfs.countzfs.z.disk.countz.disk.z.devicez.fstypez.mountpointz.total-bytesz.used-bytesr  zif.countzif.z.addr.countz.addr.z.addrz.prefixz.typez.hwaddrzload.15mzload.1mzload.5mzos.idzos.kernel-releasezos.kernel-versionz
os.machinezos.namezos.pretty-namez
os.variantzos.variant-idz
os.versionzos.version-idztimezone.nameztimezone.offsetz
user.countzuser.z.domainz.login-time	poll_growpoll_max_nspoll_shrinkthread_pool_maxthread_pool_minauto_converge_throttlecompression_bytescompression_cachecompression_cache_missescompression_overflowcompression_pagesdata_processeddata_remaining
data_totaldisk_bpsdisk_processeddisk_remainingdisk_temp_totaldisk_temp_used
disk_totalrd  downtime_neterrmsg
memory_bpsmemory_constantmemory_dirty_ratememory_iterationmemory_normalmemory_normal_bytesmemory_page_sizememory_postcopy_requestsmemory_processedmemory_remainingmemory_total	operation
setup_timesuccesstime_elapsedtime_elapsed_nettime_remainingvfio_data_transferredzsev-api-majorzsev-api-minorzsev-build-idzsev-measurementz
sev-policyz
sev-secretzsev-secret-headerzsev-secret-set-addresszsev-snp-policy
hard_limitmin_guarantee
soft_limitswap_hard_limit	numa_modenuma_nodesetr  r  image_formatzparallel.channelsr  
cpu_sharesemulator_periodemulator_quotaglobal_periodglobal_quotaiothread_periodiothread_quotalimitreservationsharesvcpu_period
vcpu_quotazballoon.availablezballoon.currentzballoon.disk_cacheszballoon.hugetlb_pgalloczballoon.hugetlb_pgfailzballoon.last-updatezballoon.major_faultzballoon.maximumzballoon.minor_faultzballoon.rsszballoon.swap_inzballoon.swap_outzballoon.unusedzballoon.usablezblock.countzblock.z.allocationz.backingIndexz	.capacityz.errorsz.fl.reqsz	.fl.timesz.pathz	.physicalz	.rd.bytesz.rd.reqsz	.rd.timesz
.thresholdz	.wr.bytesz.wr.reqsz	.wr.timeszcpu.cache.monitor.countzcpu.cache.monitor.z.bank.countz.bank.z.bytesz.idz.vcpuszcpu.haltpoll.fail.timezcpu.haltpoll.success.timez
cpu.systemzcpu.timezcpu.userz.curz.maxz.sumzdirtyrate.calc_modezdirtyrate.calc_periodzdirtyrate.calc_start_timezdirtyrate.calc_statuszdirtyrate.megabytes_per_secondzdirtyrate.vcpu.z.megabytes_per_secondziothread.countz	iothread.z
.poll-growz.poll-max-nsz.poll-shrinkzmemory.bandwidth.monitor.countzmemory.bandwidth.monitor.z.node.countz.node.z.bytes.localz.bytes.totalz	net.countznet.z	.rx.bytesz.rx.dropz.rx.errsz.rx.pktsz	.tx.bytesz.tx.dropz.tx.errsz.tx.pktszperf.alignment_faultszperf.branch_instructionszperf.branch_misseszperf.bus_cycleszperf.cache_misseszperf.cache_referenceszperf.cmtzperf.context_switcheszperf.cpu_clockzperf.cpu_cycleszperf.cpu_migrationszperf.emulation_faultszperf.instructionsz	perf.mbmlz	perf.mbmtzperf.page_faultszperf.page_faults_majzperf.page_faults_minzperf.ref_cpu_cycleszperf.stalled_cycles_backendzperf.stalled_cycles_frontendzperf.task_clockzstate.reasonzstate.statezvcpu.currentzvcpu.maximumzvcpu.z.delayz.haltedz.statez.timez.waitzvm.zblkdeviotune.diskzblkdeviotune.group_namezblkdeviotune.read_bytes_seczblkdeviotune.read_bytes_sec_maxz&blkdeviotune.read_bytes_sec_max_lengthzblkdeviotune.read_iops_seczblkdeviotune.read_iops_sec_maxz%blkdeviotune.read_iops_sec_max_lengthzblkdeviotune.size_iops_seczblkdeviotune.total_bytes_secz blkdeviotune.total_bytes_sec_maxz'blkdeviotune.total_bytes_sec_max_lengthzblkdeviotune.total_iops_seczblkdeviotune.total_iops_sec_maxz&blkdeviotune.total_iops_sec_max_lengthzblkdeviotune.write_bytes_secz blkdeviotune.write_bytes_sec_maxz'blkdeviotune.write_bytes_sec_max_lengthzblkdeviotune.write_iops_seczblkdeviotune.write_iops_sec_maxz&blkdeviotune.write_iops_sec_max_lengthzcputune.cpu_shareszcputune.emulatorpinzcputune.emulator_periodzcputune.emulator_quotazcputune.global_periodzcputune.global_quotazcputune.iothreadpin%uzcputune.iothread_periodzcputune.iothread_quotazcputune.vcpupin%uzcputune.vcpu_periodzcputune.vcpu_quotazauto_converge.incrementzauto_converge.initialzbandwidth.avail.switchoverzbandwidth.postcopycompressionzcompression.mt.dthreadszcompression.mt.levelzcompression.mt.threadszcompression.xbzrle.cachezcompression.zlib.levelzcompression.zstd.leveldestination_namedestination_xml
disks_port	disks_urigraphics_urilisten_addressmigrate_disksmigrate_disks_detect_zeroeszparallel.connectionspersistent_xmlztls.destinationmigrate_uriidleintriowaitkernelr  utilizationshm_full_scansshm_merge_across_nodesshm_pages_sharedshm_pages_sharingshm_pages_to_scanshm_pages_unsharedshm_pages_volatileshm_sleep_millisecsbufferscachedfreer  cbitposz
cert-chainzcpu0-idzmax-es-guestsz
max-guestspdhzreduced-phys-bitsalignment_faultsbranch_instructionsbranch_misses
bus_cyclescache_missescache_referencescmtcontext_switches	cpu_clock
cpu_cyclescpu_migrationsemulation_faultsinstructionsmbmlmbmtpage_faultspage_faults_majpage_faults_minref_cpu_cyclesstalled_cycles_backendstalled_cycles_frontend
task_clockr  rj   (  r   ImportErrorlib_e
cygvirtmodcyg_erM   r  r   typingr   r   r   r   r   r	   r
   r   r   r   r   rN   _EventCB_EventAddHandleFunc_EventUpdateHandleFunc_EventRemoveHandleFunc_TimerCB_EventAddTimeoutFunc_EventUpdateTimeoutFunc_EventRemoveTimeoutFuncrQ  _BlkioParameter_MemoryParameter_SchedParameter_TypedParameterr   r   rU   r^   rc   rl   rw   r}   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   objectr   r  r+  r~  r  r  r   rq  r  r  r  rl  rk  r  VIR_DOMAIN_BLKIO_PARAM_INTVIR_DOMAIN_BLKIO_PARAM_UINTVIR_DOMAIN_BLKIO_PARAM_LLONGVIR_DOMAIN_BLKIO_PARAM_ULLONGVIR_DOMAIN_BLKIO_PARAM_DOUBLEVIR_DOMAIN_BLKIO_PARAM_BOOLEANVIR_CPU_COMPARE_ERRORVIR_CPU_COMPARE_INCOMPATIBLEVIR_CPU_COMPARE_IDENTICALVIR_CPU_COMPARE_SUPERSET(VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES#VIR_CONNECT_BASELINE_CPU_MIGRATABLEVIR_CONNECT_CLOSE_REASON_ERRORVIR_CONNECT_CLOSE_REASON_EOF"VIR_CONNECT_CLOSE_REASON_KEEPALIVEVIR_CONNECT_CLOSE_REASON_CLIENT)VIR_CONNECT_COMPARE_CPU_FAIL_INCOMPATIBLE$VIR_CONNECT_COMPARE_CPU_VALIDATE_XMLVIR_CRED_USERNAMEVIR_CRED_AUTHNAMEVIR_CRED_LANGUAGEVIR_CRED_CNONCEVIR_CRED_PASSPHRASEVIR_CRED_ECHOPROMPTVIR_CRED_NOECHOPROMPTVIR_CRED_REALMVIR_CRED_EXTERNAL7VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_REASON_UNKNOWN>VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_REASON_DOMAIN_STARTED7VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_REASON_CHANNEL8VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_STATE_CONNECTED;VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_STATE_DISCONNECTEDVIR_DOMAIN_BLOCK_JOB_COMPLETEDVIR_DOMAIN_BLOCK_JOB_FAILEDVIR_DOMAIN_BLOCK_JOB_CANCELEDVIR_DOMAIN_BLOCK_JOB_READY-VIR_DOMAIN_EVENT_DISK_CHANGE_MISSING_ON_START+VIR_DOMAIN_EVENT_DISK_DROP_MISSING_ON_STARTVIR_CONNECT_ROVIR_CONNECT_NO_ALIASES(VIR_CONNECT_GET_ALL_DOMAINS_STATS_ACTIVE*VIR_CONNECT_GET_ALL_DOMAINS_STATS_INACTIVE,VIR_CONNECT_GET_ALL_DOMAINS_STATS_PERSISTENT+VIR_CONNECT_GET_ALL_DOMAINS_STATS_TRANSIENT)VIR_CONNECT_GET_ALL_DOMAINS_STATS_RUNNING(VIR_CONNECT_GET_ALL_DOMAINS_STATS_PAUSED)VIR_CONNECT_GET_ALL_DOMAINS_STATS_SHUTOFF'VIR_CONNECT_GET_ALL_DOMAINS_STATS_OTHER(VIR_CONNECT_GET_ALL_DOMAINS_STATS_NOWAIT)VIR_CONNECT_GET_ALL_DOMAINS_STATS_BACKING/VIR_CONNECT_GET_ALL_DOMAINS_STATS_ENFORCE_STATS?VIR_CONNECT_GET_DOMAIN_CAPABILITIES_DISABLE_DEPRECATED_FEATURESVIR_CONNECT_LIST_DOMAINS_ACTIVE!VIR_CONNECT_LIST_DOMAINS_INACTIVE#VIR_CONNECT_LIST_DOMAINS_PERSISTENT"VIR_CONNECT_LIST_DOMAINS_TRANSIENT VIR_CONNECT_LIST_DOMAINS_RUNNINGVIR_CONNECT_LIST_DOMAINS_PAUSED VIR_CONNECT_LIST_DOMAINS_SHUTOFFVIR_CONNECT_LIST_DOMAINS_OTHER$VIR_CONNECT_LIST_DOMAINS_MANAGEDSAVE'VIR_CONNECT_LIST_DOMAINS_NO_MANAGEDSAVE"VIR_CONNECT_LIST_DOMAINS_AUTOSTART%VIR_CONNECT_LIST_DOMAINS_NO_AUTOSTART%VIR_CONNECT_LIST_DOMAINS_HAS_SNAPSHOT$VIR_CONNECT_LIST_DOMAINS_NO_SNAPSHOT'VIR_CONNECT_LIST_DOMAINS_HAS_CHECKPOINT&VIR_CONNECT_LIST_DOMAINS_NO_CHECKPOINT$VIR_CONNECT_LIST_INTERFACES_INACTIVE"VIR_CONNECT_LIST_INTERFACES_ACTIVE"VIR_CONNECT_LIST_NETWORKS_INACTIVE VIR_CONNECT_LIST_NETWORKS_ACTIVE$VIR_CONNECT_LIST_NETWORKS_PERSISTENT#VIR_CONNECT_LIST_NETWORKS_TRANSIENT#VIR_CONNECT_LIST_NETWORKS_AUTOSTART&VIR_CONNECT_LIST_NETWORKS_NO_AUTOSTART(VIR_CONNECT_LIST_NODE_DEVICES_CAP_SYSTEM)VIR_CONNECT_LIST_NODE_DEVICES_CAP_PCI_DEV)VIR_CONNECT_LIST_NODE_DEVICES_CAP_USB_DEV/VIR_CONNECT_LIST_NODE_DEVICES_CAP_USB_INTERFACE%VIR_CONNECT_LIST_NODE_DEVICES_CAP_NET+VIR_CONNECT_LIST_NODE_DEVICES_CAP_SCSI_HOST-VIR_CONNECT_LIST_NODE_DEVICES_CAP_SCSI_TARGET&VIR_CONNECT_LIST_NODE_DEVICES_CAP_SCSI)VIR_CONNECT_LIST_NODE_DEVICES_CAP_STORAGE)VIR_CONNECT_LIST_NODE_DEVICES_CAP_FC_HOST(VIR_CONNECT_LIST_NODE_DEVICES_CAP_VPORTS.VIR_CONNECT_LIST_NODE_DEVICES_CAP_SCSI_GENERIC%VIR_CONNECT_LIST_NODE_DEVICES_CAP_DRM,VIR_CONNECT_LIST_NODE_DEVICES_CAP_MDEV_TYPES&VIR_CONNECT_LIST_NODE_DEVICES_CAP_MDEV)VIR_CONNECT_LIST_NODE_DEVICES_CAP_CCW_DEV)VIR_CONNECT_LIST_NODE_DEVICES_CAP_CSS_DEV&VIR_CONNECT_LIST_NODE_DEVICES_CAP_VDPA)VIR_CONNECT_LIST_NODE_DEVICES_CAP_AP_CARD*VIR_CONNECT_LIST_NODE_DEVICES_CAP_AP_QUEUE+VIR_CONNECT_LIST_NODE_DEVICES_CAP_AP_MATRIX%VIR_CONNECT_LIST_NODE_DEVICES_CAP_VPD.VIR_CONNECT_LIST_NODE_DEVICES_CAP_CCWGROUP_DEV1VIR_CONNECT_LIST_NODE_DEVICES_CAP_CCWGROUP_MEMBER(VIR_CONNECT_LIST_NODE_DEVICES_PERSISTENT'VIR_CONNECT_LIST_NODE_DEVICES_TRANSIENT&VIR_CONNECT_LIST_NODE_DEVICES_INACTIVE$VIR_CONNECT_LIST_NODE_DEVICES_ACTIVE"VIR_CONNECT_LIST_SECRETS_EPHEMERAL%VIR_CONNECT_LIST_SECRETS_NO_EPHEMERAL VIR_CONNECT_LIST_SECRETS_PRIVATE#VIR_CONNECT_LIST_SECRETS_NO_PRIVATE'VIR_CONNECT_LIST_STORAGE_POOLS_INACTIVE%VIR_CONNECT_LIST_STORAGE_POOLS_ACTIVE)VIR_CONNECT_LIST_STORAGE_POOLS_PERSISTENT(VIR_CONNECT_LIST_STORAGE_POOLS_TRANSIENT(VIR_CONNECT_LIST_STORAGE_POOLS_AUTOSTART+VIR_CONNECT_LIST_STORAGE_POOLS_NO_AUTOSTART"VIR_CONNECT_LIST_STORAGE_POOLS_DIR!VIR_CONNECT_LIST_STORAGE_POOLS_FS$VIR_CONNECT_LIST_STORAGE_POOLS_NETFS&VIR_CONNECT_LIST_STORAGE_POOLS_LOGICAL#VIR_CONNECT_LIST_STORAGE_POOLS_DISK$VIR_CONNECT_LIST_STORAGE_POOLS_ISCSI#VIR_CONNECT_LIST_STORAGE_POOLS_SCSI$VIR_CONNECT_LIST_STORAGE_POOLS_MPATH"VIR_CONNECT_LIST_STORAGE_POOLS_RBD'VIR_CONNECT_LIST_STORAGE_POOLS_SHEEPDOG&VIR_CONNECT_LIST_STORAGE_POOLS_GLUSTER"VIR_CONNECT_LIST_STORAGE_POOLS_ZFS'VIR_CONNECT_LIST_STORAGE_POOLS_VSTORAGE+VIR_CONNECT_LIST_STORAGE_POOLS_ISCSI_DIRECTVIR_DOMAIN_ABORT_JOB_POSTCOPY'VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_BLOCK)VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_DEFAULT(VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_NOWAIT)VIR_DOMAIN_AUTHORIZED_SSH_KEYS_SET_APPEND)VIR_DOMAIN_AUTHORIZED_SSH_KEYS_SET_REMOVE&VIR_DOMAIN_BACKUP_BEGIN_REUSE_EXTERNALVIR_DOMAIN_BLOCK_COMMIT_SHALLOWVIR_DOMAIN_BLOCK_COMMIT_DELETEVIR_DOMAIN_BLOCK_COMMIT_ACTIVE VIR_DOMAIN_BLOCK_COMMIT_RELATIVE'VIR_DOMAIN_BLOCK_COMMIT_BANDWIDTH_BYTESVIR_DOMAIN_BLOCK_COPY_SHALLOWVIR_DOMAIN_BLOCK_COPY_REUSE_EXT#VIR_DOMAIN_BLOCK_COPY_TRANSIENT_JOB(VIR_DOMAIN_BLOCK_COPY_SYNCHRONOUS_WRITES VIR_DOMAIN_BLOCK_JOB_ABORT_ASYNC VIR_DOMAIN_BLOCK_JOB_ABORT_PIVOT)VIR_DOMAIN_BLOCK_JOB_INFO_BANDWIDTH_BYTES*VIR_DOMAIN_BLOCK_JOB_SPEED_BANDWIDTH_BYTES!VIR_DOMAIN_BLOCK_JOB_TYPE_UNKNOWNVIR_DOMAIN_BLOCK_JOB_TYPE_PULLVIR_DOMAIN_BLOCK_JOB_TYPE_COPY VIR_DOMAIN_BLOCK_JOB_TYPE_COMMIT'VIR_DOMAIN_BLOCK_JOB_TYPE_ACTIVE_COMMIT VIR_DOMAIN_BLOCK_JOB_TYPE_BACKUP%VIR_DOMAIN_BLOCK_PULL_BANDWIDTH_BYTESVIR_DOMAIN_BLOCK_REBASE_SHALLOW!VIR_DOMAIN_BLOCK_REBASE_REUSE_EXT VIR_DOMAIN_BLOCK_REBASE_COPY_RAWVIR_DOMAIN_BLOCK_REBASE_COPY VIR_DOMAIN_BLOCK_REBASE_RELATIVE VIR_DOMAIN_BLOCK_REBASE_COPY_DEV'VIR_DOMAIN_BLOCK_REBASE_BANDWIDTH_BYTESVIR_DOMAIN_BLOCK_RESIZE_BYTES VIR_DOMAIN_BLOCK_RESIZE_CAPACITYVIR_DOMAIN_BLOCKED_UNKNOWNVIR_DOMAIN_CHANNEL_FORCE%VIR_DOMAIN_CHECKPOINT_CREATE_REDEFINE$VIR_DOMAIN_CHECKPOINT_CREATE_QUIESCE.VIR_DOMAIN_CHECKPOINT_CREATE_REDEFINE_VALIDATE%VIR_DOMAIN_CHECKPOINT_DELETE_CHILDREN*VIR_DOMAIN_CHECKPOINT_DELETE_METADATA_ONLY*VIR_DOMAIN_CHECKPOINT_DELETE_CHILDREN_ONLY&VIR_DOMAIN_CHECKPOINT_LIST_DESCENDANTS VIR_DOMAIN_CHECKPOINT_LIST_ROOTS&VIR_DOMAIN_CHECKPOINT_LIST_TOPOLOGICAL!VIR_DOMAIN_CHECKPOINT_LIST_LEAVES$VIR_DOMAIN_CHECKPOINT_LIST_NO_LEAVES VIR_DOMAIN_CHECKPOINT_XML_SECURE#VIR_DOMAIN_CHECKPOINT_XML_NO_DOMAINVIR_DOMAIN_CHECKPOINT_XML_SIZEVIR_DOMAIN_CONSOLE_FORCEVIR_DOMAIN_CONSOLE_SAFE$VIR_DOMAIN_CONTROL_ERROR_REASON_NONE'VIR_DOMAIN_CONTROL_ERROR_REASON_UNKNOWN'VIR_DOMAIN_CONTROL_ERROR_REASON_MONITOR(VIR_DOMAIN_CONTROL_ERROR_REASON_INTERNALVIR_DOMAIN_CONTROL_OKVIR_DOMAIN_CONTROL_JOBVIR_DOMAIN_CONTROL_OCCUPIEDVIR_DOMAIN_CONTROL_ERRORVIR_DUMP_CRASHVIR_DUMP_LIVEVIR_DUMP_BYPASS_CACHEVIR_DUMP_RESETVIR_DUMP_MEMORY_ONLYVIR_DOMAIN_CORE_DUMP_FORMAT_RAW&VIR_DOMAIN_CORE_DUMP_FORMAT_KDUMP_ZLIB%VIR_DOMAIN_CORE_DUMP_FORMAT_KDUMP_LZO(VIR_DOMAIN_CORE_DUMP_FORMAT_KDUMP_SNAPPY#VIR_DOMAIN_CORE_DUMP_FORMAT_WIN_DMPVIR_DOMAIN_CRASHED_UNKNOWNVIR_DOMAIN_CRASHED_PANICKEDVIR_DOMAIN_NONEVIR_DOMAIN_START_PAUSEDVIR_DOMAIN_START_AUTODESTROYVIR_DOMAIN_START_BYPASS_CACHEVIR_DOMAIN_START_FORCE_BOOTVIR_DOMAIN_START_VALIDATEVIR_DOMAIN_START_RESET_NVRAMVIR_DOMAIN_DEFINE_VALIDATEVIR_DOMAIN_DESTROY_DEFAULTVIR_DOMAIN_DESTROY_GRACEFULVIR_DOMAIN_DESTROY_REMOVE_LOGS VIR_DOMAIN_DEVICE_MODIFY_CURRENTVIR_DOMAIN_DEVICE_MODIFY_LIVEVIR_DOMAIN_DEVICE_MODIFY_CONFIGVIR_DOMAIN_DEVICE_MODIFY_FORCE'VIR_DOMAIN_DIRTYRATE_MODE_PAGE_SAMPLING&VIR_DOMAIN_DIRTYRATE_MODE_DIRTY_BITMAP$VIR_DOMAIN_DIRTYRATE_MODE_DIRTY_RINGVIR_DOMAIN_DIRTYRATE_UNSTARTEDVIR_DOMAIN_DIRTYRATE_MEASURINGVIR_DOMAIN_DIRTYRATE_MEASUREDVIR_DOMAIN_DISK_ERROR_NONEVIR_DOMAIN_DISK_ERROR_UNSPECVIR_DOMAIN_DISK_ERROR_NO_SPACE!VIR_DOMAIN_EVENT_CRASHED_PANICKED$VIR_DOMAIN_EVENT_CRASHED_CRASHLOADEDVIR_DOMAIN_EVENT_DEFINED_ADDED VIR_DOMAIN_EVENT_DEFINED_UPDATED VIR_DOMAIN_EVENT_DEFINED_RENAMED&VIR_DOMAIN_EVENT_DEFINED_FROM_SNAPSHOT&VIR_DOMAIN_EVENT_GRAPHICS_ADDRESS_IPV4&VIR_DOMAIN_EVENT_GRAPHICS_ADDRESS_IPV6&VIR_DOMAIN_EVENT_GRAPHICS_ADDRESS_UNIX!VIR_DOMAIN_EVENT_GRAPHICS_CONNECT$VIR_DOMAIN_EVENT_GRAPHICS_INITIALIZE$VIR_DOMAIN_EVENT_GRAPHICS_DISCONNECTVIR_DOMAIN_EVENT_ID_LIFECYCLEVIR_DOMAIN_EVENT_ID_REBOOTVIR_DOMAIN_EVENT_ID_RTC_CHANGEVIR_DOMAIN_EVENT_ID_WATCHDOGVIR_DOMAIN_EVENT_ID_IO_ERRORVIR_DOMAIN_EVENT_ID_GRAPHICS#VIR_DOMAIN_EVENT_ID_IO_ERROR_REASON!VIR_DOMAIN_EVENT_ID_CONTROL_ERRORVIR_DOMAIN_EVENT_ID_BLOCK_JOBVIR_DOMAIN_EVENT_ID_DISK_CHANGEVIR_DOMAIN_EVENT_ID_TRAY_CHANGEVIR_DOMAIN_EVENT_ID_PMWAKEUPVIR_DOMAIN_EVENT_ID_PMSUSPEND"VIR_DOMAIN_EVENT_ID_BALLOON_CHANGE"VIR_DOMAIN_EVENT_ID_PMSUSPEND_DISK"VIR_DOMAIN_EVENT_ID_DEVICE_REMOVEDVIR_DOMAIN_EVENT_ID_BLOCK_JOB_2VIR_DOMAIN_EVENT_ID_TUNABLE#VIR_DOMAIN_EVENT_ID_AGENT_LIFECYCLE VIR_DOMAIN_EVENT_ID_DEVICE_ADDED'VIR_DOMAIN_EVENT_ID_MIGRATION_ITERATION!VIR_DOMAIN_EVENT_ID_JOB_COMPLETED)VIR_DOMAIN_EVENT_ID_DEVICE_REMOVAL_FAILED#VIR_DOMAIN_EVENT_ID_METADATA_CHANGE#VIR_DOMAIN_EVENT_ID_BLOCK_THRESHOLD"VIR_DOMAIN_EVENT_ID_MEMORY_FAILURE-VIR_DOMAIN_EVENT_ID_MEMORY_DEVICE_SIZE_CHANGE"VIR_DOMAIN_EVENT_ID_NIC_MAC_CHANGEVIR_DOMAIN_EVENT_IO_ERROR_NONEVIR_DOMAIN_EVENT_IO_ERROR_PAUSE VIR_DOMAIN_EVENT_IO_ERROR_REPORT#VIR_DOMAIN_EVENT_PMSUSPENDED_MEMORY!VIR_DOMAIN_EVENT_PMSUSPENDED_DISK!VIR_DOMAIN_EVENT_RESUMED_UNPAUSED!VIR_DOMAIN_EVENT_RESUMED_MIGRATED&VIR_DOMAIN_EVENT_RESUMED_FROM_SNAPSHOT!VIR_DOMAIN_EVENT_RESUMED_POSTCOPY(VIR_DOMAIN_EVENT_RESUMED_POSTCOPY_FAILED"VIR_DOMAIN_EVENT_SHUTDOWN_FINISHEDVIR_DOMAIN_EVENT_SHUTDOWN_GUESTVIR_DOMAIN_EVENT_SHUTDOWN_HOSTVIR_DOMAIN_EVENT_STARTED_BOOTED!VIR_DOMAIN_EVENT_STARTED_MIGRATED!VIR_DOMAIN_EVENT_STARTED_RESTORED&VIR_DOMAIN_EVENT_STARTED_FROM_SNAPSHOTVIR_DOMAIN_EVENT_STARTED_WAKEUP!VIR_DOMAIN_EVENT_STOPPED_SHUTDOWN"VIR_DOMAIN_EVENT_STOPPED_DESTROYED VIR_DOMAIN_EVENT_STOPPED_CRASHED!VIR_DOMAIN_EVENT_STOPPED_MIGRATEDVIR_DOMAIN_EVENT_STOPPED_SAVEDVIR_DOMAIN_EVENT_STOPPED_FAILED&VIR_DOMAIN_EVENT_STOPPED_FROM_SNAPSHOT!VIR_DOMAIN_EVENT_SUSPENDED_PAUSED#VIR_DOMAIN_EVENT_SUSPENDED_MIGRATED"VIR_DOMAIN_EVENT_SUSPENDED_IOERROR#VIR_DOMAIN_EVENT_SUSPENDED_WATCHDOG#VIR_DOMAIN_EVENT_SUSPENDED_RESTORED(VIR_DOMAIN_EVENT_SUSPENDED_FROM_SNAPSHOT$VIR_DOMAIN_EVENT_SUSPENDED_API_ERROR#VIR_DOMAIN_EVENT_SUSPENDED_POSTCOPY*VIR_DOMAIN_EVENT_SUSPENDED_POSTCOPY_FAILED!VIR_DOMAIN_EVENT_TRAY_CHANGE_OPEN"VIR_DOMAIN_EVENT_TRAY_CHANGE_CLOSEVIR_DOMAIN_EVENT_DEFINEDVIR_DOMAIN_EVENT_UNDEFINEDVIR_DOMAIN_EVENT_STARTEDVIR_DOMAIN_EVENT_SUSPENDEDVIR_DOMAIN_EVENT_RESUMEDVIR_DOMAIN_EVENT_STOPPEDVIR_DOMAIN_EVENT_SHUTDOWNVIR_DOMAIN_EVENT_PMSUSPENDEDVIR_DOMAIN_EVENT_CRASHED"VIR_DOMAIN_EVENT_UNDEFINED_REMOVED"VIR_DOMAIN_EVENT_UNDEFINED_RENAMEDVIR_DOMAIN_EVENT_WATCHDOG_NONEVIR_DOMAIN_EVENT_WATCHDOG_PAUSEVIR_DOMAIN_EVENT_WATCHDOG_RESET"VIR_DOMAIN_EVENT_WATCHDOG_POWEROFF"VIR_DOMAIN_EVENT_WATCHDOG_SHUTDOWNVIR_DOMAIN_EVENT_WATCHDOG_DEBUG#VIR_DOMAIN_EVENT_WATCHDOG_INJECTNMI(VIR_DOMAIN_FD_ASSOCIATE_SECLABEL_RESTORE)VIR_DOMAIN_FD_ASSOCIATE_SECLABEL_WRITABLEVIR_DOMAIN_GET_HOSTNAME_LEASEVIR_DOMAIN_GET_HOSTNAME_AGENTVIR_DOMAIN_JOB_STATS_COMPLETED#VIR_DOMAIN_JOB_STATS_KEEP_COMPLETED#VIR_DOMAIN_GRAPHICS_RELOAD_TYPE_ANY#VIR_DOMAIN_GRAPHICS_RELOAD_TYPE_VNCVIR_DOMAIN_GUEST_INFO_USERSVIR_DOMAIN_GUEST_INFO_OSVIR_DOMAIN_GUEST_INFO_TIMEZONEVIR_DOMAIN_GUEST_INFO_HOSTNAME VIR_DOMAIN_GUEST_INFO_FILESYSTEMVIR_DOMAIN_GUEST_INFO_DISKS VIR_DOMAIN_GUEST_INFO_INTERFACESVIR_DOMAIN_GUEST_INFO_LOAD(VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_LEASE(VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_AGENT&VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_ARP VIR_DOMAIN_JOB_OPERATION_UNKNOWNVIR_DOMAIN_JOB_OPERATION_STARTVIR_DOMAIN_JOB_OPERATION_SAVE VIR_DOMAIN_JOB_OPERATION_RESTORE%VIR_DOMAIN_JOB_OPERATION_MIGRATION_IN&VIR_DOMAIN_JOB_OPERATION_MIGRATION_OUT!VIR_DOMAIN_JOB_OPERATION_SNAPSHOT(VIR_DOMAIN_JOB_OPERATION_SNAPSHOT_REVERTVIR_DOMAIN_JOB_OPERATION_DUMPVIR_DOMAIN_JOB_OPERATION_BACKUP(VIR_DOMAIN_JOB_OPERATION_SNAPSHOT_DELETEVIR_DOMAIN_JOB_NONEVIR_DOMAIN_JOB_BOUNDEDVIR_DOMAIN_JOB_UNBOUNDEDVIR_DOMAIN_JOB_COMPLETEDVIR_DOMAIN_JOB_FAILEDVIR_DOMAIN_JOB_CANCELLEDVIR_DOMAIN_LIFECYCLE_POWEROFFVIR_DOMAIN_LIFECYCLE_REBOOTVIR_DOMAIN_LIFECYCLE_CRASH#VIR_DOMAIN_LIFECYCLE_ACTION_DESTROY#VIR_DOMAIN_LIFECYCLE_ACTION_RESTART*VIR_DOMAIN_LIFECYCLE_ACTION_RESTART_RENAME$VIR_DOMAIN_LIFECYCLE_ACTION_PRESERVE,VIR_DOMAIN_LIFECYCLE_ACTION_COREDUMP_DESTROY,VIR_DOMAIN_LIFECYCLE_ACTION_COREDUMP_RESTART-VIR_DOMAIN_EVENT_MEMORY_FAILURE_ACTION_IGNORE-VIR_DOMAIN_EVENT_MEMORY_FAILURE_ACTION_INJECT,VIR_DOMAIN_EVENT_MEMORY_FAILURE_ACTION_FATAL,VIR_DOMAIN_EVENT_MEMORY_FAILURE_ACTION_RESET)VIR_DOMAIN_MEMORY_FAILURE_ACTION_REQUIRED#VIR_DOMAIN_MEMORY_FAILURE_RECURSIVE4VIR_DOMAIN_EVENT_MEMORY_FAILURE_RECIPIENT_HYPERVISOR/VIR_DOMAIN_EVENT_MEMORY_FAILURE_RECIPIENT_GUESTVIR_MEMORY_VIRTUALVIR_MEMORY_PHYSICALVIR_DOMAIN_MEM_CURRENTVIR_DOMAIN_MEM_LIVEVIR_DOMAIN_MEM_CONFIGVIR_DOMAIN_MEM_MAXIMUMVIR_DOMAIN_MEMORY_STAT_SWAP_INVIR_DOMAIN_MEMORY_STAT_SWAP_OUT"VIR_DOMAIN_MEMORY_STAT_MAJOR_FAULT"VIR_DOMAIN_MEMORY_STAT_MINOR_FAULTVIR_DOMAIN_MEMORY_STAT_UNUSED VIR_DOMAIN_MEMORY_STAT_AVAILABLE%VIR_DOMAIN_MEMORY_STAT_ACTUAL_BALLOONVIR_DOMAIN_MEMORY_STAT_RSSVIR_DOMAIN_MEMORY_STAT_USABLE"VIR_DOMAIN_MEMORY_STAT_LAST_UPDATE"VIR_DOMAIN_MEMORY_STAT_DISK_CACHES&VIR_DOMAIN_MEMORY_STAT_HUGETLB_PGALLOC%VIR_DOMAIN_MEMORY_STAT_HUGETLB_PGFAILVIR_DOMAIN_MEMORY_STAT_LASTVIR_DOMAIN_MEMORY_STAT_NRVIR_DOMAIN_MESSAGE_DEPRECATIONVIR_DOMAIN_MESSAGE_TAINTINGVIR_DOMAIN_MESSAGE_IOERRORSVIR_DOMAIN_METADATA_DESCRIPTIONVIR_DOMAIN_METADATA_TITLEVIR_DOMAIN_METADATA_ELEMENTVIR_MIGRATE_LIVEVIR_MIGRATE_PEER2PEERVIR_MIGRATE_TUNNELLEDVIR_MIGRATE_PERSIST_DESTVIR_MIGRATE_UNDEFINE_SOURCEVIR_MIGRATE_PAUSEDVIR_MIGRATE_NON_SHARED_DISKVIR_MIGRATE_NON_SHARED_INCVIR_MIGRATE_CHANGE_PROTECTIONVIR_MIGRATE_UNSAFEVIR_MIGRATE_OFFLINEVIR_MIGRATE_COMPRESSEDVIR_MIGRATE_ABORT_ON_ERRORVIR_MIGRATE_AUTO_CONVERGEVIR_MIGRATE_RDMA_PIN_ALLVIR_MIGRATE_POSTCOPYVIR_MIGRATE_TLSVIR_MIGRATE_PARALLEL)VIR_MIGRATE_NON_SHARED_SYNCHRONOUS_WRITESVIR_MIGRATE_POSTCOPY_RESUMEVIR_MIGRATE_ZEROCOPY%VIR_DOMAIN_MIGRATE_MAX_SPEED_POSTCOPYVIR_DOMAIN_AFFECT_CURRENTVIR_DOMAIN_AFFECT_LIVEVIR_DOMAIN_AFFECT_CONFIGVIR_DOMAIN_NOSTATE_UNKNOWNVIR_DOMAIN_NUMATUNE_MEM_STRICT!VIR_DOMAIN_NUMATUNE_MEM_PREFERRED"VIR_DOMAIN_NUMATUNE_MEM_INTERLEAVE#VIR_DOMAIN_NUMATUNE_MEM_RESTRICTIVE!VIR_DOMAIN_OPEN_GRAPHICS_SKIPAUTH#VIR_DOMAIN_PMSUSPENDED_DISK_UNKNOWNVIR_DOMAIN_PMSUSPENDED_UNKNOWNVIR_DOMAIN_PAUSED_UNKNOWNVIR_DOMAIN_PAUSED_USERVIR_DOMAIN_PAUSED_MIGRATIONVIR_DOMAIN_PAUSED_SAVEVIR_DOMAIN_PAUSED_DUMPVIR_DOMAIN_PAUSED_IOERRORVIR_DOMAIN_PAUSED_WATCHDOGVIR_DOMAIN_PAUSED_FROM_SNAPSHOTVIR_DOMAIN_PAUSED_SHUTTING_DOWNVIR_DOMAIN_PAUSED_SNAPSHOTVIR_DOMAIN_PAUSED_CRASHEDVIR_DOMAIN_PAUSED_STARTING_UPVIR_DOMAIN_PAUSED_POSTCOPY!VIR_DOMAIN_PAUSED_POSTCOPY_FAILEDVIR_DOMAIN_PAUSED_API_ERRORVIR_DOMAIN_PROCESS_SIGNAL_NOPVIR_DOMAIN_PROCESS_SIGNAL_HUPVIR_DOMAIN_PROCESS_SIGNAL_INTVIR_DOMAIN_PROCESS_SIGNAL_QUITVIR_DOMAIN_PROCESS_SIGNAL_ILLVIR_DOMAIN_PROCESS_SIGNAL_TRAPVIR_DOMAIN_PROCESS_SIGNAL_ABRTVIR_DOMAIN_PROCESS_SIGNAL_BUSVIR_DOMAIN_PROCESS_SIGNAL_FPEVIR_DOMAIN_PROCESS_SIGNAL_KILLVIR_DOMAIN_PROCESS_SIGNAL_USR1VIR_DOMAIN_PROCESS_SIGNAL_SEGVVIR_DOMAIN_PROCESS_SIGNAL_USR2VIR_DOMAIN_PROCESS_SIGNAL_PIPEVIR_DOMAIN_PROCESS_SIGNAL_ALRMVIR_DOMAIN_PROCESS_SIGNAL_TERM VIR_DOMAIN_PROCESS_SIGNAL_STKFLTVIR_DOMAIN_PROCESS_SIGNAL_CHLDVIR_DOMAIN_PROCESS_SIGNAL_CONTVIR_DOMAIN_PROCESS_SIGNAL_STOPVIR_DOMAIN_PROCESS_SIGNAL_TSTPVIR_DOMAIN_PROCESS_SIGNAL_TTINVIR_DOMAIN_PROCESS_SIGNAL_TTOUVIR_DOMAIN_PROCESS_SIGNAL_URGVIR_DOMAIN_PROCESS_SIGNAL_XCPUVIR_DOMAIN_PROCESS_SIGNAL_XFSZ VIR_DOMAIN_PROCESS_SIGNAL_VTALRMVIR_DOMAIN_PROCESS_SIGNAL_PROFVIR_DOMAIN_PROCESS_SIGNAL_WINCHVIR_DOMAIN_PROCESS_SIGNAL_POLLVIR_DOMAIN_PROCESS_SIGNAL_PWRVIR_DOMAIN_PROCESS_SIGNAL_SYSVIR_DOMAIN_PROCESS_SIGNAL_RT0VIR_DOMAIN_PROCESS_SIGNAL_RT1VIR_DOMAIN_PROCESS_SIGNAL_RT2VIR_DOMAIN_PROCESS_SIGNAL_RT3VIR_DOMAIN_PROCESS_SIGNAL_RT4VIR_DOMAIN_PROCESS_SIGNAL_RT5VIR_DOMAIN_PROCESS_SIGNAL_RT6VIR_DOMAIN_PROCESS_SIGNAL_RT7VIR_DOMAIN_PROCESS_SIGNAL_RT8VIR_DOMAIN_PROCESS_SIGNAL_RT9VIR_DOMAIN_PROCESS_SIGNAL_RT10VIR_DOMAIN_PROCESS_SIGNAL_RT11VIR_DOMAIN_PROCESS_SIGNAL_RT12VIR_DOMAIN_PROCESS_SIGNAL_RT13VIR_DOMAIN_PROCESS_SIGNAL_RT14VIR_DOMAIN_PROCESS_SIGNAL_RT15VIR_DOMAIN_PROCESS_SIGNAL_RT16VIR_DOMAIN_PROCESS_SIGNAL_RT17VIR_DOMAIN_PROCESS_SIGNAL_RT18VIR_DOMAIN_PROCESS_SIGNAL_RT19VIR_DOMAIN_PROCESS_SIGNAL_RT20VIR_DOMAIN_PROCESS_SIGNAL_RT21VIR_DOMAIN_PROCESS_SIGNAL_RT22VIR_DOMAIN_PROCESS_SIGNAL_RT23VIR_DOMAIN_PROCESS_SIGNAL_RT24VIR_DOMAIN_PROCESS_SIGNAL_RT25VIR_DOMAIN_PROCESS_SIGNAL_RT26VIR_DOMAIN_PROCESS_SIGNAL_RT27VIR_DOMAIN_PROCESS_SIGNAL_RT28VIR_DOMAIN_PROCESS_SIGNAL_RT29VIR_DOMAIN_PROCESS_SIGNAL_RT30VIR_DOMAIN_PROCESS_SIGNAL_RT31VIR_DOMAIN_PROCESS_SIGNAL_RT32VIR_DOMAIN_REBOOT_DEFAULT VIR_DOMAIN_REBOOT_ACPI_POWER_BTNVIR_DOMAIN_REBOOT_GUEST_AGENTVIR_DOMAIN_REBOOT_INITCTLVIR_DOMAIN_REBOOT_SIGNALVIR_DOMAIN_REBOOT_PARAVIRTVIR_DOMAIN_RUNNING_UNKNOWNVIR_DOMAIN_RUNNING_BOOTEDVIR_DOMAIN_RUNNING_MIGRATEDVIR_DOMAIN_RUNNING_RESTORED VIR_DOMAIN_RUNNING_FROM_SNAPSHOTVIR_DOMAIN_RUNNING_UNPAUSED%VIR_DOMAIN_RUNNING_MIGRATION_CANCELED VIR_DOMAIN_RUNNING_SAVE_CANCELEDVIR_DOMAIN_RUNNING_WAKEUPVIR_DOMAIN_RUNNING_CRASHEDVIR_DOMAIN_RUNNING_POSTCOPY"VIR_DOMAIN_RUNNING_POSTCOPY_FAILED VIR_DOMAIN_SAVE_IMAGE_XML_SECUREVIR_DOMAIN_SAVE_BYPASS_CACHEVIR_DOMAIN_SAVE_RUNNINGVIR_DOMAIN_SAVE_PAUSEDVIR_DOMAIN_SAVE_RESET_NVRAMVIR_DOMAIN_TIME_SYNCVIR_DOMAIN_PASSWORD_ENCRYPTEDVIR_DOMAIN_SHUTDOWN_DEFAULT"VIR_DOMAIN_SHUTDOWN_ACPI_POWER_BTNVIR_DOMAIN_SHUTDOWN_GUEST_AGENTVIR_DOMAIN_SHUTDOWN_INITCTLVIR_DOMAIN_SHUTDOWN_SIGNALVIR_DOMAIN_SHUTDOWN_PARAVIRTVIR_DOMAIN_SHUTDOWN_UNKNOWNVIR_DOMAIN_SHUTDOWN_USERVIR_DOMAIN_SHUTOFF_UNKNOWNVIR_DOMAIN_SHUTOFF_SHUTDOWNVIR_DOMAIN_SHUTOFF_DESTROYEDVIR_DOMAIN_SHUTOFF_CRASHEDVIR_DOMAIN_SHUTOFF_MIGRATEDVIR_DOMAIN_SHUTOFF_SAVEDVIR_DOMAIN_SHUTOFF_FAILED VIR_DOMAIN_SHUTOFF_FROM_SNAPSHOTVIR_DOMAIN_SHUTOFF_DAEMON#VIR_DOMAIN_SNAPSHOT_CREATE_REDEFINE"VIR_DOMAIN_SNAPSHOT_CREATE_CURRENT&VIR_DOMAIN_SNAPSHOT_CREATE_NO_METADATAVIR_DOMAIN_SNAPSHOT_CREATE_HALT$VIR_DOMAIN_SNAPSHOT_CREATE_DISK_ONLY$VIR_DOMAIN_SNAPSHOT_CREATE_REUSE_EXT"VIR_DOMAIN_SNAPSHOT_CREATE_QUIESCE!VIR_DOMAIN_SNAPSHOT_CREATE_ATOMICVIR_DOMAIN_SNAPSHOT_CREATE_LIVE#VIR_DOMAIN_SNAPSHOT_CREATE_VALIDATE#VIR_DOMAIN_SNAPSHOT_DELETE_CHILDREN(VIR_DOMAIN_SNAPSHOT_DELETE_METADATA_ONLY(VIR_DOMAIN_SNAPSHOT_DELETE_CHILDREN_ONLY$VIR_DOMAIN_SNAPSHOT_LIST_DESCENDANTSVIR_DOMAIN_SNAPSHOT_LIST_ROOTS!VIR_DOMAIN_SNAPSHOT_LIST_METADATAVIR_DOMAIN_SNAPSHOT_LIST_LEAVES"VIR_DOMAIN_SNAPSHOT_LIST_NO_LEAVES$VIR_DOMAIN_SNAPSHOT_LIST_NO_METADATA!VIR_DOMAIN_SNAPSHOT_LIST_INACTIVEVIR_DOMAIN_SNAPSHOT_LIST_ACTIVE"VIR_DOMAIN_SNAPSHOT_LIST_DISK_ONLY!VIR_DOMAIN_SNAPSHOT_LIST_INTERNAL!VIR_DOMAIN_SNAPSHOT_LIST_EXTERNAL$VIR_DOMAIN_SNAPSHOT_LIST_TOPOLOGICAL"VIR_DOMAIN_SNAPSHOT_REVERT_RUNNING!VIR_DOMAIN_SNAPSHOT_REVERT_PAUSED VIR_DOMAIN_SNAPSHOT_REVERT_FORCE&VIR_DOMAIN_SNAPSHOT_REVERT_RESET_NVRAMVIR_DOMAIN_SNAPSHOT_XML_SECUREVIR_DOMAIN_NOSTATEVIR_DOMAIN_RUNNINGVIR_DOMAIN_BLOCKEDVIR_DOMAIN_PAUSEDVIR_DOMAIN_SHUTDOWNVIR_DOMAIN_SHUTOFFVIR_DOMAIN_CRASHEDVIR_DOMAIN_PMSUSPENDEDVIR_DOMAIN_STATS_STATEVIR_DOMAIN_STATS_CPU_TOTALVIR_DOMAIN_STATS_BALLOONVIR_DOMAIN_STATS_VCPUVIR_DOMAIN_STATS_INTERFACEVIR_DOMAIN_STATS_BLOCKVIR_DOMAIN_STATS_PERFVIR_DOMAIN_STATS_IOTHREADVIR_DOMAIN_STATS_MEMORYVIR_DOMAIN_STATS_DIRTYRATEVIR_DOMAIN_STATS_VM VIR_DOMAIN_UNDEFINE_MANAGED_SAVE&VIR_DOMAIN_UNDEFINE_SNAPSHOTS_METADATAVIR_DOMAIN_UNDEFINE_NVRAMVIR_DOMAIN_UNDEFINE_KEEP_NVRAM(VIR_DOMAIN_UNDEFINE_CHECKPOINTS_METADATAVIR_DOMAIN_UNDEFINE_TPMVIR_DOMAIN_UNDEFINE_KEEP_TPMVIR_DOMAIN_VCPU_CURRENTVIR_DOMAIN_VCPU_LIVEVIR_DOMAIN_VCPU_CONFIGVIR_DOMAIN_VCPU_MAXIMUMVIR_DOMAIN_VCPU_GUESTVIR_DOMAIN_VCPU_HOTPLUGGABLEVIR_DOMAIN_XML_SECUREVIR_DOMAIN_XML_INACTIVEVIR_DOMAIN_XML_UPDATE_CPUVIR_DOMAIN_XML_MIGRATABLEVIR_FROM_NONEVIR_FROM_XENVIR_FROM_XENDVIR_FROM_XENSTOREVIR_FROM_SEXPRVIR_FROM_XMLVIR_FROM_DOMVIR_FROM_RPCVIR_FROM_PROXYVIR_FROM_CONFVIR_FROM_QEMUVIR_FROM_NETVIR_FROM_TESTVIR_FROM_REMOTEVIR_FROM_OPENVZVIR_FROM_XENXMVIR_FROM_STATS_LINUXVIR_FROM_LXCVIR_FROM_STORAGEVIR_FROM_NETWORKVIR_FROM_DOMAINVIR_FROM_UMLVIR_FROM_NODEDEVVIR_FROM_XEN_INOTIFYVIR_FROM_SECURITYVIR_FROM_VBOXVIR_FROM_INTERFACEVIR_FROM_ONEVIR_FROM_ESXVIR_FROM_PHYPVIR_FROM_SECRETVIR_FROM_CPUVIR_FROM_XENAPIVIR_FROM_NWFILTERVIR_FROM_HOOKVIR_FROM_DOMAIN_SNAPSHOTVIR_FROM_AUDITVIR_FROM_SYSINFOVIR_FROM_STREAMSVIR_FROM_VMWAREVIR_FROM_EVENTVIR_FROM_LIBXLVIR_FROM_LOCKINGVIR_FROM_HYPERVVIR_FROM_CAPABILITIESVIR_FROM_URIVIR_FROM_AUTHVIR_FROM_DBUSVIR_FROM_PARALLELSVIR_FROM_DEVICEVIR_FROM_SSHVIR_FROM_LOCKSPACEVIR_FROM_INITCTLVIR_FROM_IDENTITYVIR_FROM_CGROUPVIR_FROM_ACCESSVIR_FROM_SYSTEMDVIR_FROM_BHYVEVIR_FROM_CRYPTOVIR_FROM_FIREWALLVIR_FROM_POLKITVIR_FROM_THREADVIR_FROM_ADMINVIR_FROM_LOGGINGVIR_FROM_XENXLVIR_FROM_PERFVIR_FROM_LIBSSHVIR_FROM_RESCTRLVIR_FROM_FIREWALLDVIR_FROM_DOMAIN_CHECKPOINTVIR_FROM_TPMVIR_FROM_BPFVIR_FROM_CHVIR_ERR_NONEVIR_ERR_WARNINGVIR_ERR_ERROR
VIR_ERR_OKVIR_ERR_INTERNAL_ERRORVIR_ERR_NO_MEMORYVIR_ERR_NO_SUPPORTVIR_ERR_UNKNOWN_HOSTVIR_ERR_NO_CONNECTVIR_ERR_INVALID_CONNVIR_ERR_INVALID_DOMAINVIR_ERR_INVALID_ARGVIR_ERR_OPERATION_FAILEDVIR_ERR_GET_FAILEDVIR_ERR_POST_FAILEDVIR_ERR_HTTP_ERRORVIR_ERR_SEXPR_SERIALVIR_ERR_NO_XENVIR_ERR_XEN_CALLVIR_ERR_OS_TYPEVIR_ERR_NO_KERNELVIR_ERR_NO_ROOTVIR_ERR_NO_SOURCEVIR_ERR_NO_TARGETVIR_ERR_NO_NAMEVIR_ERR_NO_OSVIR_ERR_NO_DEVICEVIR_ERR_NO_XENSTOREVIR_ERR_DRIVER_FULLVIR_ERR_CALL_FAILEDVIR_ERR_XML_ERRORVIR_ERR_DOM_EXISTVIR_ERR_OPERATION_DENIEDVIR_ERR_OPEN_FAILEDVIR_ERR_READ_FAILEDVIR_ERR_PARSE_FAILEDVIR_ERR_CONF_SYNTAXVIR_ERR_WRITE_FAILEDVIR_ERR_XML_DETAILVIR_ERR_INVALID_NETWORKVIR_ERR_NETWORK_EXISTVIR_ERR_SYSTEM_ERRORVIR_ERR_RPCVIR_ERR_GNUTLS_ERRORVIR_WAR_NO_NETWORKVIR_ERR_NO_DOMAINVIR_ERR_NO_NETWORKVIR_ERR_INVALID_MACVIR_ERR_AUTH_FAILEDVIR_ERR_INVALID_STORAGE_POOLVIR_ERR_INVALID_STORAGE_VOLVIR_WAR_NO_STORAGEVIR_ERR_NO_STORAGE_POOLVIR_ERR_NO_STORAGE_VOLVIR_WAR_NO_NODEVIR_ERR_INVALID_NODE_DEVICEVIR_ERR_NO_NODE_DEVICEVIR_ERR_NO_SECURITY_MODELVIR_ERR_OPERATION_INVALIDVIR_WAR_NO_INTERFACEVIR_ERR_NO_INTERFACEVIR_ERR_INVALID_INTERFACEVIR_ERR_MULTIPLE_INTERFACESVIR_WAR_NO_NWFILTERVIR_ERR_INVALID_NWFILTERVIR_ERR_NO_NWFILTERVIR_ERR_BUILD_FIREWALLVIR_WAR_NO_SECRETVIR_ERR_INVALID_SECRETVIR_ERR_NO_SECRETVIR_ERR_CONFIG_UNSUPPORTEDVIR_ERR_OPERATION_TIMEOUTVIR_ERR_MIGRATE_PERSIST_FAILEDVIR_ERR_HOOK_SCRIPT_FAILEDVIR_ERR_INVALID_DOMAIN_SNAPSHOTVIR_ERR_NO_DOMAIN_SNAPSHOTVIR_ERR_INVALID_STREAMVIR_ERR_ARGUMENT_UNSUPPORTEDVIR_ERR_STORAGE_PROBE_FAILEDVIR_ERR_STORAGE_POOL_BUILTVIR_ERR_SNAPSHOT_REVERT_RISKYVIR_ERR_OPERATION_ABORTEDVIR_ERR_AUTH_CANCELLEDVIR_ERR_NO_DOMAIN_METADATAVIR_ERR_MIGRATE_UNSAFEVIR_ERR_OVERFLOWVIR_ERR_BLOCK_COPY_ACTIVEVIR_ERR_OPERATION_UNSUPPORTEDVIR_ERR_SSHVIR_ERR_AGENT_UNRESPONSIVEVIR_ERR_RESOURCE_BUSYVIR_ERR_ACCESS_DENIEDVIR_ERR_DBUS_SERVICEVIR_ERR_STORAGE_VOL_EXISTVIR_ERR_CPU_INCOMPATIBLEVIR_ERR_XML_INVALID_SCHEMAVIR_ERR_MIGRATE_FINISH_OKVIR_ERR_AUTH_UNAVAILABLEVIR_ERR_NO_SERVERVIR_ERR_NO_CLIENTVIR_ERR_AGENT_UNSYNCEDVIR_ERR_LIBSSHVIR_ERR_DEVICE_MISSING VIR_ERR_INVALID_NWFILTER_BINDINGVIR_ERR_NO_NWFILTER_BINDING!VIR_ERR_INVALID_DOMAIN_CHECKPOINTVIR_ERR_NO_DOMAIN_CHECKPOINTVIR_ERR_NO_DOMAIN_BACKUPVIR_ERR_INVALID_NETWORK_PORTVIR_ERR_NETWORK_PORT_EXISTVIR_ERR_NO_NETWORK_PORTVIR_ERR_NO_HOSTNAMEVIR_ERR_CHECKPOINT_INCONSISTENTVIR_ERR_MULTIPLE_DOMAINSVIR_ERR_NO_NETWORK_METADATAVIR_ERR_AGENT_COMMAND_TIMEOUTVIR_ERR_AGENT_COMMAND_FAILEDVIR_EVENT_HANDLE_READABLEVIR_EVENT_HANDLE_WRITABLEVIR_EVENT_HANDLE_ERRORVIR_EVENT_HANDLE_HANGUPVIR_IP_ADDR_TYPE_IPV4VIR_IP_ADDR_TYPE_IPV6VIR_INTERFACE_DEFINE_VALIDATEVIR_INTERFACE_XML_INACTIVEVIR_KEYCODE_SET_LINUXVIR_KEYCODE_SET_XTVIR_KEYCODE_SET_ATSET1VIR_KEYCODE_SET_ATSET2VIR_KEYCODE_SET_ATSET3VIR_KEYCODE_SET_OSXVIR_KEYCODE_SET_XT_KBDVIR_KEYCODE_SET_USBVIR_KEYCODE_SET_WIN32VIR_KEYCODE_SET_QNUMVIR_DOMAIN_MEMORY_PARAM_INTVIR_DOMAIN_MEMORY_PARAM_UINTVIR_DOMAIN_MEMORY_PARAM_LLONGVIR_DOMAIN_MEMORY_PARAM_ULLONGVIR_DOMAIN_MEMORY_PARAM_DOUBLEVIR_DOMAIN_MEMORY_PARAM_BOOLEAN$VIR_NWFILTER_BINDING_CREATE_VALIDATEVIR_NWFILTER_DEFINE_VALIDATEVIR_NETWORK_CREATE_VALIDATEVIR_NETWORK_DEFINE_VALIDATEVIR_NETWORK_EVENT_ID_LIFECYCLE$VIR_NETWORK_EVENT_ID_METADATA_CHANGEVIR_NETWORK_EVENT_DEFINEDVIR_NETWORK_EVENT_UNDEFINEDVIR_NETWORK_EVENT_STARTEDVIR_NETWORK_EVENT_STOPPED VIR_NETWORK_METADATA_DESCRIPTIONVIR_NETWORK_METADATA_TITLEVIR_NETWORK_METADATA_ELEMENTVIR_NETWORK_PORT_CREATE_RECLAIM VIR_NETWORK_PORT_CREATE_VALIDATEVIR_NETWORK_UPDATE_COMMAND_NONE!VIR_NETWORK_UPDATE_COMMAND_MODIFY!VIR_NETWORK_UPDATE_COMMAND_DELETE#VIR_NETWORK_UPDATE_COMMAND_ADD_LAST$VIR_NETWORK_UPDATE_COMMAND_ADD_FIRST!VIR_NETWORK_UPDATE_AFFECT_CURRENTVIR_NETWORK_UPDATE_AFFECT_LIVE VIR_NETWORK_UPDATE_AFFECT_CONFIGVIR_NETWORK_SECTION_NONEVIR_NETWORK_SECTION_BRIDGEVIR_NETWORK_SECTION_DOMAINVIR_NETWORK_SECTION_IP VIR_NETWORK_SECTION_IP_DHCP_HOST!VIR_NETWORK_SECTION_IP_DHCP_RANGEVIR_NETWORK_SECTION_FORWARD%VIR_NETWORK_SECTION_FORWARD_INTERFACEVIR_NETWORK_SECTION_FORWARD_PFVIR_NETWORK_SECTION_PORTGROUPVIR_NETWORK_SECTION_DNS_HOSTVIR_NETWORK_SECTION_DNS_TXTVIR_NETWORK_SECTION_DNS_SRVVIR_NETWORK_XML_INACTIVEVIR_NODE_ALLOC_PAGES_ADDVIR_NODE_ALLOC_PAGES_SET#VIR_NODE_DEVICE_CREATE_XML_VALIDATE#VIR_NODE_DEVICE_DEFINE_XML_VALIDATE"VIR_NODE_DEVICE_EVENT_ID_LIFECYCLEVIR_NODE_DEVICE_EVENT_ID_UPDATEVIR_NODE_DEVICE_EVENT_CREATEDVIR_NODE_DEVICE_EVENT_DELETEDVIR_NODE_DEVICE_EVENT_DEFINEDVIR_NODE_DEVICE_EVENT_UNDEFINED%VIR_NODE_DEVICE_UPDATE_AFFECT_CURRENT"VIR_NODE_DEVICE_UPDATE_AFFECT_LIVE$VIR_NODE_DEVICE_UPDATE_AFFECT_CONFIGVIR_NODE_DEVICE_XML_INACTIVEVIR_NODE_CPU_STATS_ALL_CPUSVIR_NODE_MEMORY_STATS_ALL_CELLSVIR_NODE_SUSPEND_TARGET_MEMVIR_NODE_SUSPEND_TARGET_DISKVIR_NODE_SUSPEND_TARGET_HYBRIDVIR_DOMAIN_SCHED_FIELD_INTVIR_DOMAIN_SCHED_FIELD_UINTVIR_DOMAIN_SCHED_FIELD_LLONGVIR_DOMAIN_SCHED_FIELD_ULLONGVIR_DOMAIN_SCHED_FIELD_DOUBLEVIR_DOMAIN_SCHED_FIELD_BOOLEANVIR_SECRET_DEFINE_VALIDATEVIR_SECRET_EVENT_ID_LIFECYCLE!VIR_SECRET_EVENT_ID_VALUE_CHANGEDVIR_SECRET_EVENT_DEFINEDVIR_SECRET_EVENT_UNDEFINEDVIR_SECRET_USAGE_TYPE_NONEVIR_SECRET_USAGE_TYPE_VOLUMEVIR_SECRET_USAGE_TYPE_CEPHVIR_SECRET_USAGE_TYPE_ISCSIVIR_SECRET_USAGE_TYPE_TLSVIR_SECRET_USAGE_TYPE_VTPMVIR_STORAGE_POOL_BUILD_NEWVIR_STORAGE_POOL_BUILD_REPAIRVIR_STORAGE_POOL_BUILD_RESIZE#VIR_STORAGE_POOL_BUILD_NO_OVERWRITE VIR_STORAGE_POOL_BUILD_OVERWRITEVIR_STORAGE_POOL_CREATE_NORMAL"VIR_STORAGE_POOL_CREATE_WITH_BUILD,VIR_STORAGE_POOL_CREATE_WITH_BUILD_OVERWRITE/VIR_STORAGE_POOL_CREATE_WITH_BUILD_NO_OVERWRITE VIR_STORAGE_POOL_DEFINE_VALIDATEVIR_STORAGE_POOL_DELETE_NORMALVIR_STORAGE_POOL_DELETE_ZEROED#VIR_STORAGE_POOL_EVENT_ID_LIFECYCLE!VIR_STORAGE_POOL_EVENT_ID_REFRESHVIR_STORAGE_POOL_EVENT_DEFINED VIR_STORAGE_POOL_EVENT_UNDEFINEDVIR_STORAGE_POOL_EVENT_STARTEDVIR_STORAGE_POOL_EVENT_STOPPEDVIR_STORAGE_POOL_EVENT_CREATEDVIR_STORAGE_POOL_EVENT_DELETEDVIR_STORAGE_POOL_INACTIVEVIR_STORAGE_POOL_BUILDINGVIR_STORAGE_POOL_RUNNINGVIR_STORAGE_POOL_DEGRADEDVIR_STORAGE_POOL_INACCESSIBLE(VIR_STORAGE_VOL_CREATE_PREALLOC_METADATAVIR_STORAGE_VOL_CREATE_REFLINKVIR_STORAGE_VOL_CREATE_VALIDATEVIR_STORAGE_VOL_DELETE_NORMALVIR_STORAGE_VOL_DELETE_ZEROED%VIR_STORAGE_VOL_DELETE_WITH_SNAPSHOTS&VIR_STORAGE_VOL_DOWNLOAD_SPARSE_STREAMVIR_STORAGE_VOL_USE_ALLOCATIONVIR_STORAGE_VOL_GET_PHYSICALVIR_STORAGE_VOL_RESIZE_ALLOCATEVIR_STORAGE_VOL_RESIZE_DELTAVIR_STORAGE_VOL_RESIZE_SHRINKVIR_STORAGE_VOL_FILEVIR_STORAGE_VOL_BLOCKVIR_STORAGE_VOL_DIRVIR_STORAGE_VOL_NETWORKVIR_STORAGE_VOL_NETDIRVIR_STORAGE_VOL_PLOOP$VIR_STORAGE_VOL_UPLOAD_SPARSE_STREAMVIR_STORAGE_VOL_WIPE_ALG_ZEROVIR_STORAGE_VOL_WIPE_ALG_NNSAVIR_STORAGE_VOL_WIPE_ALG_DODVIR_STORAGE_VOL_WIPE_ALG_BSI VIR_STORAGE_VOL_WIPE_ALG_GUTMANN!VIR_STORAGE_VOL_WIPE_ALG_SCHNEIER"VIR_STORAGE_VOL_WIPE_ALG_PFITZNER7#VIR_STORAGE_VOL_WIPE_ALG_PFITZNER33VIR_STORAGE_VOL_WIPE_ALG_RANDOMVIR_STORAGE_VOL_WIPE_ALG_TRIMVIR_STORAGE_XML_INACTIVEVIR_STREAM_EVENT_READABLEVIR_STREAM_EVENT_WRITABLEVIR_STREAM_EVENT_ERRORVIR_STREAM_EVENT_HANGUPVIR_STREAM_NONBLOCKr6	  VIR_TYPED_PARAM_STRING_OKAYVIR_TYPED_PARAM_INTVIR_TYPED_PARAM_UINTVIR_TYPED_PARAM_LLONGVIR_TYPED_PARAM_ULLONGVIR_TYPED_PARAM_DOUBLEVIR_TYPED_PARAM_BOOLEANVIR_TYPED_PARAM_STRINGVIR_VCPU_INFO_CPU_UNAVAILABLEVIR_VCPU_INFO_CPU_OFFLINEVIR_VCPU_OFFLINEVIR_VCPU_RUNNINGVIR_VCPU_BLOCKEDVIR_CONNECT_IDENTITY_GROUP_NAMEVIR_CONNECT_IDENTITY_PROCESS_ID!VIR_CONNECT_IDENTITY_PROCESS_TIME#VIR_CONNECT_IDENTITY_SASL_USER_NAME$VIR_CONNECT_IDENTITY_SELINUX_CONTEXT"VIR_CONNECT_IDENTITY_UNIX_GROUP_ID!VIR_CONNECT_IDENTITY_UNIX_USER_IDVIR_CONNECT_IDENTITY_USER_NAME,VIR_CONNECT_IDENTITY_X509_DISTINGUISHED_NAMEVIR_DOMAIN_BANDWIDTH_IN_AVERAGEVIR_DOMAIN_BANDWIDTH_IN_BURSTVIR_DOMAIN_BANDWIDTH_IN_FLOORVIR_DOMAIN_BANDWIDTH_IN_PEAK VIR_DOMAIN_BANDWIDTH_OUT_AVERAGEVIR_DOMAIN_BANDWIDTH_OUT_BURSTVIR_DOMAIN_BANDWIDTH_OUT_PEAK VIR_DOMAIN_BLKIO_DEVICE_READ_BPS!VIR_DOMAIN_BLKIO_DEVICE_READ_IOPSVIR_DOMAIN_BLKIO_DEVICE_WEIGHT!VIR_DOMAIN_BLKIO_DEVICE_WRITE_BPS"VIR_DOMAIN_BLKIO_DEVICE_WRITE_IOPSVIR_DOMAIN_BLKIO_WEIGHTVIR_DOMAIN_BLOCK_COPY_BANDWIDTHVIR_DOMAIN_BLOCK_COPY_BUF_SIZE!VIR_DOMAIN_BLOCK_COPY_GRANULARITY"VIR_DOMAIN_BLOCK_IOTUNE_GROUP_NAME&VIR_DOMAIN_BLOCK_IOTUNE_READ_BYTES_SEC*VIR_DOMAIN_BLOCK_IOTUNE_READ_BYTES_SEC_MAX1VIR_DOMAIN_BLOCK_IOTUNE_READ_BYTES_SEC_MAX_LENGTH%VIR_DOMAIN_BLOCK_IOTUNE_READ_IOPS_SEC)VIR_DOMAIN_BLOCK_IOTUNE_READ_IOPS_SEC_MAX0VIR_DOMAIN_BLOCK_IOTUNE_READ_IOPS_SEC_MAX_LENGTH%VIR_DOMAIN_BLOCK_IOTUNE_SIZE_IOPS_SEC'VIR_DOMAIN_BLOCK_IOTUNE_TOTAL_BYTES_SEC+VIR_DOMAIN_BLOCK_IOTUNE_TOTAL_BYTES_SEC_MAX2VIR_DOMAIN_BLOCK_IOTUNE_TOTAL_BYTES_SEC_MAX_LENGTH&VIR_DOMAIN_BLOCK_IOTUNE_TOTAL_IOPS_SEC*VIR_DOMAIN_BLOCK_IOTUNE_TOTAL_IOPS_SEC_MAX1VIR_DOMAIN_BLOCK_IOTUNE_TOTAL_IOPS_SEC_MAX_LENGTH'VIR_DOMAIN_BLOCK_IOTUNE_WRITE_BYTES_SEC+VIR_DOMAIN_BLOCK_IOTUNE_WRITE_BYTES_SEC_MAX2VIR_DOMAIN_BLOCK_IOTUNE_WRITE_BYTES_SEC_MAX_LENGTH&VIR_DOMAIN_BLOCK_IOTUNE_WRITE_IOPS_SEC*VIR_DOMAIN_BLOCK_IOTUNE_WRITE_IOPS_SEC_MAX1VIR_DOMAIN_BLOCK_IOTUNE_WRITE_IOPS_SEC_MAX_LENGTHVIR_DOMAIN_BLOCK_STATS_ERRS VIR_DOMAIN_BLOCK_STATS_FLUSH_REQ(VIR_DOMAIN_BLOCK_STATS_FLUSH_TOTAL_TIMES!VIR_DOMAIN_BLOCK_STATS_READ_BYTESVIR_DOMAIN_BLOCK_STATS_READ_REQ'VIR_DOMAIN_BLOCK_STATS_READ_TOTAL_TIMES"VIR_DOMAIN_BLOCK_STATS_WRITE_BYTES VIR_DOMAIN_BLOCK_STATS_WRITE_REQ(VIR_DOMAIN_BLOCK_STATS_WRITE_TOTAL_TIMESVIR_DOMAIN_CPU_STATS_CPUTIMEVIR_DOMAIN_CPU_STATS_SYSTEMTIMEVIR_DOMAIN_CPU_STATS_USERTIMEVIR_DOMAIN_CPU_STATS_VCPUTIME VIR_DOMAIN_GUEST_INFO_DISK_COUNT!VIR_DOMAIN_GUEST_INFO_DISK_PREFIX'VIR_DOMAIN_GUEST_INFO_DISK_SUFFIX_ALIAS2VIR_DOMAIN_GUEST_INFO_DISK_SUFFIX_DEPENDENCY_COUNT3VIR_DOMAIN_GUEST_INFO_DISK_SUFFIX_DEPENDENCY_PREFIX8VIR_DOMAIN_GUEST_INFO_DISK_SUFFIX_DEPENDENCY_SUFFIX_NAME-VIR_DOMAIN_GUEST_INFO_DISK_SUFFIX_GUEST_ALIAS+VIR_DOMAIN_GUEST_INFO_DISK_SUFFIX_GUEST_BUS&VIR_DOMAIN_GUEST_INFO_DISK_SUFFIX_NAME+VIR_DOMAIN_GUEST_INFO_DISK_SUFFIX_PARTITION(VIR_DOMAIN_GUEST_INFO_DISK_SUFFIX_SERIALVIR_DOMAIN_GUEST_INFO_FS_COUNTVIR_DOMAIN_GUEST_INFO_FS_PREFIX*VIR_DOMAIN_GUEST_INFO_FS_SUFFIX_DISK_COUNT+VIR_DOMAIN_GUEST_INFO_FS_SUFFIX_DISK_PREFIX1VIR_DOMAIN_GUEST_INFO_FS_SUFFIX_DISK_SUFFIX_ALIAS2VIR_DOMAIN_GUEST_INFO_FS_SUFFIX_DISK_SUFFIX_DEVICE2VIR_DOMAIN_GUEST_INFO_FS_SUFFIX_DISK_SUFFIX_SERIAL&VIR_DOMAIN_GUEST_INFO_FS_SUFFIX_FSTYPE*VIR_DOMAIN_GUEST_INFO_FS_SUFFIX_MOUNTPOINT$VIR_DOMAIN_GUEST_INFO_FS_SUFFIX_NAME+VIR_DOMAIN_GUEST_INFO_FS_SUFFIX_TOTAL_BYTES*VIR_DOMAIN_GUEST_INFO_FS_SUFFIX_USED_BYTES'VIR_DOMAIN_GUEST_INFO_HOSTNAME_HOSTNAMEVIR_DOMAIN_GUEST_INFO_IF_COUNTVIR_DOMAIN_GUEST_INFO_IF_PREFIX*VIR_DOMAIN_GUEST_INFO_IF_SUFFIX_ADDR_COUNT+VIR_DOMAIN_GUEST_INFO_IF_SUFFIX_ADDR_PREFIX0VIR_DOMAIN_GUEST_INFO_IF_SUFFIX_ADDR_SUFFIX_ADDR2VIR_DOMAIN_GUEST_INFO_IF_SUFFIX_ADDR_SUFFIX_PREFIX0VIR_DOMAIN_GUEST_INFO_IF_SUFFIX_ADDR_SUFFIX_TYPE&VIR_DOMAIN_GUEST_INFO_IF_SUFFIX_HWADDR$VIR_DOMAIN_GUEST_INFO_IF_SUFFIX_NAMEVIR_DOMAIN_GUEST_INFO_LOAD_15MVIR_DOMAIN_GUEST_INFO_LOAD_1MVIR_DOMAIN_GUEST_INFO_LOAD_5MVIR_DOMAIN_GUEST_INFO_OS_ID'VIR_DOMAIN_GUEST_INFO_OS_KERNEL_RELEASE'VIR_DOMAIN_GUEST_INFO_OS_KERNEL_VERSION VIR_DOMAIN_GUEST_INFO_OS_MACHINEVIR_DOMAIN_GUEST_INFO_OS_NAME$VIR_DOMAIN_GUEST_INFO_OS_PRETTY_NAME VIR_DOMAIN_GUEST_INFO_OS_VARIANT#VIR_DOMAIN_GUEST_INFO_OS_VARIANT_ID VIR_DOMAIN_GUEST_INFO_OS_VERSION#VIR_DOMAIN_GUEST_INFO_OS_VERSION_ID#VIR_DOMAIN_GUEST_INFO_TIMEZONE_NAME%VIR_DOMAIN_GUEST_INFO_TIMEZONE_OFFSET VIR_DOMAIN_GUEST_INFO_USER_COUNT!VIR_DOMAIN_GUEST_INFO_USER_PREFIX(VIR_DOMAIN_GUEST_INFO_USER_SUFFIX_DOMAIN,VIR_DOMAIN_GUEST_INFO_USER_SUFFIX_LOGIN_TIME&VIR_DOMAIN_GUEST_INFO_USER_SUFFIX_NAMEVIR_DOMAIN_IOTHREAD_POLL_GROWVIR_DOMAIN_IOTHREAD_POLL_MAX_NSVIR_DOMAIN_IOTHREAD_POLL_SHRINK#VIR_DOMAIN_IOTHREAD_THREAD_POOL_MAX#VIR_DOMAIN_IOTHREAD_THREAD_POOL_MIN%VIR_DOMAIN_JOB_AUTO_CONVERGE_THROTTLE VIR_DOMAIN_JOB_COMPRESSION_BYTES VIR_DOMAIN_JOB_COMPRESSION_CACHE'VIR_DOMAIN_JOB_COMPRESSION_CACHE_MISSES#VIR_DOMAIN_JOB_COMPRESSION_OVERFLOW VIR_DOMAIN_JOB_COMPRESSION_PAGESVIR_DOMAIN_JOB_DATA_PROCESSEDVIR_DOMAIN_JOB_DATA_REMAININGVIR_DOMAIN_JOB_DATA_TOTALVIR_DOMAIN_JOB_DISK_BPSVIR_DOMAIN_JOB_DISK_PROCESSEDVIR_DOMAIN_JOB_DISK_REMAININGVIR_DOMAIN_JOB_DISK_TEMP_TOTALVIR_DOMAIN_JOB_DISK_TEMP_USEDVIR_DOMAIN_JOB_DISK_TOTALVIR_DOMAIN_JOB_DOWNTIMEVIR_DOMAIN_JOB_DOWNTIME_NETVIR_DOMAIN_JOB_ERRMSGVIR_DOMAIN_JOB_MEMORY_BPSVIR_DOMAIN_JOB_MEMORY_CONSTANT VIR_DOMAIN_JOB_MEMORY_DIRTY_RATEVIR_DOMAIN_JOB_MEMORY_ITERATIONVIR_DOMAIN_JOB_MEMORY_NORMAL"VIR_DOMAIN_JOB_MEMORY_NORMAL_BYTESVIR_DOMAIN_JOB_MEMORY_PAGE_SIZE#VIR_DOMAIN_JOB_MEMORY_POSTCOPY_REQSVIR_DOMAIN_JOB_MEMORY_PROCESSEDVIR_DOMAIN_JOB_MEMORY_REMAININGVIR_DOMAIN_JOB_MEMORY_TOTALVIR_DOMAIN_JOB_OPERATIONVIR_DOMAIN_JOB_SETUP_TIMEVIR_DOMAIN_JOB_SUCCESSVIR_DOMAIN_JOB_TIME_ELAPSEDVIR_DOMAIN_JOB_TIME_ELAPSED_NETVIR_DOMAIN_JOB_TIME_REMAINING$VIR_DOMAIN_JOB_VFIO_DATA_TRANSFERRED(VIR_DOMAIN_LAUNCH_SECURITY_SEV_API_MAJOR(VIR_DOMAIN_LAUNCH_SECURITY_SEV_API_MINOR'VIR_DOMAIN_LAUNCH_SECURITY_SEV_BUILD_ID*VIR_DOMAIN_LAUNCH_SECURITY_SEV_MEASUREMENT%VIR_DOMAIN_LAUNCH_SECURITY_SEV_POLICY%VIR_DOMAIN_LAUNCH_SECURITY_SEV_SECRET,VIR_DOMAIN_LAUNCH_SECURITY_SEV_SECRET_HEADER1VIR_DOMAIN_LAUNCH_SECURITY_SEV_SECRET_SET_ADDRESS)VIR_DOMAIN_LAUNCH_SECURITY_SEV_SNP_POLICYVIR_DOMAIN_MEMORY_HARD_LIMITVIR_DOMAIN_MEMORY_MIN_GUARANTEEVIR_DOMAIN_MEMORY_SOFT_LIMIT!VIR_DOMAIN_MEMORY_SWAP_HARD_LIMITVIR_DOMAIN_NUMA_MODEVIR_DOMAIN_NUMA_NODESETVIR_DOMAIN_SAVE_PARAM_DXMLVIR_DOMAIN_SAVE_PARAM_FILE"VIR_DOMAIN_SAVE_PARAM_IMAGE_FORMAT'VIR_DOMAIN_SAVE_PARAM_PARALLEL_CHANNELSVIR_DOMAIN_SCHEDULER_CAPVIR_DOMAIN_SCHEDULER_CPU_SHARES$VIR_DOMAIN_SCHEDULER_EMULATOR_PERIOD#VIR_DOMAIN_SCHEDULER_EMULATOR_QUOTA"VIR_DOMAIN_SCHEDULER_GLOBAL_PERIOD!VIR_DOMAIN_SCHEDULER_GLOBAL_QUOTA$VIR_DOMAIN_SCHEDULER_IOTHREAD_PERIOD#VIR_DOMAIN_SCHEDULER_IOTHREAD_QUOTAVIR_DOMAIN_SCHEDULER_LIMIT VIR_DOMAIN_SCHEDULER_RESERVATIONVIR_DOMAIN_SCHEDULER_SHARES VIR_DOMAIN_SCHEDULER_VCPU_PERIODVIR_DOMAIN_SCHEDULER_VCPU_QUOTAVIR_DOMAIN_SCHEDULER_WEIGHT"VIR_DOMAIN_STATS_BALLOON_AVAILABLE VIR_DOMAIN_STATS_BALLOON_CURRENT$VIR_DOMAIN_STATS_BALLOON_DISK_CACHES(VIR_DOMAIN_STATS_BALLOON_HUGETLB_PGALLOC'VIR_DOMAIN_STATS_BALLOON_HUGETLB_PGFAIL$VIR_DOMAIN_STATS_BALLOON_LAST_UPDATE$VIR_DOMAIN_STATS_BALLOON_MAJOR_FAULT VIR_DOMAIN_STATS_BALLOON_MAXIMUM$VIR_DOMAIN_STATS_BALLOON_MINOR_FAULTVIR_DOMAIN_STATS_BALLOON_RSS VIR_DOMAIN_STATS_BALLOON_SWAP_IN!VIR_DOMAIN_STATS_BALLOON_SWAP_OUTVIR_DOMAIN_STATS_BALLOON_UNUSEDVIR_DOMAIN_STATS_BALLOON_USABLEVIR_DOMAIN_STATS_BLOCK_COUNTVIR_DOMAIN_STATS_BLOCK_PREFIX(VIR_DOMAIN_STATS_BLOCK_SUFFIX_ALLOCATION*VIR_DOMAIN_STATS_BLOCK_SUFFIX_BACKINGINDEX&VIR_DOMAIN_STATS_BLOCK_SUFFIX_CAPACITY$VIR_DOMAIN_STATS_BLOCK_SUFFIX_ERRORS%VIR_DOMAIN_STATS_BLOCK_SUFFIX_FL_REQS&VIR_DOMAIN_STATS_BLOCK_SUFFIX_FL_TIMES"VIR_DOMAIN_STATS_BLOCK_SUFFIX_NAME"VIR_DOMAIN_STATS_BLOCK_SUFFIX_PATH&VIR_DOMAIN_STATS_BLOCK_SUFFIX_PHYSICAL&VIR_DOMAIN_STATS_BLOCK_SUFFIX_RD_BYTES%VIR_DOMAIN_STATS_BLOCK_SUFFIX_RD_REQS&VIR_DOMAIN_STATS_BLOCK_SUFFIX_RD_TIMES'VIR_DOMAIN_STATS_BLOCK_SUFFIX_THRESHOLD&VIR_DOMAIN_STATS_BLOCK_SUFFIX_WR_BYTES%VIR_DOMAIN_STATS_BLOCK_SUFFIX_WR_REQS&VIR_DOMAIN_STATS_BLOCK_SUFFIX_WR_TIMES(VIR_DOMAIN_STATS_CPU_CACHE_MONITOR_COUNT)VIR_DOMAIN_STATS_CPU_CACHE_MONITOR_PREFIX4VIR_DOMAIN_STATS_CPU_CACHE_MONITOR_SUFFIX_BANK_COUNT5VIR_DOMAIN_STATS_CPU_CACHE_MONITOR_SUFFIX_BANK_PREFIX;VIR_DOMAIN_STATS_CPU_CACHE_MONITOR_SUFFIX_BANK_SUFFIX_BYTES8VIR_DOMAIN_STATS_CPU_CACHE_MONITOR_SUFFIX_BANK_SUFFIX_ID.VIR_DOMAIN_STATS_CPU_CACHE_MONITOR_SUFFIX_NAME/VIR_DOMAIN_STATS_CPU_CACHE_MONITOR_SUFFIX_VCPUS'VIR_DOMAIN_STATS_CPU_HALTPOLL_FAIL_TIME*VIR_DOMAIN_STATS_CPU_HALTPOLL_SUCCESS_TIMEVIR_DOMAIN_STATS_CPU_SYSTEMVIR_DOMAIN_STATS_CPU_TIMEVIR_DOMAIN_STATS_CPU_USER'VIR_DOMAIN_STATS_CUSTOM_SUFFIX_TYPE_CUR'VIR_DOMAIN_STATS_CUSTOM_SUFFIX_TYPE_MAX'VIR_DOMAIN_STATS_CUSTOM_SUFFIX_TYPE_SUM$VIR_DOMAIN_STATS_DIRTYRATE_CALC_MODE&VIR_DOMAIN_STATS_DIRTYRATE_CALC_PERIOD*VIR_DOMAIN_STATS_DIRTYRATE_CALC_START_TIME&VIR_DOMAIN_STATS_DIRTYRATE_CALC_STATUS/VIR_DOMAIN_STATS_DIRTYRATE_MEGABYTES_PER_SECOND&VIR_DOMAIN_STATS_DIRTYRATE_VCPU_PREFIX;VIR_DOMAIN_STATS_DIRTYRATE_VCPU_SUFFIX_MEGABYTES_PER_SECONDVIR_DOMAIN_STATS_IOTHREAD_COUNT VIR_DOMAIN_STATS_IOTHREAD_PREFIX*VIR_DOMAIN_STATS_IOTHREAD_SUFFIX_POLL_GROW,VIR_DOMAIN_STATS_IOTHREAD_SUFFIX_POLL_MAX_NS,VIR_DOMAIN_STATS_IOTHREAD_SUFFIX_POLL_SHRINK/VIR_DOMAIN_STATS_MEMORY_BANDWIDTH_MONITOR_COUNT0VIR_DOMAIN_STATS_MEMORY_BANDWIDTH_MONITOR_PREFIX5VIR_DOMAIN_STATS_MEMORY_BANDWIDTH_MONITOR_SUFFIX_NAME;VIR_DOMAIN_STATS_MEMORY_BANDWIDTH_MONITOR_SUFFIX_NODE_COUNT<VIR_DOMAIN_STATS_MEMORY_BANDWIDTH_MONITOR_SUFFIX_NODE_PREFIXHVIR_DOMAIN_STATS_MEMORY_BANDWIDTH_MONITOR_SUFFIX_NODE_SUFFIX_BYTES_LOCALHVIR_DOMAIN_STATS_MEMORY_BANDWIDTH_MONITOR_SUFFIX_NODE_SUFFIX_BYTES_TOTAL?VIR_DOMAIN_STATS_MEMORY_BANDWIDTH_MONITOR_SUFFIX_NODE_SUFFIX_ID6VIR_DOMAIN_STATS_MEMORY_BANDWIDTH_MONITOR_SUFFIX_VCPUSVIR_DOMAIN_STATS_NET_COUNTVIR_DOMAIN_STATS_NET_PREFIX VIR_DOMAIN_STATS_NET_SUFFIX_NAME$VIR_DOMAIN_STATS_NET_SUFFIX_RX_BYTES#VIR_DOMAIN_STATS_NET_SUFFIX_RX_DROP#VIR_DOMAIN_STATS_NET_SUFFIX_RX_ERRS#VIR_DOMAIN_STATS_NET_SUFFIX_RX_PKTS$VIR_DOMAIN_STATS_NET_SUFFIX_TX_BYTES#VIR_DOMAIN_STATS_NET_SUFFIX_TX_DROP#VIR_DOMAIN_STATS_NET_SUFFIX_TX_ERRS#VIR_DOMAIN_STATS_NET_SUFFIX_TX_PKTS&VIR_DOMAIN_STATS_PERF_ALIGNMENT_FAULTS)VIR_DOMAIN_STATS_PERF_BRANCH_INSTRUCTIONS#VIR_DOMAIN_STATS_PERF_BRANCH_MISSES VIR_DOMAIN_STATS_PERF_BUS_CYCLES"VIR_DOMAIN_STATS_PERF_CACHE_MISSES&VIR_DOMAIN_STATS_PERF_CACHE_REFERENCESVIR_DOMAIN_STATS_PERF_CMT&VIR_DOMAIN_STATS_PERF_CONTEXT_SWITCHESVIR_DOMAIN_STATS_PERF_CPU_CLOCK VIR_DOMAIN_STATS_PERF_CPU_CYCLES$VIR_DOMAIN_STATS_PERF_CPU_MIGRATIONS&VIR_DOMAIN_STATS_PERF_EMULATION_FAULTS"VIR_DOMAIN_STATS_PERF_INSTRUCTIONSVIR_DOMAIN_STATS_PERF_MBMLVIR_DOMAIN_STATS_PERF_MBMT!VIR_DOMAIN_STATS_PERF_PAGE_FAULTS%VIR_DOMAIN_STATS_PERF_PAGE_FAULTS_MAJ%VIR_DOMAIN_STATS_PERF_PAGE_FAULTS_MIN$VIR_DOMAIN_STATS_PERF_REF_CPU_CYCLES,VIR_DOMAIN_STATS_PERF_STALLED_CYCLES_BACKEND-VIR_DOMAIN_STATS_PERF_STALLED_CYCLES_FRONTEND VIR_DOMAIN_STATS_PERF_TASK_CLOCKVIR_DOMAIN_STATS_STATE_REASONVIR_DOMAIN_STATS_STATE_STATEVIR_DOMAIN_STATS_VCPU_CURRENTVIR_DOMAIN_STATS_VCPU_MAXIMUMVIR_DOMAIN_STATS_VCPU_PREFIX"VIR_DOMAIN_STATS_VCPU_SUFFIX_DELAY#VIR_DOMAIN_STATS_VCPU_SUFFIX_HALTED"VIR_DOMAIN_STATS_VCPU_SUFFIX_STATE!VIR_DOMAIN_STATS_VCPU_SUFFIX_TIME!VIR_DOMAIN_STATS_VCPU_SUFFIX_WAITVIR_DOMAIN_STATS_VM_PREFIXVIR_DOMAIN_TUNABLE_BLKDEV_DISK$VIR_DOMAIN_TUNABLE_BLKDEV_GROUP_NAME(VIR_DOMAIN_TUNABLE_BLKDEV_READ_BYTES_SEC,VIR_DOMAIN_TUNABLE_BLKDEV_READ_BYTES_SEC_MAX3VIR_DOMAIN_TUNABLE_BLKDEV_READ_BYTES_SEC_MAX_LENGTH'VIR_DOMAIN_TUNABLE_BLKDEV_READ_IOPS_SEC+VIR_DOMAIN_TUNABLE_BLKDEV_READ_IOPS_SEC_MAX2VIR_DOMAIN_TUNABLE_BLKDEV_READ_IOPS_SEC_MAX_LENGTH'VIR_DOMAIN_TUNABLE_BLKDEV_SIZE_IOPS_SEC)VIR_DOMAIN_TUNABLE_BLKDEV_TOTAL_BYTES_SEC-VIR_DOMAIN_TUNABLE_BLKDEV_TOTAL_BYTES_SEC_MAX4VIR_DOMAIN_TUNABLE_BLKDEV_TOTAL_BYTES_SEC_MAX_LENGTH(VIR_DOMAIN_TUNABLE_BLKDEV_TOTAL_IOPS_SEC,VIR_DOMAIN_TUNABLE_BLKDEV_TOTAL_IOPS_SEC_MAX3VIR_DOMAIN_TUNABLE_BLKDEV_TOTAL_IOPS_SEC_MAX_LENGTH)VIR_DOMAIN_TUNABLE_BLKDEV_WRITE_BYTES_SEC-VIR_DOMAIN_TUNABLE_BLKDEV_WRITE_BYTES_SEC_MAX4VIR_DOMAIN_TUNABLE_BLKDEV_WRITE_BYTES_SEC_MAX_LENGTH(VIR_DOMAIN_TUNABLE_BLKDEV_WRITE_IOPS_SEC,VIR_DOMAIN_TUNABLE_BLKDEV_WRITE_IOPS_SEC_MAX3VIR_DOMAIN_TUNABLE_BLKDEV_WRITE_IOPS_SEC_MAX_LENGTH!VIR_DOMAIN_TUNABLE_CPU_CPU_SHARES"VIR_DOMAIN_TUNABLE_CPU_EMULATORPIN&VIR_DOMAIN_TUNABLE_CPU_EMULATOR_PERIOD%VIR_DOMAIN_TUNABLE_CPU_EMULATOR_QUOTA$VIR_DOMAIN_TUNABLE_CPU_GLOBAL_PERIOD#VIR_DOMAIN_TUNABLE_CPU_GLOBAL_QUOTA#VIR_DOMAIN_TUNABLE_CPU_IOTHREADSPIN&VIR_DOMAIN_TUNABLE_CPU_IOTHREAD_PERIOD%VIR_DOMAIN_TUNABLE_CPU_IOTHREAD_QUOTAVIR_DOMAIN_TUNABLE_CPU_VCPUPIN"VIR_DOMAIN_TUNABLE_CPU_VCPU_PERIOD!VIR_DOMAIN_TUNABLE_CPU_VCPU_QUOTA)VIR_MIGRATE_PARAM_AUTO_CONVERGE_INCREMENT'VIR_MIGRATE_PARAM_AUTO_CONVERGE_INITIALVIR_MIGRATE_PARAM_BANDWIDTH,VIR_MIGRATE_PARAM_BANDWIDTH_AVAIL_SWITCHOVER$VIR_MIGRATE_PARAM_BANDWIDTH_POSTCOPYVIR_MIGRATE_PARAM_COMPRESSION)VIR_MIGRATE_PARAM_COMPRESSION_MT_DTHREADS&VIR_MIGRATE_PARAM_COMPRESSION_MT_LEVEL(VIR_MIGRATE_PARAM_COMPRESSION_MT_THREADS*VIR_MIGRATE_PARAM_COMPRESSION_XBZRLE_CACHE(VIR_MIGRATE_PARAM_COMPRESSION_ZLIB_LEVEL(VIR_MIGRATE_PARAM_COMPRESSION_ZSTD_LEVELVIR_MIGRATE_PARAM_DEST_NAMEVIR_MIGRATE_PARAM_DEST_XMLVIR_MIGRATE_PARAM_DISKS_PORTVIR_MIGRATE_PARAM_DISKS_URIVIR_MIGRATE_PARAM_GRAPHICS_URI VIR_MIGRATE_PARAM_LISTEN_ADDRESSVIR_MIGRATE_PARAM_MIGRATE_DISKS-VIR_MIGRATE_PARAM_MIGRATE_DISKS_DETECT_ZEROES&VIR_MIGRATE_PARAM_PARALLEL_CONNECTIONSVIR_MIGRATE_PARAM_PERSIST_XML!VIR_MIGRATE_PARAM_TLS_DESTINATIONVIR_MIGRATE_PARAM_URI%VIR_NETWORK_PORT_BANDWIDTH_IN_AVERAGE#VIR_NETWORK_PORT_BANDWIDTH_IN_BURST#VIR_NETWORK_PORT_BANDWIDTH_IN_FLOOR"VIR_NETWORK_PORT_BANDWIDTH_IN_PEAK&VIR_NETWORK_PORT_BANDWIDTH_OUT_AVERAGE$VIR_NETWORK_PORT_BANDWIDTH_OUT_BURST#VIR_NETWORK_PORT_BANDWIDTH_OUT_PEAKVIR_NODE_CPU_STATS_IDLEVIR_NODE_CPU_STATS_INTRVIR_NODE_CPU_STATS_IOWAITVIR_NODE_CPU_STATS_KERNELVIR_NODE_CPU_STATS_USERVIR_NODE_CPU_STATS_UTILIZATION!VIR_NODE_MEMORY_SHARED_FULL_SCANS)VIR_NODE_MEMORY_SHARED_MERGE_ACROSS_NODES#VIR_NODE_MEMORY_SHARED_PAGES_SHARED$VIR_NODE_MEMORY_SHARED_PAGES_SHARING$VIR_NODE_MEMORY_SHARED_PAGES_TO_SCAN%VIR_NODE_MEMORY_SHARED_PAGES_UNSHARED%VIR_NODE_MEMORY_SHARED_PAGES_VOLATILE&VIR_NODE_MEMORY_SHARED_SLEEP_MILLISECSVIR_NODE_MEMORY_STATS_BUFFERSVIR_NODE_MEMORY_STATS_CACHEDVIR_NODE_MEMORY_STATS_FREEVIR_NODE_MEMORY_STATS_TOTALVIR_NODE_SEV_CBITPOSVIR_NODE_SEV_CERT_CHAINVIR_NODE_SEV_CPU0_IDVIR_NODE_SEV_MAX_ES_GUESTSVIR_NODE_SEV_MAX_GUESTSVIR_NODE_SEV_PDHVIR_NODE_SEV_REDUCED_PHYS_BITSVIR_PERF_PARAM_ALIGNMENT_FAULTS"VIR_PERF_PARAM_BRANCH_INSTRUCTIONSVIR_PERF_PARAM_BRANCH_MISSESVIR_PERF_PARAM_BUS_CYCLESVIR_PERF_PARAM_CACHE_MISSESVIR_PERF_PARAM_CACHE_REFERENCESVIR_PERF_PARAM_CMTVIR_PERF_PARAM_CONTEXT_SWITCHESVIR_PERF_PARAM_CPU_CLOCKVIR_PERF_PARAM_CPU_CYCLESVIR_PERF_PARAM_CPU_MIGRATIONSVIR_PERF_PARAM_EMULATION_FAULTSVIR_PERF_PARAM_INSTRUCTIONSVIR_PERF_PARAM_MBMLVIR_PERF_PARAM_MBMTVIR_PERF_PARAM_PAGE_FAULTSVIR_PERF_PARAM_PAGE_FAULTS_MAJVIR_PERF_PARAM_PAGE_FAULTS_MINVIR_PERF_PARAM_REF_CPU_CYCLES%VIR_PERF_PARAM_STALLED_CYCLES_BACKEND&VIR_PERF_PARAM_STALLED_CYCLES_FRONTENDVIR_PERF_PARAM_TASK_CLOCKrP   r"   r    <module>r*     s&     ] ] ]T]S#sB'-.S(B7<= !3*d"23 !3%*- S"ItO$h 3S 89 "C:t#34 "C5#:. lKc2>MN	sCx.S> sCx.sCx.:9 :@6Hb$Z%56 6R 6C 6  #   T   #   l   LXc] c 0 
 Ec  Es  E3  EhXZlH[  Eko  E{  E 
 E	 wc ws w3 w w`b wnr w 
 wQc Qs Q3 QeT\^`T`NackNkHl Q  }E  FH  }I Q  UY Q,Gs GE%":Mx:W4X Ghpqsht G  AE G&  c 4PSUXPX> ^a  d38n  # s  "  ,  2 # 4@s @t @6 0 $*u>(3	50#l. l.^]hE hETPV Pde6 eNuJV uJneF eNL!J L!J\BNF N`e eN=& =~4 4l[9 [9z
oS& oSbVS VSr      !  ! !"        ,- (&' # "#   %& ""#  -. )'( $         ;< 7AB >:; 7 <= 8>? ; "#   !   12 -./ +   ,- (-. */0 ,./ +,. )+- (,. )*- '+4 (,6 )2< / CD ? #$ $% !&' #%& "#%  "$ #%  !$ '* $*- '%) "(, %(, %'+ $*/ '). & () $%& " &' "#$  '( $&' #&( #)+ & ,- (,- ),- )23 /(* %.0 +02 -), &,/ ),/ )+/ (15 .(, %/3 ,). &,1 ),1 ))/ &,2 )-3 *.5 +(/ %18 .4; 1+4 (*3 ')3 &'1 $ &' "() %#$  &' # +, '() %,- )+, (+- (.0 +%' "$' !'* $), &&* #'+ $&* #'+ $%* "*/ '). &%+ "*0 '.4 + !"  +- ',. )+, ( -. ),- ) *+ & #$ !" !" #$  *, ' !" "# &' #+, ( $%  #$   -. ) ./ * %& !!" !" #$  *+ '#$   )+ % #$ $% !#$    #%  #%  *, ' !" #$       )* %'( $12 . )* %-. *-. * *+ &#$  )* &$% !'( $ $%  &' #!"     () $*+ '*+ '+, (         #$ )* &() %+, (&' #        !   !      !"  $%   ! "# !"  +, ')* &'( $ "# !"  !     !"  %& !'( $ "# #$  #$  )* & *+ &)* &)* & %& !'( $'( $ !"  !"       &' #$% ! ! "# "$ !  " %' "%' "%' ""$   &( ##%  *, '$& !,. )&( #&( #%' "02 -%' " "# "# #$   '( #$% ! %& !$% !)* &$% !+, ( &' ""# !"  #$ $% !$% !)* &"#  %& !%& "#$  $% !!" "# )* & %& !&' #%& "&' #&' #+, ('( $&' #-. * %& !%& "            &' "%& " "# "# "# %& "%& ""# &' # ,- (,- ) !"  !  "# &' # '( #&' #    !" !" #%    #%     ,- (+, ()* & $%  !"  ! #$  () %)* &$% !+, ( ! "# +- (        !"    '( #&' #-. *'( $/0 ,/0 , 12 -01 -/0 ,/0 , -. )&' # 89 423 /         "# "# %& "%& " ! #$  () %  ! %& "%' ")+ &(* %    "#    #$                #    !       ,2 )$   )* %       "# $% !%& "&' # %& ! '( # "#         "# "#    "  $& !   !"  !  ! !"  ! !" !"  !  ! !" !# !# !# !# !# !# #%  !# !# !# !# !# !#  " !# !# #%  !# "$ !#  "  "  "  "  "  "  "  "  "  "  "  " !# !# !# !# !# !# !# !# !# !# !# !# !# !# !# !# !# !# !# !# !# !# !#   #$   !         #$   () %#$      %' " $%    !       !"    %& ""#   !              #$    '( #%& ")* &"# ') $') $%' "$' !"% &) # '( #+, (+, ( () $!" $% !"# %& "') $$& !"$ %( "$' !$' !'+ $ &' "$% !#$  )* & "#                        $%  )* & !" +- ( !       !                                 
                                       !                         !#  "$   ! !   "        "              #&  ! $' !"  "     "%  !  # "          !"                    ! !" !" "#  () $  !        "# '( $      $%      #$ #$   #$ $% !$% !&' #'( $ %& !!" #$       #$  $% ! () %!"  ! !           '( # '( # &' ""#  !"  !  ! "#  )* %%& "'( $  !  !  #%      !"       !  ! !"    !" $% !              !  ! &' ##$   "# %& "/0 ,23 / $%   "# !"  '( #$% ! "# #$  !" !" !" !"       !  ,- (!" "#  !"  ! () % *+ & "#    #$    !         () $ !"  !     #$  $% !%& "&' #"#  !            !             !#       #/ ". $2 !&6 #'8 $%4 "$2 !!, /H ,"3  /  / - #5  !1  / #:  $: !!0 $< !%< "" "- !+ $1 !%1 ")9 &-A *4O 1(7 %,? )3M 0(7 %*; '.C +5Q 2)9 &-A *4O 1*; '.C +5Q 2)9 &-A *4O 1$ #5  +> ($. !"1 *: '%/ "#2  +; () "/  +  + #/  $+ !*2 '5H 26D 3;B 80> -.: +)0 &.: ++4 (!+ "' -: *.6 +4< 15> 25> 2)2 &-: *'. $.< +-: **4 '!+ "' -: *.6 +3: 05> 23: 0)2 &'. $!+  )  ) % *= '*= '#/   ) '7 $#/  &5 ##/  &5 #&5 #(9 %#/  $+ !+4 (/< ,)0 & + "/ "/ &7 #&7 #(@ %#6  #6  *D '&< ##6   0  0 ( $  0  0 !2  0 ( $ ,   ( !2 #6  "4 . %: ""4 &@ #"4 "4 , & ( " , "4  0 '> $+: (+: (*8 '-> *(4 %(4 %/B ,4L 1,< )+ "1 + $5 !" ( # # %3 "*= '  ". '8 $&6 #%4 "$2 !'8 $&6 #$ #0  & #0  ". & %8 "#4  '< $+D (*B ''< $'< $#4  '< $, #4  $6 !"2 "2 ,  ( +8 (-< *)4 &'0 $(2 %)4 &%, "%, ")4 &)4 &(2 %)4 &*6 ')4 &(2 %)4 &+D (,@ )7D 48@ 5>F ;;@ 818 .2: /*B '-H ** & & *0 '*0 '*0 ''< $)@ &-H *)@ &2R /): &>U ;"2 #.  -9 */= ,/= ,2R /3N 08? 5>K ;?G <KY HKY HBG ?9A 6( $ #*  '2 $&0 #&0 #&0 #'2 $&0 #&0 #&0 #)@ &,F )&: ##4  %8 ")@ && )@ &"2 #4  '< $)@ &%8 "( ( $6 !(> %(> %'< $/L ,0N -#4   . ,  .  . & %- "&/ #%- "$+ !$+ !" !4 '@ $+H (/P ,6^ 3*F '.N +5\ 2*F ',J )0R -7` 4+H (/P ,6^ 3,J )0R -7` 4+H (/P ,6^ 3$8 !%: ")B &(@ %'> $&< #&= #)B &(@ %!4 %: "$8 !,E )*A ') /K ,'; $ - ,E ))? &+C (-G *+C (+C (0 . + ) !/ #3  "1 0M -)? & 0 $5 !% (9 %&5 #&5 #%3 "); &'7 $&5 #    $ $   !. $4 !,D )&8 #': $': $(< %(< %)> & ) ' # %   &   , &  !4 "4 %: ". ( , "4  "4 & (  0 "4 ,   * !2 !2  0 (@ %)B &( Cc  '' E
*K +*sF   AM+ M+AN'M2AM<M<ANNANNAN"NANNAN"N"AN'