internap / virtualpdu

A virtual power distribution unit (PDU) for controlling libvirt virtual machines via SNMP commands.
Apache License 2.0
3 stars 6 forks source link

Add support for custom PDU outlet count #41

Closed JoProvost closed 7 years ago

JoProvost commented 7 years ago

The number of outlet may now be specified at the constructor call of the PDU class. If defined, it will override the PDU class specific outlet count.

Also, the SNMPPDUHarness.stop method was not protected with a lock. Without this, the stop method simply fails to stop the thread if called just after the start method.

Reviewed-By: Maxime Dupuis mdupuis@internap.com