blob: b626f3db738434696b8d68761a5afeb2c651be1e [file] [log] [blame]
Neels Hofmeyrfaa49e22019-01-31 09:06:53 +01001vty_transcript_test> list
2...
3 multi0 (one|two|three)
4 multi1 ([one]|[two]|[three])
Neels Hofmeyrb55f4d22019-01-31 08:13:31 +01005 multi2 [(one|two|three)]
Neels Hofmeyrfaa49e22019-01-31 09:06:53 +01006
7vty_transcript_test> multi0 ?
8 one 1
9 two 2
10 three 3
11
12vty_transcript_test> multi0 one
13ok argc=1 one
14
15vty_transcript_test> multi0 two
16ok argc=1 two
17
18vty_transcript_test> multi0 o
Pau Espin Pedrol7e1b03f2019-06-12 14:47:48 +020019ok argc=1 one
Neels Hofmeyrfaa49e22019-01-31 09:06:53 +010020
21vty_transcript_test> multi0 t
Pau Espin Pedrol6df2e442019-06-11 21:19:46 +020022% Ambiguous command.
Neels Hofmeyrfaa49e22019-01-31 09:06:53 +010023
24vty_transcript_test> multi0 th
Pau Espin Pedrol7e1b03f2019-06-12 14:47:48 +020025ok argc=1 three
Neels Hofmeyrfaa49e22019-01-31 09:06:53 +010026
27vty_transcript_test> multi0
28% Command incomplete.
29
30vty_transcript_test> multi1 ?
31 [one] 1
32 [two] 2
33 [three] 3
34
35vty_transcript_test> multi1 one
36ok argc=1 one
37
38vty_transcript_test> multi1 two
39ok argc=1 two
40
41vty_transcript_test> multi1 o
Pau Espin Pedrol7e1b03f2019-06-12 14:47:48 +020042ok argc=1 one
Neels Hofmeyrfaa49e22019-01-31 09:06:53 +010043
44vty_transcript_test> multi1 t
Pau Espin Pedrol6df2e442019-06-11 21:19:46 +020045% Ambiguous command.
Neels Hofmeyrfaa49e22019-01-31 09:06:53 +010046
47vty_transcript_test> multi1 th
Pau Espin Pedrol7e1b03f2019-06-12 14:47:48 +020048ok argc=1 three
Neels Hofmeyrfaa49e22019-01-31 09:06:53 +010049
50vty_transcript_test> multi1
Neels Hofmeyrc1978092019-01-31 08:14:26 +010051ok argc=0
Neels Hofmeyrfaa49e22019-01-31 09:06:53 +010052
53vty_transcript_test> multi1 [one]
54% Unknown command.
Neels Hofmeyrb55f4d22019-01-31 08:13:31 +010055
56vty_transcript_test> multi2 ?
57 [one] 1
58 [two] 2
59 [three] 3
60
61vty_transcript_test> multi2 one
62ok argc=1 one
63
64vty_transcript_test> multi2 two
65ok argc=1 two
66
67vty_transcript_test> multi2
68ok argc=0
Vadim Yanitskiy8c9befe2019-06-01 00:10:44 +070069
70vty_transcript_test> multi0 thr
Pau Espin Pedrol7e1b03f2019-06-12 14:47:48 +020071ok argc=1 three
Vadim Yanitskiy8c9befe2019-06-01 00:10:44 +070072
73vty_transcript_test> multi1 on
Pau Espin Pedrol7e1b03f2019-06-12 14:47:48 +020074ok argc=1 one
Vadim Yanitskiy8c9befe2019-06-01 00:10:44 +070075
76vty_transcript_test> multi2 t
Pau Espin Pedrol6df2e442019-06-11 21:19:46 +020077% Ambiguous command.
Pau Espin Pedrol14aadd52019-06-12 18:34:34 +020078
79vty_transcript_test> single0 one
80ok argc=1 one
81
82vty_transcript_test> single0 on
Pau Espin Pedrol32e67102019-06-12 18:35:46 +020083ok argc=1 one
Pau Espin Pedrol14aadd52019-06-12 18:34:34 +020084
85vty_transcript_test> single0
86ok argc=0
Vadim Yanitskiy9a28d3c2020-10-07 02:47:52 +070087
88vty_transcript_test> show vty-attributes
89 Global attributes:
Vadim Yanitskiy7e1a78f2020-10-07 13:13:07 +070090 ! This command applies immediately
91 @ This command applies on VTY node exit
Vadim Yanitskiy9a28d3c2020-10-07 02:47:52 +070092 Library specific attributes:
93 A This command applies on ASP restart
94 Application specific attributes:
95 u Unbelievable: not able to be believed; unlikely to be true
96 m Magnificent: impressively beautiful, elaborate, or extravagant
97 w Wonderful: inspiring delight, pleasure, or admiration
98 n Intentionally unused attribute, ignore me
99
100vty_transcript_test> en
101vty_transcript_test# configure terminal
102vty_transcript_test(config)# attribute-test
103
104vty_transcript_test(config-attr-test)# list
105...
106 foo-immediate
107 foo-node-exit
108 app-unbelievable
109 app-magnificent
110 app-wonderful
111 app-unbelievable-magnificent
112 app-unbelievable-wonderful
113
114vty_transcript_test(config-attr-test)# list with-flags
115...
Vadim Yanitskiy7e1a78f2020-10-07 13:13:07 +0700116 ! ... foo-immediate
117 @ ... foo-node-exit
118 . u.. app-unbelievable
119 . .m. app-magnificent
120 . ..w app-wonderful
121 . um. app-unbelievable-magnificent
122 . u.w app-unbelievable-wonderful