-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenums.py
86 lines (70 loc) · 1.16 KB
/
enums.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
from enum import Enum
class ForwardingMethod(Enum):
gate = 0
masq = 1
ipip = 2
class Scheduler(Enum):
"""
See: http://manpages.ubuntu.com/manpages/trusty/man8/ipvsadm.8.html
"""
rr = 0
wrr = 1
lc = 2
wlc = 3
lblc = 4
lblcr = 5
dh = 6
sh = 7
sed = 8
nq = 9
class ServerStatus(Enum):
starting = 0
running = 1
stopping = 2
reloading = 3
stopped = 4
unknown = 5
stale = 6
all = 255
class Service(Enum):
ftp = 21
smtp = 25
dns = 53
http = 80
pop = 110
nntp = 119
imap = 143
ldap = 389
https = 443
submission = 587
ldaps = 636 # newly added
imaps = 993
pops = 995
oracle = 1521
radius = 1812
http_proxy = 3128
mysql = 3306
pgsql = 5432
sip = 5060
class Checktype(Enum):
connect = 0
external = 1
negotiate = 2
off = 3
on = 4
ping = 5
negotiate_connect = 6
class HTTPMethod(Enum):
GET = 0
HEAD = 1
class Protocol(Enum):
tcp = 0
udp = 1
fwm = 3
class Action(Enum):
start = 0
stop = 1
restart = 2
reload = 3
status = 4
force_start = 5