~matsubara/maas/1.2-test-merge

« back to all changes in this revision

Viewing changes to src/provisioningserver/enum.py

  • Committer: Tarmac
  • Author(s): Andres Rodriguez
  • Date: 2013-01-15 00:39:59 UTC
  • mfrom: (1345.2.2 maas-12.10)
  • Revision ID: tarmac-20130115003959-b80lmbxvlsf4ccjf
[r=julian-edwards][bug=1086162][author=andreserl] Thanks to Raphael for this patch. I tested it and fixed a minor issue. Otherwise seems to be working as expected.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
__metaclass__ = type
13
13
__all__ = [
14
14
    'ARP_HTYPE',
 
15
    'IPMI_DRIVER',
 
16
    'IPMI_DRIVER_CHOICES',
15
17
    'POWER_TYPE',
16
18
    'POWER_TYPE_CHOICES',
17
19
    ]
48
50
    )
49
51
 
50
52
 
 
53
class IPMI_DRIVER:
 
54
    DEFAULT = ''
 
55
    LAN = 'LAN'
 
56
    LAN_2_0 = 'LAN_2_0'
 
57
 
 
58
 
 
59
IPMI_DRIVER_CHOICES = (
 
60
    (IPMI_DRIVER.DEFAULT, "Auto-detect"),
 
61
    (IPMI_DRIVER.LAN, "LAN (IPMI 1.5)"),
 
62
    (IPMI_DRIVER.LAN_2_0, "LAN_2_0 (IPMI 2.0)"),
 
63
    )
 
64
 
 
65
 
51
66
class ARP_HTYPE:
52
67
    """ARP Hardware Type codes."""
53
68