Skip to content

Commit e2c8bce

Browse files
authored
Added cisco_viptela_show_control_connections (#2203)
1 parent e365541 commit e2c8bce

File tree

4 files changed

+301
-0
lines changed

4 files changed

+301
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Value INDEX (\d+)
2+
Value TYPE (\S+)
3+
Value PROTOCOL (\S+)
4+
Value SYSTEM_IP (\S+)
5+
Value SITE_ID (\d+)
6+
Value DOMAIN_ID (\d+)
7+
Value PRIVATE_IP (\S+)
8+
Value PRIVATE_PORT (\d+)
9+
Value PUBLIC_IP (\S+)
10+
Value PUBLIC_PORT (\d+)
11+
Value ORGANIZATION (\S+)
12+
Value REMOTE_COLOR (\S+)
13+
Value STATE (\S+)
14+
Value UPTIME (\S+)
15+
16+
17+
Start
18+
^\s*PEER\s*PEER
19+
^\s*PEER\s*PEER\s*PEER\s*SITE\s*DOMAIN\s*PEER\s*PRIV\s*PEER\s*PUB
20+
^\s*INDEX\s*TYPE\s*PROT\s*SYSTEM\s*IP\s*ID\s*ID\s*PRIVATE\s*IP\s*PORT\s*PUBLIC\s*IP\s*PORT\s*ORGANIZATION\s*REMOTE\s*COLOR\s*STATE\s*UPTIME
21+
^\s*--+$$
22+
^\s*${INDEX}\s+${TYPE}\s+${PROTOCOL}\s+${SYSTEM_IP}\s+${SITE_ID}\s+${DOMAIN_ID}\s+${PRIVATE_IP}\s+${PRIVATE_PORT}\s+${PUBLIC_IP}\s+${PUBLIC_PORT}\s+${ORGANIZATION}\s+${REMOTE_COLOR}\s+${STATE}\s+${UPTIME} -> Record
23+
^\s*$$
24+
^. -> Error

ntc_templates/templates/index

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,7 @@ cisco_s300_show_version.textfsm, .*, cisco_s300, sh[[ow]] ver[[sion]]
486486
cisco_s300_show_system.textfsm, .*, cisco_s300, sh[[ow]] system
487487
cisco_s300_show_vlan.textfsm, .*, cisco_s300, sh[[ow]] vlan
488488

489+
cisco_viptela_show_control_connections.textfsm, .*, cisco_viptela, sh[[ow]] con[[trol]] con[[nections]]
489490
cisco_viptela_show_interface.textfsm, .*, cisco_viptela, sh[[ow]] in[[terface]]
490491
cisco_viptela_show_arp.textfsm, .*, cisco_viptela, sh[[ow]] ar[[p]]
491492

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
PEER PEER
2+
PEER PEER PEER SITE DOMAIN PEER PRIV PEER PUB
3+
INDEX TYPE PROT SYSTEM IP ID ID PRIVATE IP PORT PUBLIC IP PORT ORGANIZATION REMOTE COLOR STATE UPTIME
4+
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
5+
0 vedge dtls 172.37.205.6 65123 1 192.168.2.14 12386 80.169.94.206 12386 network-SDWAN gold up 42:01:48:26
6+
0 vedge dtls 172.37.205.6 65123 1 212.145.174.58 12386 212.215.174.58 12386 network-SDWAN silver up 25:18:09:32
7+
0 vedge dtls 10.7.205.1 65221 1 10.1.242.4 12346 21.0.118.48 12346 network-SDWAN gold up 110:18:19:05
8+
0 vedge dtls 10.8.205.6 65222 1 10.2.242.5 12346 30.107.33.32 12346 network-SDWAN silver up 110:18:18:49
9+
0 vsmart dtls 10.94.3.250 222 1 10.94.3.70 12346 50.238.90.220 12346 network-SDWAN default up 59:12:30:33
10+
0 vbond dtls 10.94.3.249 0 0 20.203.233.139 12346 43.203.233.139 12346 network-SDWAN default up 110:18:19:19
11+
0 vbond dtls 10.94.2.249 0 0 20.214.51.185 12346 45.214.51.185 12346 network-SDWAN default up 110:18:19:19
12+
0 vmanage dtls 10.94.2.248 120 0 10.94.2.70 12346 56.117.133.18 12346 network-SDWAN default up 139:23:37:04
13+
1 vedge dtls 10.94.2.247 125 1 10.94.2.73 12386 51.145.96.212 12386 network-SDWAN gold up 110:18:04:58
14+
1 vedge dtls 10.8.205.1 65222 1 10.2.242.4 12346 78.117.13.0 12346 network-SDWAN gold up 110:18:19:19
15+
1 vbond dtls 10.94.3.249 0 0 20.223.213.139 12346 90.223.213.139 12346 network-SDWAN default up 110:18:19:24
16+
1 vbond dtls 10.94.2.249 0 0 20.254.81.185 12346 33.254.54.185 12346 network-SDWAN default up 110:18:19:24
17+
2 vedge dtls 172.37.205.1 65123 1 192.158.1.9 12386 222.115.191.254 12386 network-SDWAN silver up 25:18:09:48
18+
2 vedge dtls 172.37.205.1 65123 1 217.101.187.218 12346 247.121.187.218 12346 network-SDWAN gold up 42:01:48:24
19+
2 vedge dtls 172.31.127.1 65124 1 192.168.11.9 12406 183.81.133.71 12406 network-SDWAN silver up 51:02:00:29
20+
2 vedge dtls 172.31.127.6 65124 1 185.81.153.72 12386 182.89.193.72 12386 network-SDWAN silver up 51:02:00:34
21+
2 vedge dtls 172.31.127.6 65124 1 192.138.17.14 12426 222.121.2.79 12426 network-SDWAN gold up 103:02:15:50
22+
2 vedge dtls 172.31.127.1 65124 1 213.86.117.170 12346 203.86.147.170 12346 network-SDWAN gold up 110:18:19:14
Lines changed: 254 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,254 @@
1+
---
2+
parsed_sample:
3+
- domain_id: "1"
4+
index: "0"
5+
organization: "network-SDWAN"
6+
private_ip: "192.168.2.14"
7+
private_port: "12386"
8+
protocol: "dtls"
9+
public_ip: "80.169.94.206"
10+
public_port: "12386"
11+
remote_color: "gold"
12+
site_id: "65123"
13+
state: "up"
14+
system_ip: "172.37.205.6"
15+
type: "vedge"
16+
uptime: "42:01:48:26"
17+
- domain_id: "1"
18+
index: "0"
19+
organization: "network-SDWAN"
20+
private_ip: "212.145.174.58"
21+
private_port: "12386"
22+
protocol: "dtls"
23+
public_ip: "212.215.174.58"
24+
public_port: "12386"
25+
remote_color: "silver"
26+
site_id: "65123"
27+
state: "up"
28+
system_ip: "172.37.205.6"
29+
type: "vedge"
30+
uptime: "25:18:09:32"
31+
- domain_id: "1"
32+
index: "0"
33+
organization: "network-SDWAN"
34+
private_ip: "10.1.242.4"
35+
private_port: "12346"
36+
protocol: "dtls"
37+
public_ip: "21.0.118.48"
38+
public_port: "12346"
39+
remote_color: "gold"
40+
site_id: "65221"
41+
state: "up"
42+
system_ip: "10.7.205.1"
43+
type: "vedge"
44+
uptime: "110:18:19:05"
45+
- domain_id: "1"
46+
index: "0"
47+
organization: "network-SDWAN"
48+
private_ip: "10.2.242.5"
49+
private_port: "12346"
50+
protocol: "dtls"
51+
public_ip: "30.107.33.32"
52+
public_port: "12346"
53+
remote_color: "silver"
54+
site_id: "65222"
55+
state: "up"
56+
system_ip: "10.8.205.6"
57+
type: "vedge"
58+
uptime: "110:18:18:49"
59+
- domain_id: "1"
60+
index: "0"
61+
organization: "network-SDWAN"
62+
private_ip: "10.94.3.70"
63+
private_port: "12346"
64+
protocol: "dtls"
65+
public_ip: "50.238.90.220"
66+
public_port: "12346"
67+
remote_color: "default"
68+
site_id: "222"
69+
state: "up"
70+
system_ip: "10.94.3.250"
71+
type: "vsmart"
72+
uptime: "59:12:30:33"
73+
- domain_id: "0"
74+
index: "0"
75+
organization: "network-SDWAN"
76+
private_ip: "20.203.233.139"
77+
private_port: "12346"
78+
protocol: "dtls"
79+
public_ip: "43.203.233.139"
80+
public_port: "12346"
81+
remote_color: "default"
82+
site_id: "0"
83+
state: "up"
84+
system_ip: "10.94.3.249"
85+
type: "vbond"
86+
uptime: "110:18:19:19"
87+
- domain_id: "0"
88+
index: "0"
89+
organization: "network-SDWAN"
90+
private_ip: "20.214.51.185"
91+
private_port: "12346"
92+
protocol: "dtls"
93+
public_ip: "45.214.51.185"
94+
public_port: "12346"
95+
remote_color: "default"
96+
site_id: "0"
97+
state: "up"
98+
system_ip: "10.94.2.249"
99+
type: "vbond"
100+
uptime: "110:18:19:19"
101+
- domain_id: "0"
102+
index: "0"
103+
organization: "network-SDWAN"
104+
private_ip: "10.94.2.70"
105+
private_port: "12346"
106+
protocol: "dtls"
107+
public_ip: "56.117.133.18"
108+
public_port: "12346"
109+
remote_color: "default"
110+
site_id: "120"
111+
state: "up"
112+
system_ip: "10.94.2.248"
113+
type: "vmanage"
114+
uptime: "139:23:37:04"
115+
- domain_id: "1"
116+
index: "1"
117+
organization: "network-SDWAN"
118+
private_ip: "10.94.2.73"
119+
private_port: "12386"
120+
protocol: "dtls"
121+
public_ip: "51.145.96.212"
122+
public_port: "12386"
123+
remote_color: "gold"
124+
site_id: "125"
125+
state: "up"
126+
system_ip: "10.94.2.247"
127+
type: "vedge"
128+
uptime: "110:18:04:58"
129+
- domain_id: "1"
130+
index: "1"
131+
organization: "network-SDWAN"
132+
private_ip: "10.2.242.4"
133+
private_port: "12346"
134+
protocol: "dtls"
135+
public_ip: "78.117.13.0"
136+
public_port: "12346"
137+
remote_color: "gold"
138+
site_id: "65222"
139+
state: "up"
140+
system_ip: "10.8.205.1"
141+
type: "vedge"
142+
uptime: "110:18:19:19"
143+
- domain_id: "0"
144+
index: "1"
145+
organization: "network-SDWAN"
146+
private_ip: "20.223.213.139"
147+
private_port: "12346"
148+
protocol: "dtls"
149+
public_ip: "90.223.213.139"
150+
public_port: "12346"
151+
remote_color: "default"
152+
site_id: "0"
153+
state: "up"
154+
system_ip: "10.94.3.249"
155+
type: "vbond"
156+
uptime: "110:18:19:24"
157+
- domain_id: "0"
158+
index: "1"
159+
organization: "network-SDWAN"
160+
private_ip: "20.254.81.185"
161+
private_port: "12346"
162+
protocol: "dtls"
163+
public_ip: "33.254.54.185"
164+
public_port: "12346"
165+
remote_color: "default"
166+
site_id: "0"
167+
state: "up"
168+
system_ip: "10.94.2.249"
169+
type: "vbond"
170+
uptime: "110:18:19:24"
171+
- domain_id: "1"
172+
index: "2"
173+
organization: "network-SDWAN"
174+
private_ip: "192.158.1.9"
175+
private_port: "12386"
176+
protocol: "dtls"
177+
public_ip: "222.115.191.254"
178+
public_port: "12386"
179+
remote_color: "silver"
180+
site_id: "65123"
181+
state: "up"
182+
system_ip: "172.37.205.1"
183+
type: "vedge"
184+
uptime: "25:18:09:48"
185+
- domain_id: "1"
186+
index: "2"
187+
organization: "network-SDWAN"
188+
private_ip: "217.101.187.218"
189+
private_port: "12346"
190+
protocol: "dtls"
191+
public_ip: "247.121.187.218"
192+
public_port: "12346"
193+
remote_color: "gold"
194+
site_id: "65123"
195+
state: "up"
196+
system_ip: "172.37.205.1"
197+
type: "vedge"
198+
uptime: "42:01:48:24"
199+
- domain_id: "1"
200+
index: "2"
201+
organization: "network-SDWAN"
202+
private_ip: "192.168.11.9"
203+
private_port: "12406"
204+
protocol: "dtls"
205+
public_ip: "183.81.133.71"
206+
public_port: "12406"
207+
remote_color: "silver"
208+
site_id: "65124"
209+
state: "up"
210+
system_ip: "172.31.127.1"
211+
type: "vedge"
212+
uptime: "51:02:00:29"
213+
- domain_id: "1"
214+
index: "2"
215+
organization: "network-SDWAN"
216+
private_ip: "185.81.153.72"
217+
private_port: "12386"
218+
protocol: "dtls"
219+
public_ip: "182.89.193.72"
220+
public_port: "12386"
221+
remote_color: "silver"
222+
site_id: "65124"
223+
state: "up"
224+
system_ip: "172.31.127.6"
225+
type: "vedge"
226+
uptime: "51:02:00:34"
227+
- domain_id: "1"
228+
index: "2"
229+
organization: "network-SDWAN"
230+
private_ip: "192.138.17.14"
231+
private_port: "12426"
232+
protocol: "dtls"
233+
public_ip: "222.121.2.79"
234+
public_port: "12426"
235+
remote_color: "gold"
236+
site_id: "65124"
237+
state: "up"
238+
system_ip: "172.31.127.6"
239+
type: "vedge"
240+
uptime: "103:02:15:50"
241+
- domain_id: "1"
242+
index: "2"
243+
organization: "network-SDWAN"
244+
private_ip: "213.86.117.170"
245+
private_port: "12346"
246+
protocol: "dtls"
247+
public_ip: "203.86.147.170"
248+
public_port: "12346"
249+
remote_color: "gold"
250+
site_id: "65124"
251+
state: "up"
252+
system_ip: "172.31.127.1"
253+
type: "vedge"
254+
uptime: "110:18:19:14"

0 commit comments

Comments
 (0)