mirror of
https://opendev.org/x/pyghmi
synced 2025-01-27 19:37:44 +00:00
Kick things off with a little bit of header data
This commit is contained in:
commit
9552eb8e0f
43
ipmibase.py
Normal file
43
ipmibase.py
Normal file
@ -0,0 +1,43 @@
|
||||
#!/usr/bin/env python
|
||||
# This represents the low layer message framing portion of IPMI
|
||||
import select
|
||||
import Crypto
|
||||
|
||||
payload_types = {
|
||||
'ipmi': 0x0,
|
||||
'sol' : 0x1,
|
||||
'rmcpplusopenreq': 0x10,
|
||||
'rmcpplusopenresponse': 0x11,
|
||||
'rakp1': 0x12,
|
||||
'rakp2': 0x13,
|
||||
'rakp3': 0x14,
|
||||
'rakp4': 0x15,
|
||||
}
|
||||
|
||||
rmcp_codes = {
|
||||
1: 'Insufficient resources to create new session (wait for existing sessions to timeout)',
|
||||
2: 'Invalid Session ID',
|
||||
3: 'Invalid payload type',
|
||||
4: 'Invalid authentication algorithm',
|
||||
5: 'Invalid integrity algorithm',
|
||||
6: 'No matching integrity payload',
|
||||
7: 'No matching integrity payload',
|
||||
8: 'Inactive Session ID',
|
||||
9: 'Invalid role',
|
||||
0xa: 'Unauthorized role or privilege level requested',
|
||||
0xb: 'Insufficient resources tocreate a session at the requested role',
|
||||
0xc: 'Invalid username length',
|
||||
0xd: 'Unauthorized name',
|
||||
0xe: 'Unauthorized GUID',
|
||||
0xf: 'Invalid integrity check value',
|
||||
0x10: 'Invalid confidentiality algorithm',
|
||||
0x11: 'No Cipher suite match with proposed security algorithms',
|
||||
0x12: 'Illegal or unrecognized parameter',
|
||||
}
|
||||
|
||||
poller = select.poll()
|
||||
bmc_handlers = {}
|
||||
sessions_waiting = {}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user