Product SiteDocumentation Site

7.4.5. changeCommit

This commits the changes made to interfaces and frees the restore point created by the changeBegin method.

Example 7.16. Using changeCommit

# Example-32.py
#!/usr/bin/env python3
import sys
import libvirt

conn = None
try:
    conn = libvirt.open("qemu:///system")
except libvirt.libvirtError as e:
    print(repr(e), file=sys.stderr)
    exit(1)

conn.changeCommit()

conn.close()
exit(0)
The changeRollback method can be used to roll back an uncommited change.