blob: 7df2a606636dc4464a66d82089af097aee29cb8a [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 Yanitskiy72b90882020-10-21 05:07:34 +070090 ^ This command is hidden (check expert mode)
Vadim Yanitskiy7e1a78f2020-10-07 13:13:07 +070091 ! This command applies immediately
92 @ This command applies on VTY node exit
Vadim Yanitskiy9a28d3c2020-10-07 02:47:52 +070093 Library specific attributes:
94 A This command applies on ASP restart
Philipp Maiera5218ea2020-10-08 17:30:42 +020095 I This command applies on IPA link establishment
96 L This command applies on E1 line update
Vadim Yanitskiy9a28d3c2020-10-07 02:47:52 +070097 Application specific attributes:
98 u Unbelievable: not able to be believed; unlikely to be true
99 m Magnificent: impressively beautiful, elaborate, or extravagant
100 w Wonderful: inspiring delight, pleasure, or admiration
101 n Intentionally unused attribute, ignore me
102
103vty_transcript_test> en
104vty_transcript_test# configure terminal
105vty_transcript_test(config)# attribute-test
106
107vty_transcript_test(config-attr-test)# list
Vadim Yanitskiy72b90882020-10-21 05:07:34 +0700108... !foo-(hidden|deprecated)
Vadim Yanitskiy9a28d3c2020-10-07 02:47:52 +0700109 foo-immediate
110 foo-node-exit
111 app-unbelievable
112 app-magnificent
113 app-wonderful
114 app-unbelievable-magnificent
115 app-unbelievable-wonderful
Vadim Yanitskiy72b90882020-10-21 05:07:34 +0700116... !app-hidden-*
Vadim Yanitskiy9a28d3c2020-10-07 02:47:52 +0700117
118vty_transcript_test(config-attr-test)# list with-flags
Vadim Yanitskiy72b90882020-10-21 05:07:34 +0700119... !foo-(hidden|deprecated)
Vadim Yanitskiy7e1a78f2020-10-07 13:13:07 +0700120 ! ... foo-immediate
121 @ ... foo-node-exit
122 . u.. app-unbelievable
123 . .m. app-magnificent
124 . ..w app-wonderful
125 . um. app-unbelievable-magnificent
126 . u.w app-unbelievable-wonderful
Vadim Yanitskiy72b90882020-10-21 05:07:34 +0700127... !app-hidden-*
128
129vty_transcript_test(config-attr-test)# foo-deprecated?
130% There is no matched command.
131vty_transcript_test(config-attr-test)# foo-hidden?
132% There is no matched command.
133vty_transcript_test(config-attr-test)# app-hidden-unbelievable?
134% There is no matched command.
135
136vty_transcript_test(config-attr-test)# end
137vty_transcript_test# disable
138
139vty_transcript_test> enable?
140 enable Turn on privileged mode command
141vty_transcript_test> enable ?
142 [expert-mode] Enable the expert mode (show hidden commands)
143
144vty_transcript_test> enable expert-mode
145vty_transcript_test# configure terminal
146vty_transcript_test(config)# attribute-test
147
148vty_transcript_test(config-attr-test)# list
149... !foo-deprected
150 foo-hidden [expert-mode]
151 foo-immediate
152 foo-node-exit
153 app-unbelievable
154 app-magnificent
155 app-wonderful
156 app-unbelievable-magnificent
157 app-unbelievable-wonderful
158 app-hidden-unbelievable
159
160vty_transcript_test(config-attr-test)# list with-flags
161... !foo-deprected
162 ^ ... foo-hidden [expert-mode]
163 ! ... foo-immediate
164 @ ... foo-node-exit
165 . u.. app-unbelievable
166 . .m. app-magnificent
167 . ..w app-wonderful
168 . um. app-unbelievable-magnificent
169 . u.w app-unbelievable-wonderful
170 ^ u.. app-hidden-unbelievable
171
172vty_transcript_test(config-attr-test)# foo-deprecated?
173% There is no matched command.
174vty_transcript_test(config-attr-test)# foo-hidden?
175 foo-hidden This command is hidden
176vty_transcript_test(config-attr-test)# foo-hidden ?
177 [expert-mode] But can be seen in the expert mode
178vty_transcript_test(config-attr-test)# app-hidden-unbelievable?
179 app-hidden-unbelievable Hidden, but still unbelievable help message
Neels Hofmeyrcc9b6992023-05-01 02:59:01 +0200180
181vty_transcript_test(config-attr-test)# exit
182
183vty_transcript_test(config)# nest A
184vty_transcript_test(config-a)# state
185A
186vty_transcript_test(config-a)# nest B
187vty_transcript_test(config-b)# state
188B
189vty_transcript_test(config-b)# nest C
190vty_transcript_test(config-c)# state
191C
192vty_transcript_test(config-c)# exit
193vty_transcript_test(config-b)# state
Neels Hofmeyr67d84d22023-05-01 02:59:01 +0200194B
Neels Hofmeyrcc9b6992023-05-01 02:59:01 +0200195vty_transcript_test(config-b)# exit
196vty_transcript_test(config-a)# state
Neels Hofmeyr67d84d22023-05-01 02:59:01 +0200197A
Neels Hofmeyrcc9b6992023-05-01 02:59:01 +0200198vty_transcript_test(config-a)# nest B2
199vty_transcript_test(config-b)# state
200B2
201vty_transcript_test(config-b)# nest C2
202vty_transcript_test(config-c)# state
203C2
204vty_transcript_test(config-c)# exit
205vty_transcript_test(config-b)# state
Neels Hofmeyr67d84d22023-05-01 02:59:01 +0200206B2
Neels Hofmeyrcc9b6992023-05-01 02:59:01 +0200207vty_transcript_test(config-b)# exit
208vty_transcript_test(config-a)# state
Neels Hofmeyr67d84d22023-05-01 02:59:01 +0200209A