summaryrefslogtreecommitdiff
path: root/examples/event-test.py
Commit message (Collapse)AuthorAgeFilesLines
...
* event-test: Add storage pool lifecycle event testsJovanka Gulicoska2016-06-161-0/+18
|
* event: Add support VIR_DOMAIN_EVENT_ID_DEVICE_REMOVAL_FAILEDPeter Krempa2016-04-181-0/+4
|
* Add support for JOB_COMPLETED eventJiri Denemark2016-03-081-0/+3
| | | | Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
* Add support for MIGRATION_ITERATION eventJiri Denemark2016-01-181-0/+4
| | | | Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
* Implement the DEVICE_ADDED eventJán Tomko2015-04-151-0/+4
|
* fix examplesPavel Hrdina2014-12-011-2/+2
| | | | | | | | | | | The dhcpleases example had an old usage of print function. The formating of leases record was also wrong. The event-test example had an old usage of exceptions. It's mainly to make examples compatible with python3. Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
* event: Add bindings for agent lifecycle eventPeter Krempa2014-11-241-0/+11
| | | | Also add the example.
* implement new tunable eventv1.2.9Pavel Hrdina2014-09-301-0/+3
| | | | | | Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1147639 Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
* event-test: add missing eventsEric Blake2014-06-181-4/+22
| | | | | | | | | | | | Update the example to be able to trace all events. * examples/event-test.py (main): Match full list of domain events. (myDomainEventIOErrorReasonCallback) (myDomainEventControlErrorCallback) (myDomainEventBlockJobCallback, myDomainEventBlockJob2Callback) (blockJobTypeToString, blockJobStatusToString): New functions. Signed-off-by: Eric Blake <eblake@redhat.com>
* examples: demonstrate network eventsEric Blake2014-02-111-19/+51
| | | | | | | | | Commit 6ea5be0 added network event callback support, so we might as well demonstrate that it works by updating our example. * examples/event-test.py: Add network event, fix typos. Signed-off-by: Eric Blake <eblake@redhat.com>
* examples: Ensure we write bytes to the self-pipeDaniel P. Berrange2013-12-111-1/+1
| | | | | | | | Strings in python3 default to unicode, so when writing to the self-pipe we must be sure to use bytes by calling the encode() method. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* examples: Invoke print("...") instead of print "..."Daniel P. Berrange2013-12-111-34/+34
| | | | | | | The 'print' method must be called as a function in python3, ie with brackets. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Move python example programs into python/examples/ subdirectoryDaniel P. Berrange2013-11-221-0/+591
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>