1
+ virtual_server 192.168.1.200 3306 {
2
+ lvs_sched rr
3
+ lvs_sched wrr
4
+ lvs_sched lc
5
+ lvs_sched wlc
6
+ lvs_sched lblc
7
+ lvs_sched sh
8
+ lvs_sched mh
9
+ lvs_sched dh
10
+ lvs_sched fo
11
+ lvs_sched ovf
12
+ lvs_sched lblcr
13
+ lvs_sched sed
14
+ lvs_sched nq
15
+
16
+ lvs_method NAT
17
+ lvs_method DR
18
+ lvs_method TUN
19
+
20
+ protocol TCP
21
+ protocol UDP
22
+ protocol SCTP
23
+ }
24
+
25
+ vrrp_instance test {
26
+ state MASTER
27
+ state BACKUP
28
+
29
+ authentication {
30
+ auth_type PASS
31
+ auth_type AH
32
+ }
33
+ }
34
+
35
+ DNS_CHECK {
36
+ type A
37
+ type NS
38
+ type CNAME
39
+ type SOA
40
+ type MX
41
+ type TXT
42
+ type AAAA
43
+ }
44
+
45
+ ----------------------------------------------------
46
+
47
+ [
48
+ ["property", "virtual_server"],
49
+ ["ip", "192.168.1.200"],
50
+ ["number", "3306"],
51
+ ["punctuation", "{"],
52
+ ["property", "lvs_sched"],
53
+ ["constant", "rr"],
54
+ ["property", "lvs_sched"],
55
+ ["constant", "wrr"],
56
+ ["property", "lvs_sched"],
57
+ ["constant", "lc"],
58
+ ["property", "lvs_sched"],
59
+ ["constant", "wlc"],
60
+ ["property", "lvs_sched"],
61
+ ["constant", "lblc"],
62
+ ["property", "lvs_sched"],
63
+ ["constant", "sh"],
64
+ ["property", "lvs_sched"],
65
+ ["constant", "mh"],
66
+ ["property", "lvs_sched"],
67
+ ["constant", "dh"],
68
+ ["property", "lvs_sched"],
69
+ ["constant", "fo"],
70
+ ["property", "lvs_sched"],
71
+ ["constant", "ovf"],
72
+ ["property", "lvs_sched"],
73
+ ["constant", "lblcr"],
74
+ ["property", "lvs_sched"],
75
+ ["constant", "sed"],
76
+ ["property", "lvs_sched"],
77
+ ["constant", "nq"],
78
+ ["property", "lvs_method"],
79
+ ["constant", "NAT"],
80
+ ["property", "lvs_method"],
81
+ ["constant", "DR"],
82
+ ["property", "lvs_method"],
83
+ ["constant", "TUN"],
84
+ ["property", "protocol"],
85
+ ["constant", "TCP"],
86
+ ["property", "protocol"],
87
+ ["constant", "UDP"],
88
+ ["property", "protocol"],
89
+ ["constant", "SCTP"],
90
+ ["punctuation", "}"],
91
+ ["property", "vrrp_instance"],
92
+ " test ",
93
+ ["punctuation", "{"],
94
+ ["property", "state"],
95
+ ["constant", "MASTER"],
96
+ ["property", "state"],
97
+ ["constant", "BACKUP"],
98
+ ["property", "authentication"],
99
+ ["punctuation", "{"],
100
+ ["property", "auth_type"],
101
+ ["constant", "PASS"],
102
+ ["property", "auth_type"],
103
+ ["constant", "AH"],
104
+ ["punctuation", "}"],
105
+ ["punctuation", "}"],
106
+ ["property", "DNS_CHECK"],
107
+ ["punctuation", "{"],
108
+ ["property", "type"],
109
+ ["constant", "A"],
110
+ ["property", "type"],
111
+ ["constant", "NS"],
112
+ ["property", "type"],
113
+ ["constant", "CNAME"],
114
+ ["property", "type"],
115
+ ["constant", "SOA"],
116
+ ["property", "type"],
117
+ ["constant", "MX"],
118
+ ["property", "type"],
119
+ ["constant", "TXT"],
120
+ ["property", "type"],
121
+ ["constant", "AAAA"],
122
+ ["punctuation", "}"]
123
+ ]
124
+
125
+ ----------------------------------------------------
126
+
127
+ Checks for constants, number, punctuations.
0 commit comments