2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-14 19:57:47 +00:00

8 Commits

Author SHA1 Message Date
Jarrod Johnson
7371a58aba Rename to pyghmi
It has been expressed as a concern that 'ipmi' is too generic a name.
Additionally, it is also the case that non-ipmi capability is likely
to be incorporated as it goes along (e.g. Enclosure management and
virtual media are frequently not IPMI based).

Move existing content under the 'pyghmi' namespace.  pyghmi stands for
'python general hardware management infrastructure' and is pronounced
'pygmy'

Change-Id: Ib549a9f5b7dd549c7dc5ddbab251a2e06c572e41
2013-08-07 13:51:05 -04:00
Jarrod Johnson
b985624a4b Remove callback arguments from most functions.
After some contemplation, I realized that given the underlying behavior of 'wait_for_rsp', that
synchronous and asynchronous calls play well with each other.  The pattern of considering an 'onlogon'
function as running in a sort of greenthread works well and leads to much more comprehensible code
for the average person.  While removing those arguments, the module contents were reorganized to
serve as an example of how more straightforward code written in this fashion may be.

Change-Id: I9c83660e4d3c68ad8ae0c016a3377b2a0e7ee6ec
2013-07-25 15:23:06 -04:00
Jarrod Johnson
86a2d39db7 Change session timer to monotonic when possible
Previously the ipmi session was using time.time().  This means
that retries and keepalives could be thrown off by things like ntp
or manual time corrections.

Ideally, we'd use the baked in time.monotonic(), but that doesn't exist
aside from python 3.3

Change-Id: Ia00026cef6df214f9463909309de44767c3752b5
2013-07-23 15:23:20 -04:00
Jarrod Johnson
0e8ca33842 PEP8 compliance
Change instances in code where flake8 complained

Change-Id: I0b125fcff39024f9d4bf3c4c26a863efd0fa5cba
2013-07-16 15:27:04 -04:00
Jarrod Johnson
35fb5ce4b0 Add raw command to ipmictl
Enable raw command for example utility

Change-Id: I44d71b5c4cab57e9465fabb2482a78baa505895d
2013-07-16 11:03:41 -04:00
Devananda van der Veen
ca22a48de5 Fix all pep8 errors except E128 and E501
Ran autopep8 on the four .py files in this module.
Manully fixed many additional pep8 errors as well,
Turned some long-line-comments into proper NOTE lines,
but there are more to do...

Change-Id: I657ba037863860ec3956150931c2c0e41085bd63
2013-07-02 06:11:39 -07:00
Jarrod Johnson
bc19838268 Reorganie things and add a setup.py for fun 2013-06-27 15:56:19 -04:00
Jarrod Johnson
4973d577e3 Rename ipmi_syncexample to something less tounge twisting 2013-06-25 10:43:02 -04:00