Neels Hofmeyr | faa49e2 | 2019-01-31 09:06:53 +0100 | [diff] [blame] | 1 | vty_transcript_test> list |
| 2 | ... |
| 3 | multi0 (one|two|three) |
| 4 | multi1 ([one]|[two]|[three]) |
Neels Hofmeyr | b55f4d2 | 2019-01-31 08:13:31 +0100 | [diff] [blame] | 5 | multi2 [(one|two|three)] |
Neels Hofmeyr | faa49e2 | 2019-01-31 09:06:53 +0100 | [diff] [blame] | 6 | |
| 7 | vty_transcript_test> multi0 ? |
| 8 | one 1 |
| 9 | two 2 |
| 10 | three 3 |
| 11 | |
| 12 | vty_transcript_test> multi0 one |
| 13 | ok argc=1 one |
| 14 | |
| 15 | vty_transcript_test> multi0 two |
| 16 | ok argc=1 two |
| 17 | |
| 18 | vty_transcript_test> multi0 o |
Pau Espin Pedrol | 7e1b03f | 2019-06-12 14:47:48 +0200 | [diff] [blame] | 19 | ok argc=1 one |
Neels Hofmeyr | faa49e2 | 2019-01-31 09:06:53 +0100 | [diff] [blame] | 20 | |
| 21 | vty_transcript_test> multi0 t |
Pau Espin Pedrol | 6df2e44 | 2019-06-11 21:19:46 +0200 | [diff] [blame] | 22 | % Ambiguous command. |
Neels Hofmeyr | faa49e2 | 2019-01-31 09:06:53 +0100 | [diff] [blame] | 23 | |
| 24 | vty_transcript_test> multi0 th |
Pau Espin Pedrol | 7e1b03f | 2019-06-12 14:47:48 +0200 | [diff] [blame] | 25 | ok argc=1 three |
Neels Hofmeyr | faa49e2 | 2019-01-31 09:06:53 +0100 | [diff] [blame] | 26 | |
| 27 | vty_transcript_test> multi0 |
| 28 | % Command incomplete. |
| 29 | |
| 30 | vty_transcript_test> multi1 ? |
| 31 | [one] 1 |
| 32 | [two] 2 |
| 33 | [three] 3 |
| 34 | |
| 35 | vty_transcript_test> multi1 one |
| 36 | ok argc=1 one |
| 37 | |
| 38 | vty_transcript_test> multi1 two |
| 39 | ok argc=1 two |
| 40 | |
| 41 | vty_transcript_test> multi1 o |
Pau Espin Pedrol | 7e1b03f | 2019-06-12 14:47:48 +0200 | [diff] [blame] | 42 | ok argc=1 one |
Neels Hofmeyr | faa49e2 | 2019-01-31 09:06:53 +0100 | [diff] [blame] | 43 | |
| 44 | vty_transcript_test> multi1 t |
Pau Espin Pedrol | 6df2e44 | 2019-06-11 21:19:46 +0200 | [diff] [blame] | 45 | % Ambiguous command. |
Neels Hofmeyr | faa49e2 | 2019-01-31 09:06:53 +0100 | [diff] [blame] | 46 | |
| 47 | vty_transcript_test> multi1 th |
Pau Espin Pedrol | 7e1b03f | 2019-06-12 14:47:48 +0200 | [diff] [blame] | 48 | ok argc=1 three |
Neels Hofmeyr | faa49e2 | 2019-01-31 09:06:53 +0100 | [diff] [blame] | 49 | |
| 50 | vty_transcript_test> multi1 |
Neels Hofmeyr | c197809 | 2019-01-31 08:14:26 +0100 | [diff] [blame] | 51 | ok argc=0 |
Neels Hofmeyr | faa49e2 | 2019-01-31 09:06:53 +0100 | [diff] [blame] | 52 | |
| 53 | vty_transcript_test> multi1 [one] |
| 54 | % Unknown command. |
Neels Hofmeyr | b55f4d2 | 2019-01-31 08:13:31 +0100 | [diff] [blame] | 55 | |
| 56 | vty_transcript_test> multi2 ? |
| 57 | [one] 1 |
| 58 | [two] 2 |
| 59 | [three] 3 |
| 60 | |
| 61 | vty_transcript_test> multi2 one |
| 62 | ok argc=1 one |
| 63 | |
| 64 | vty_transcript_test> multi2 two |
| 65 | ok argc=1 two |
| 66 | |
| 67 | vty_transcript_test> multi2 |
| 68 | ok argc=0 |
Vadim Yanitskiy | 8c9befe | 2019-06-01 00:10:44 +0700 | [diff] [blame] | 69 | |
| 70 | vty_transcript_test> multi0 thr |
Pau Espin Pedrol | 7e1b03f | 2019-06-12 14:47:48 +0200 | [diff] [blame] | 71 | ok argc=1 three |
Vadim Yanitskiy | 8c9befe | 2019-06-01 00:10:44 +0700 | [diff] [blame] | 72 | |
| 73 | vty_transcript_test> multi1 on |
Pau Espin Pedrol | 7e1b03f | 2019-06-12 14:47:48 +0200 | [diff] [blame] | 74 | ok argc=1 one |
Vadim Yanitskiy | 8c9befe | 2019-06-01 00:10:44 +0700 | [diff] [blame] | 75 | |
| 76 | vty_transcript_test> multi2 t |
Pau Espin Pedrol | 6df2e44 | 2019-06-11 21:19:46 +0200 | [diff] [blame] | 77 | % Ambiguous command. |
Pau Espin Pedrol | 14aadd5 | 2019-06-12 18:34:34 +0200 | [diff] [blame] | 78 | |
| 79 | vty_transcript_test> single0 one |
| 80 | ok argc=1 one |
| 81 | |
| 82 | vty_transcript_test> single0 on |
Pau Espin Pedrol | 32e6710 | 2019-06-12 18:35:46 +0200 | [diff] [blame] | 83 | ok argc=1 one |
Pau Espin Pedrol | 14aadd5 | 2019-06-12 18:34:34 +0200 | [diff] [blame] | 84 | |
| 85 | vty_transcript_test> single0 |
| 86 | ok argc=0 |
Vadim Yanitskiy | 9a28d3c | 2020-10-07 02:47:52 +0700 | [diff] [blame] | 87 | |
| 88 | vty_transcript_test> show vty-attributes |
| 89 | Global attributes: |
Vadim Yanitskiy | 72b9088 | 2020-10-21 05:07:34 +0700 | [diff] [blame] | 90 | ^ This command is hidden (check expert mode) |
Vadim Yanitskiy | 7e1a78f | 2020-10-07 13:13:07 +0700 | [diff] [blame] | 91 | ! This command applies immediately |
| 92 | @ This command applies on VTY node exit |
Vadim Yanitskiy | 9a28d3c | 2020-10-07 02:47:52 +0700 | [diff] [blame] | 93 | Library specific attributes: |
| 94 | A This command applies on ASP restart |
Philipp Maier | a5218ea | 2020-10-08 17:30:42 +0200 | [diff] [blame] | 95 | I This command applies on IPA link establishment |
| 96 | L This command applies on E1 line update |
Vadim Yanitskiy | 9a28d3c | 2020-10-07 02:47:52 +0700 | [diff] [blame] | 97 | 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 | |
| 103 | vty_transcript_test> en |
| 104 | vty_transcript_test# configure terminal |
| 105 | vty_transcript_test(config)# attribute-test |
| 106 | |
| 107 | vty_transcript_test(config-attr-test)# list |
Vadim Yanitskiy | 72b9088 | 2020-10-21 05:07:34 +0700 | [diff] [blame] | 108 | ... !foo-(hidden|deprecated) |
Vadim Yanitskiy | 9a28d3c | 2020-10-07 02:47:52 +0700 | [diff] [blame] | 109 | foo-immediate |
| 110 | foo-node-exit |
| 111 | app-unbelievable |
| 112 | app-magnificent |
| 113 | app-wonderful |
| 114 | app-unbelievable-magnificent |
| 115 | app-unbelievable-wonderful |
Vadim Yanitskiy | 72b9088 | 2020-10-21 05:07:34 +0700 | [diff] [blame] | 116 | ... !app-hidden-* |
Vadim Yanitskiy | 9a28d3c | 2020-10-07 02:47:52 +0700 | [diff] [blame] | 117 | |
| 118 | vty_transcript_test(config-attr-test)# list with-flags |
Vadim Yanitskiy | 72b9088 | 2020-10-21 05:07:34 +0700 | [diff] [blame] | 119 | ... !foo-(hidden|deprecated) |
Vadim Yanitskiy | 7e1a78f | 2020-10-07 13:13:07 +0700 | [diff] [blame] | 120 | ! ... 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 Yanitskiy | 72b9088 | 2020-10-21 05:07:34 +0700 | [diff] [blame] | 127 | ... !app-hidden-* |
| 128 | |
| 129 | vty_transcript_test(config-attr-test)# foo-deprecated? |
| 130 | % There is no matched command. |
| 131 | vty_transcript_test(config-attr-test)# foo-hidden? |
| 132 | % There is no matched command. |
| 133 | vty_transcript_test(config-attr-test)# app-hidden-unbelievable? |
| 134 | % There is no matched command. |
| 135 | |
| 136 | vty_transcript_test(config-attr-test)# end |
| 137 | vty_transcript_test# disable |
| 138 | |
| 139 | vty_transcript_test> enable? |
| 140 | enable Turn on privileged mode command |
| 141 | vty_transcript_test> enable ? |
| 142 | [expert-mode] Enable the expert mode (show hidden commands) |
| 143 | |
| 144 | vty_transcript_test> enable expert-mode |
| 145 | vty_transcript_test# configure terminal |
| 146 | vty_transcript_test(config)# attribute-test |
| 147 | |
| 148 | vty_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 | |
| 160 | vty_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 | |
| 172 | vty_transcript_test(config-attr-test)# foo-deprecated? |
| 173 | % There is no matched command. |
| 174 | vty_transcript_test(config-attr-test)# foo-hidden? |
| 175 | foo-hidden This command is hidden |
| 176 | vty_transcript_test(config-attr-test)# foo-hidden ? |
| 177 | [expert-mode] But can be seen in the expert mode |
| 178 | vty_transcript_test(config-attr-test)# app-hidden-unbelievable? |
| 179 | app-hidden-unbelievable Hidden, but still unbelievable help message |