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 | 7e1a78f | 2020-10-07 13:13:07 +0700 | [diff] [blame] | 90 | ! This command applies immediately |
| 91 | @ This command applies on VTY node exit |
Vadim Yanitskiy | 9a28d3c | 2020-10-07 02:47:52 +0700 | [diff] [blame] | 92 | Library specific attributes: |
| 93 | A This command applies on ASP restart |
Philipp Maier | a5218ea | 2020-10-08 17:30:42 +0200 | [diff] [blame] | 94 | I This command applies on IPA link establishment |
| 95 | L This command applies on E1 line update |
Vadim Yanitskiy | 9a28d3c | 2020-10-07 02:47:52 +0700 | [diff] [blame] | 96 | Application specific attributes: |
| 97 | u Unbelievable: not able to be believed; unlikely to be true |
| 98 | m Magnificent: impressively beautiful, elaborate, or extravagant |
| 99 | w Wonderful: inspiring delight, pleasure, or admiration |
| 100 | n Intentionally unused attribute, ignore me |
| 101 | |
| 102 | vty_transcript_test> en |
| 103 | vty_transcript_test# configure terminal |
| 104 | vty_transcript_test(config)# attribute-test |
| 105 | |
| 106 | vty_transcript_test(config-attr-test)# list |
| 107 | ... |
| 108 | foo-immediate |
| 109 | foo-node-exit |
| 110 | app-unbelievable |
| 111 | app-magnificent |
| 112 | app-wonderful |
| 113 | app-unbelievable-magnificent |
| 114 | app-unbelievable-wonderful |
| 115 | |
| 116 | vty_transcript_test(config-attr-test)# list with-flags |
| 117 | ... |
Vadim Yanitskiy | 7e1a78f | 2020-10-07 13:13:07 +0700 | [diff] [blame] | 118 | ! ... foo-immediate |
| 119 | @ ... foo-node-exit |
| 120 | . u.. app-unbelievable |
| 121 | . .m. app-magnificent |
| 122 | . ..w app-wonderful |
| 123 | . um. app-unbelievable-magnificent |
| 124 | . u.w app-unbelievable-wonderful |