Jarrod Johnson
e0e39bda9a
Fix errors after git repo transition.
...
I realized that I had never pushed __init__.py for private.
While doing tests locally, I noticed that the pep changes broke at least one
place in code, correct that.
Change-Id: Ia31cb8a75a7109a6d002524e08ef335e1c5018d4
2013-07-02 13:29:26 -04:00
Jarrod Johnson
016326795b
Rename _pack_payload to send_payload
...
Rename '_pack_payload' in private module to 'send_payload' as it is more
descriptive of what is happening and will be called by console.py
Change-Id: Ifa70d269c8a1e37cc5b6466845931f22cd97d6c3
2013-07-02 12:43:59 -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
Monty Taylor
08d2e54d68
Align to OpenStack Build Standards.
...
Rearranged Sphinx.
Put project under PBR control.
Added tox file.
Added .testr.conf file in anticipation of testr testing.
Change-Id: I55180a6a3d224816c82999bf66156c7874786b17
2013-06-30 14:21:20 -04:00
Monty Taylor
fdca1fc199
Added gitreview file.
...
Change-Id: If8789bb129a45ad747e596a479a6a4466a5bafe0
2013-06-30 13:58:19 -04:00
Jarrod Johnson
7eec73261d
fix setup to include the private parts of the project
2013-06-28 10:35:41 -04:00
Jarrod Johnson
0a01fe446d
Reorganize pieces into 'private' to suggest to consumers the bits tehy need not think too hard about
2013-06-28 10:31:43 -04:00
Jarrod Johnson
284621feaf
Change to setuptools
2013-06-28 10:12:57 -04:00
Jarrod Johnson
f0e36d8027
Change requires to install_requires
2013-06-28 10:10:28 -04:00
Jarrod Johnson
f333dbff8b
Attempt to indicate pycrypto dependency
2013-06-28 10:01:40 -04:00
Jarrod Johnson
bc19838268
Reorganie things and add a setup.py for fun
2013-06-27 15:56:19 -04:00
Jarrod Johnson
05d3d05695
More style changes
2013-06-25 13:38:41 -04:00
Jarrod Johnson
147381a7e3
More cleanup, correct some syntax errors encountered trying to meet line length
2013-06-25 13:11:14 -04:00
Jarrod Johnson
1dde7b8a70
More style reworking
2013-06-25 11:44:57 -04:00
Jarrod Johnson
ab1b981547
Stylistic reworks
2013-06-25 11:23:24 -04:00
Jarrod Johnson
d8c7f9d903
More stylistic changes to ipmi_command.py
2013-06-25 11:16:07 -04:00
Jarrod Johnson
4973d577e3
Rename ipmi_syncexample to something less tounge twisting
2013-06-25 10:43:02 -04:00
Jarrod Johnson
eeb6cb255d
Rework docstrings
2013-06-25 10:39:58 -04:00
Jarrod Johnson
41141ea467
Reorder imports
2013-06-25 08:25:06 -04:00
Jarrod Johnson
552ae49c58
Change one conditional to perhaps be a bit more readable
2013-06-25 08:20:16 -04:00
Jarrod Johnson
d660073f77
Add name to TODOs that I put down
2013-06-25 08:17:50 -04:00
Jarrod Johnson
7517bce5f6
Add LICENSE excerpt to each file
2013-06-24 14:37:57 -04:00
Jarrod Johnson
3afd2e17d3
Place project under Apache license 2.0
2013-06-24 14:15:39 -04:00
Jarrod Johnson
a38894664c
Get acceptable copyright message in place
2013-06-24 13:43:15 -04:00
Jarrod Johnson
bef7a29e12
Flesh out documentation
2013-06-18 10:00:21 -04:00
Jarrod Johnson
5fb6a95a9d
Add sphinx 1.0 structure instead of older version
2013-06-18 09:15:50 -04:00
Jarrod Johnson
2212e11d34
Revert "Add sphinx doc generator bits"
...
This reverts commit 5c04ffb265cd99b66534f2a2668f5ff31448c26b.
2013-06-18 09:13:28 -04:00
Jarrod Johnson
5c04ffb265
Add sphinx doc generator bits
2013-06-18 09:10:04 -04:00
Jarrod Johnson
fff7b3bd57
Add an example chunk of code showing how to code in a synchronous way to the python library
2013-06-17 16:55:44 -04:00
Jarrod Johnson
cfc6d6ec15
Add set_power, with wait argument to not return until new state confirmed
2013-06-17 16:26:57 -04:00
Jarrod Johnson
5c1713d792
Add retry/timeout behavior to library
2013-06-17 15:02:11 -04:00
Jarrod Johnson
1ecd7c2146
Have get_power coded more similarly to get_bootdev
2013-06-10 15:49:24 -04:00
Jarrod Johnson
b7e27470cc
Add boot device control functions
2013-06-06 17:04:49 -04:00
Jarrod Johnson
8c68b1e3ef
Put IBM copyright into the files
2013-06-04 13:16:05 -04:00
Jarrod Johnson
2f4a857118
Add a convenience wrapper to do the higher layer simple commands
2013-05-20 11:17:10 -04:00
Jarrod Johnson
785e712763
Fix up error status situation
2013-05-20 10:49:59 -04:00
Jarrod Johnson
da9f801c1f
Clean up ipmi_session a little bit
2013-05-20 10:44:12 -04:00
Jarrod Johnson
74f3bf592f
Do some rewording
2013-05-20 10:29:01 -04:00
Jarrod Johnson
c8ac83cccc
Fix the integrity pad calculation (shame python doesn't have a 'use strict')
2013-05-19 18:51:42 -04:00
Jarrod Johnson
f44ad79391
Remove developer prints
2013-05-19 18:26:42 -04:00
Jarrod Johnson
7c44577b6c
Fix decryption... mystery remains as to why logout and only logout seems to fail if aes is not enabled in ipmi 2.0 land..
2013-05-19 18:20:27 -04:00
Jarrod Johnson
d6db94795e
Have IPMI2 work for unencrypted, still sorting out decryption... encryption seems to work, but decrypting the response...
2013-05-19 18:02:57 -04:00
Jarrod Johnson
40509f59cf
Fix problem where the data from bmc was not being integrity checked in 1.5
2013-05-19 17:23:36 -04:00
Jarrod Johnson
86ebe9790d
Fix problems with k1 and k2 key generation and HMAC on outgoing
2013-05-19 17:14:22 -04:00
Jarrod Johnson
4a1a43bbe9
Almost working IPMI 2.0 support.....
...
disable encryption to facilitate/narrow debug...
currently integrity algorithm is apparantly failing to pass on *outgoing* packets, though RAKP4 incoming did pass
2013-05-19 16:28:46 -04:00
Jarrod Johnson
2b90f8184f
More forcefully note the TODOs so people know when they hit them
2013-05-19 10:06:01 -04:00
Jarrod Johnson
5248d821b5
Python ipmi can now actually do commands using 1.5
2013-05-19 10:02:20 -04:00
Jarrod Johnson
df43c5336b
More work to make it get further on session establishment
2013-05-18 14:29:43 -04:00
Jarrod Johnson
9269810e7c
Milestone: can now receive and correctly parse get channel auth capabilities result
2013-05-18 13:37:01 -04:00
Jarrod Johnson
6b575b84d2
Milestone: now able to craft valid Get channel authentication capabilities request and trigger response
2013-05-17 23:20:24 -04:00