Branch
Hash :
d908e457
Author :
Date :
2021-10-03T22:39:07
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 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
virtual_server 192.168.1.200 3306 {
lvs_sched rr
lvs_sched wrr
lvs_sched lc
lvs_sched wlc
lvs_sched lblc
lvs_sched sh
lvs_sched mh
lvs_sched dh
lvs_sched fo
lvs_sched ovf
lvs_sched lblcr
lvs_sched sed
lvs_sched nq
lvs_method NAT
lvs_method DR
lvs_method TUN
protocol TCP
protocol UDP
protocol SCTP
}
vrrp_instance test {
state MASTER
state BACKUP
authentication {
auth_type PASS
auth_type AH
}
}
DNS_CHECK {
type A
type NS
type CNAME
type SOA
type MX
type TXT
type AAAA
}
----------------------------------------------------
[
["property", "virtual_server"],
["ip", "192.168.1.200"],
["number", "3306"],
["punctuation", "{"],
["property", "lvs_sched"],
["constant", "rr"],
["property", "lvs_sched"],
["constant", "wrr"],
["property", "lvs_sched"],
["constant", "lc"],
["property", "lvs_sched"],
["constant", "wlc"],
["property", "lvs_sched"],
["constant", "lblc"],
["property", "lvs_sched"],
["constant", "sh"],
["property", "lvs_sched"],
["constant", "mh"],
["property", "lvs_sched"],
["constant", "dh"],
["property", "lvs_sched"],
["constant", "fo"],
["property", "lvs_sched"],
["constant", "ovf"],
["property", "lvs_sched"],
["constant", "lblcr"],
["property", "lvs_sched"],
["constant", "sed"],
["property", "lvs_sched"],
["constant", "nq"],
["property", "lvs_method"],
["constant", "NAT"],
["property", "lvs_method"],
["constant", "DR"],
["property", "lvs_method"],
["constant", "TUN"],
["property", "protocol"],
["constant", "TCP"],
["property", "protocol"],
["constant", "UDP"],
["property", "protocol"],
["constant", "SCTP"],
["punctuation", "}"],
["property", "vrrp_instance"],
" test ",
["punctuation", "{"],
["property", "state"],
["constant", "MASTER"],
["property", "state"],
["constant", "BACKUP"],
["property", "authentication"],
["punctuation", "{"],
["property", "auth_type"],
["constant", "PASS"],
["property", "auth_type"],
["constant", "AH"],
["punctuation", "}"],
["punctuation", "}"],
["property", "DNS_CHECK"],
["punctuation", "{"],
["property", "type"],
["constant", "A"],
["property", "type"],
["constant", "NS"],
["property", "type"],
["constant", "CNAME"],
["property", "type"],
["constant", "SOA"],
["property", "type"],
["constant", "MX"],
["property", "type"],
["constant", "TXT"],
["property", "type"],
["constant", "AAAA"],
["punctuation", "}"]
]
----------------------------------------------------
Checks for constants, number, punctuations.