summaryrefslogtreecommitdiffstats
path: root/tests/lib/cli/test_cli.refout.in
blob: 84365810d51110f3abeb9d2cc638ce18b70167b0 (plain)
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
test# echo this is a  test message
this is a test message
test# echo  foo bla  
% There is no matched command.
test# echo  foo bla    baz
foo bla baz
test# echo
% Command incomplete.
test# 
test# arg ipv4 1.2.3.4
cmd0 with 3 args.
[00] arg@(null): arg
[01] ipv4@(null): ipv4
[02] A.B.C.D@ipv4: 1.2.3.4
test# arg ipv4 1.2.
  A.B.C.D  02
test# arg ipv4 1.2.3.4
cmd0 with 3 args.
[00] arg@(null): arg
[01] ipv4@(null): ipv4
[02] A.B.C.D@ipv4: 1.2.3.4
test# arg ipv4 1.2.3
% [NONE] Unknown command: arg ipv4 1.2.3
test# arg ipv4 1.2.3.4.5
% [NONE] Unknown command: arg ipv4 1.2.3.4.5
test# arg ipv4 1.a.3.4
% [NONE] Unknown command: arg ipv4 1.a.3.4
test# arg ipv4 blah
% [NONE] Unknown command: arg ipv4 blah
test# 
test# arg ipv4m 1.2.3.0/24
cmd1 with 3 args.
[00] arg@(null): arg
[01] ipv4m@(null): ipv4m
[02] A.B.C.D/M@ipv4m: 1.2.3.0/24
test# arg ipv4m 1.2.
  A.B.C.D/M  02
test# arg ipv4m 1.2.3.0/24
cmd1 with 3 args.
[00] arg@(null): arg
[01] ipv4m@(null): ipv4m
[02] A.B.C.D/M@ipv4m: 1.2.3.0/24
test# arg ipv4m 1.2.3/9
% [NONE] Unknown command: arg ipv4m 1.2.3/9
test# arg ipv4m 1.2.3.4.5/6
% [NONE] Unknown command: arg ipv4m 1.2.3.4.5/6
test# arg ipv4m 1.a.3.4
% [NONE] Unknown command: arg ipv4m 1.a.3.4
test# arg ipv4m blah
% [NONE] Unknown command: arg ipv4m blah
test# arg ipv4m 1.2.3.0/999
% [NONE] Unknown command: arg ipv4m 1.2.3.0/999
test# arg ipv4m 1.2.3.0/a9
% [NONE] Unknown command: arg ipv4m 1.2.3.0/a9
test# arg ipv4m 1.2.3.0/9a
% [NONE] Unknown command: arg ipv4m 1.2.3.0/9a
test# 
test# arg ipv6 de4d:b33f::cafe
cmd2 with 3 args.
[00] arg@(null): arg
[01] ipv6@(null): ipv6
[02] X:X::X:X@foo: de4d:b33f::cafe
test# arg ipv6 de4d:b3
  X:X::X:X  02
test# arg ipv6 de4d:b33f::caf
  X:X::X:X  02
test# arg ipv6 de4d:b33f::cafe
cmd2 with 3 args.
[00] arg@(null): arg
[01] ipv6@(null): ipv6
[02] X:X::X:X@foo: de4d:b33f::cafe
test# arg ipv6 de4d:b3
test# arg ipv6 de4d:b33f::caf
  X:X::X:X  02
test# arg ipv6 de4d:b33f::cafe
cmd2 with 3 args.
[00] arg@(null): arg
[01] ipv6@(null): ipv6
[02] X:X::X:X@foo: de4d:b33f::cafe
test# arg ipv6 de4d:b33f:z::cafe
% [NONE] Unknown command: arg ipv6 de4d:b33f:z::cafe
test# arg ipv6 de4d:b33f:cafe:
% [NONE] Unknown command: arg ipv6 de4d:b33f:cafe:
test# arg ipv6 ::
cmd2 with 3 args.
[00] arg@(null): arg
[01] ipv6@(null): ipv6
[02] X:X::X:X@foo: ::
test# arg ipv6 ::/
% [NONE] Unknown command: arg ipv6 ::/
test# arg ipv6 1:2:3:4:5:6:7:8:9:0:1:2:3:4:5:6:7:8:9:0:1:2:3:4:5:6:7:8:9:0
% [NONE] Unknown command: arg ipv6 1:2:3:4:5:6:7:8:9:0:1:2:3:4:5:6:7:8:9:0:1:2:3:4:5:6:7:8:9:0
test# arg ipv6 12::34::56
% [NONE] Unknown command: arg ipv6 12::34::56
test# arg ipv6m dead:beef:cafe::/64
cmd3 with 3 args.
[00] arg@(null): arg
[01] ipv6m@(null): ipv6m
[02] X:X::X:X/M@ipv6m: dead:beef:cafe::/64
test# arg ipv6m dead:be
  X:X::X:X/M  02
test# arg ipv6m dead:beef:cafe:
  X:X::X:X/M  02
test# arg ipv6m dead:beef:cafe::/64
cmd3 with 3 args.
[00] arg@(null): arg
[01] ipv6m@(null): ipv6m
[02] X:X::X:X/M@ipv6m: dead:beef:cafe::/64
test# 
test# arg range 4
% [NONE] Unknown command: arg range 4
test# arg range 5
cmd4 with 3 args.
[00] arg@(null): arg
[01] range@(null): range
[02] (5-15)@range: 5
test# arg range 9
  (5-15)  02
test# arg range 9
cmd4 with 3 args.
[00] arg@(null): arg
[01] range@(null): range
[02] (5-15)@range: 9
test# arg range 15
cmd4 with 3 args.
[00] arg@(null): arg
[01] range@(null): range
[02] (5-15)@range: 15
test# arg range 16
% [NONE] Unknown command: arg range 16
test# arg range -1
% [NONE] Unknown command: arg range -1
test# arg range 99999999999999999999999999999999999999999
% [NONE] Unknown command: arg range 99999999999999999999999999999999999999999
test# 
test# arg 
  ipv4   01
  ipv4m  01
  ipv6   01
  ipv6m  01
  range  01
test# arg 
% Command incomplete.
test# 
test# pa
test# papat 
% Command incomplete.
test# pat 
a          b          c          d          e          f          
g          h          
test# pat 
% Command incomplete.
test# 
test# pat a
% Command incomplete.
test# pat a a
cmd5 with 3 args.
[00] pat@(null): pat
[01] a@(null): a
[02] a@(null): a
test# pat a 
  a  02
  b  03
test# pat a b
cmd5 with 3 args.
[00] pat@(null): pat
[01] a@(null): a
[02] b@(null): b
test# pat a c
% There is no matched command.
test# pat a c
% [NONE] Unknown command: pat a c
test# pat a a x
% [NONE] Unknown command: pat a a x
test# 
test# pat c a
% Command incomplete.
test# pat c a 1.2.3.4
cmd7 with 4 args.
[00] pat@(null): pat
[01] c@(null): c
[02] a@(null): a
[03] A.B.C.D@(null): 1.2.3.4
test# pat c b 2.3.4
% [NONE] Unknown command: pat c b 2.3.4
test# pat c c 
  A.B.C.D  05
test# pat c c x
% [NONE] Unknown command: pat c c x
test# 
test# pat d
% Command incomplete.
test# pat d 
bar        baz        foo        
test# pat d 
% Command incomplete.
test# pat d foo 1.2.3.4
cmd8 with 4 args.
[00] pat@(null): pat
[01] d@(null): d
[02] foo@(null): foo
[03] A.B.C.D@foo: 1.2.3.4
test# pat d foo
% Command incomplete.
test# pat d noooo
% [NONE] Unknown command: pat d noooo
test# pat d bar 1::2
cmd8 with 4 args.
[00] pat@(null): pat
[01] d@(null): d
[02] bar@(null): bar
[03] X:X::X:X@bar: 1::2
test# pat d bar 1::2 foo 3.4.5.6
cmd8 with 6 args.
[00] pat@(null): pat
[01] d@(null): d
[02] bar@(null): bar
[03] X:X::X:X@bar: 1::2
[04] foo@(null): foo
[05] A.B.C.D@foo: 3.4.5.6
test# pat d ba
  bar  04
  baz  06
test# pat d baz
cmd8 with 3 args.
[00] pat@(null): pat
[01] d@(null): d
[02] baz@(null): baz
test# pat d foo 3.4.5.6 baz
cmd8 with 5 args.
[00] pat@(null): pat
[01] d@(null): d
[02] foo@(null): foo
[03] A.B.C.D@foo: 3.4.5.6
[04] baz@(null): baz
test# 
test# pat e
cmd9 with 2 args.
[00] pat@(null): pat
[01] e@(null): e
test# pat e f
cmd9 with 3 args.
[00] pat@(null): pat
[01] e@(null): e
[02] WORD@e: f
test# pat e f g
% [NONE] Unknown command: pat e f g
test# pat e 1.2.3.4
cmd9 with 3 args.
[00] pat@(null): pat
[01] e@(null): e
[02] WORD@e: 1.2.3.4
test# 
test# pat f
cmd10 with 2 args.
[00] pat@(null): pat
[01] f@(null): f
test# pat f foo
% [NONE] Unknown command: pat f foo
test# pat f key
cmd10 with 3 args.
[00] pat@(null): pat
[01] f@(null): f
[02] key@(null): key
test# 
test# no pat g
cmd15 with 3 args.
[00] no@(null): no
[01] pat@(null): pat
[02] g@(null): g
test# no pat g test
cmd15 with 4 args.
[00] no@(null): no
[01] pat@(null): pat
[02] g@(null): g
[03] WORD@g: test
test# no pat g test more
% [NONE] Unknown command: no pat g test more
test# 
test# pat h foo 
  A.B.C.D  04
test# pat h foo 1.2.3.4 final
cmd16 with 5 args.
[00] pat@(null): pat
[01] h@(null): h
[02] foo@(null): foo
[03] A.B.C.D@foo: 1.2.3.4
[04] final@(null): final
test# no pat h foo 
  A.B.C.D  04
  bar      05
  final    07
test# no pat h foo 1.2.3.4 final
cmd16 with 6 args.
[00] no@no: no
[01] pat@(null): pat
[02] h@(null): h
[03] foo@(null): foo
[04] A.B.C.D@foo: 1.2.3.4
[05] final@(null): final
test# pat h foo final
% [NONE] Unknown command: pat h foo final
test# no pat h foo final
cmd16 with 5 args.
[00] no@no: no
[01] pat@(null): pat
[02] h@(null): h
[03] foo@(null): foo
[04] final@(null): final
test# pat h bar final
% [NONE] Unknown command: pat h bar final
test# no pat h bar final
% [NONE] Unknown command: no pat h bar final
test# pat h bar 1::2 final
cmd16 with 5 args.
[00] pat@(null): pat
[01] h@(null): h
[02] bar@(null): bar
[03] X:X::X:X@bar: 1::2
[04] final@(null): final
test# no pat h bar 1::2 final
cmd16 with 6 args.
[00] no@no: no
[01] pat@(null): pat
[02] h@(null): h
[03] bar@(null): bar
[04] X:X::X:X@bar: 1::2
[05] final@(null): final
test# pat h bar 1::2 foo final
% [NONE] Unknown command: pat h bar 1::2 foo final
test# no pat h bar 1::2 foo final
cmd16 with 7 args.
[00] no@no: no
[01] pat@(null): pat
[02] h@(null): h
[03] bar@(null): bar
[04] X:X::X:X@bar: 1::2
[05] foo@(null): foo
[06] final@(null): final
test# pat h bar 1::2 foo 1.2.3.4 final
cmd16 with 7 args.
[00] pat@(null): pat
[01] h@(null): h
[02] bar@(null): bar
[03] X:X::X:X@bar: 1::2
[04] foo@(null): foo
[05] A.B.C.D@foo: 1.2.3.4
[06] final@(null): final
test# no pat h bar 1::2 foo 1.2.3.4 final
cmd16 with 8 args.
[00] no@no: no
[01] pat@(null): pat
[02] h@(null): h
[03] bar@(null): bar
[04] X:X::X:X@bar: 1::2
[05] foo@(null): foo
[06] A.B.C.D@foo: 1.2.3.4
[07] final@(null): final
test# 
test# alt a 
test# alt a a
  WORD      02
  X:X::X:X  02
test# alt a ab
cmd11 with 3 args.
[00] alt@(null): alt
[01] a@(null): a
[02] WORD@a: ab
test# alt a 1
test# alt a 1.2
  A.B.C.D  02
  WORD     02
test# alt a 1.2.3.4
cmd12 with 3 args.
[00] alt@(null): alt
[01] a@(null): a
[02] A.B.C.D@a: 1.2.3.4
test# alt a 1
test# alt a 1:2
  WORD      02
  X:X::X:X  02
test# alt a 1:2
test# alt a 1:2::
  WORD      02
  X:X::X:X  02
test# alt a 1:2::3
cmd13 with 3 args.
[00] alt@(null): alt
[01] a@(null): a
[02] X:X::X:X@a: 1:2::3
test# 
test# conf t
test(config)# do pat d baz
cmd8 with 3 args.
[00] pat@(null): pat
[01] d@(null): d
[02] baz@(null): baz
test(config)# exit
test# 
test# show run

Current configuration:
!
frr version @PACKAGE_VERSION@
frr defaults @DFLT_NAME@
!
hostname test
domainname test.domain
!
!
!
!
end
test# conf t
test(config)# hostname foohost
foohost(config)# do show run

Current configuration:
!
frr version @PACKAGE_VERSION@
frr defaults @DFLT_NAME@
!
hostname foohost
domainname test.domain
!
!
!
!
end
foohost(config)# 
end.