forked from netenglabs/suzieq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mlag.yml
111 lines (101 loc) · 3.46 KB
/
mlag.yml
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
service: mlag
show-fields:
- systemId
- state
- peerAddress
- role
- peerLink
- mlagDualPortsCnt
- mlagSinglePortsCnt
- mlagErrorPortsCnt
apply:
cumulus:
version: all
command: 'if [ -f "/etc/default/clagd" ]; then net show clag json; else echo {}; fi'
normalize: '[
"status/peerAlive: state",
"status/sysMac: systemId",
"status/peerIp: peerAddress",
"status/ourRole: role",
"status/peerRole: peerRole",
"status/peerId: peerMacAddress",
"status/peerIf: peerLink",
"peerLinkStatus: peerLinkStatus?|NA",
"status/backupActive: backupActive?|False",
"status/backupIp: backupIP",
"status/backupReason: backupReason?|",
"status/linklocal: usesLinkLocal?|False",
"status/domainId: domainId?|NA",
"status/vxlanAnycast: vtepIP",
"clagIntfs: mlagInterfacesList",
]'
sonic:
version: all
command: mclagdctl dump state
textfsm: textfsm_templates/sonic_mclag_dump_state.tfsm
eos:
version: all
command:
- command: show mlag detail
normalize: '[
"state: state?|disabled",
"systemId: systemId",
"peerAddress: peerAddress",
"peerLink: peerLink",
"status/peerRole: peerRole",
"detail/peerMacAddress: peerMacAddress",
"peerLinkStatus: peerLinkStatus",
"dualPrimaryDetectionState: backupActive?True|False",
"backupIP: backupIP?|NA",
"domainId: domainId",
"linklocal: usesLinkLocal?|False",
"vxlanAnycast: vtepIP?|NA",
"portsErrDisabled: portsErrDisabled",
"detail/mlagState: role",
"mlagPorts/Disabled: mlagErrorPortsCnt?|0",
"mlagPorts/Active-partial: mlagSinglePortsCnt?|0",
"mlagPorts/Active-full: mlagDualPortsCnt?|0",
"mlagPorts/Inactive: mlagErrorPortsCnt+mlagErrorPortsCnt",
"configSanity: configSanity?|"]'
- command: show mlag interfaces
normalize: '[
"interfaces/*/localInterface: _localInterfaceList?|[]",
"interfaces/*/status: _linkStateList?|[]"
]'
nxos:
version: all
command:
- command: show vpc | json
normalize: '[
"vpc-domain-id: domainId?|",
"vpc-peer-status: state",
"vpc-role: role",
"vpc-peer-status-reason: _reason",
"vpc-peer-consistency: configSanity",
"vpc-per-vlan-peer-consistency: _globalVlanConsistency",
"vpc-type-2-consistency: _globalType2Consistency ",
"virtual-peer-link: _virtualPeerlink",
"TABLE_peerlink/ROW_peerlink/peerlink-ifindex: peerLink",
"TABLE_peerlink/ROW_peerlink/peer-link-port-state: peerLinkStatus",
"TABLE_vpc/ROW_vpc/[*]?/vpc-ifindex: _portList?|[]",
"TABLE_vpc/ROW_vpc/[*]?/vpc-port-state: _portStateList",
"TABLE_vpc/ROW_vpc/[*]?/vpc-thru-peerlink: _forwardViaPeerLinkList",
"TABLE_vpc/ROW_vpc/[*]?/vpc-consistency: _portConfigSanityList",
]'
- command: show vpc peer-keepalive | json
normalize: '[
"vpc-keepalive-dest: peerAddress",
]'
- command: show vpc role | json
normalize: '[
"vpc-system-mac: systemId",
"vpc-peer-system-mac: peerMacAddress",
]'
- command: show nve interface nve 1 | json
normalize: 'TABLE_nve_if/ROW_nve_if/*?/[
"secondary-ip: vtepIP",
]'
- command: show vpc orphan-ports | json
normalize: '[
"TABLE_orphan_ports/ROW_orphan_ports/[*]?/vpc-orphan-ports: _orphanPortList",
]'