aboutsummaryrefslogtreecommitdiffstats
path: root/tests/vty/vty_transcript_test.vty
blob: 28edf29c0e29a50001c3d22801661469ec6de794 (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
vty_transcript_test> list
...
  multi0 (one|two|three)
  multi1 ([one]|[two]|[three])
  multi2 [(one|two|three)]

vty_transcript_test> multi0 ?
  one    1
  two    2
  three  3

vty_transcript_test> multi0 one
ok argc=1 one

vty_transcript_test> multi0 two
ok argc=1 two

vty_transcript_test> multi0 o
ok argc=1 one

vty_transcript_test> multi0 t
% Ambiguous command.

vty_transcript_test> multi0 th
ok argc=1 three

vty_transcript_test> multi0
% Command incomplete.

vty_transcript_test> multi1 ?
  [one]    1
  [two]    2
  [three]  3

vty_transcript_test> multi1 one
ok argc=1 one

vty_transcript_test> multi1 two
ok argc=1 two

vty_transcript_test> multi1 o
ok argc=1 one

vty_transcript_test> multi1 t
% Ambiguous command.

vty_transcript_test> multi1 th
ok argc=1 three

vty_transcript_test> multi1
ok argc=0

vty_transcript_test> multi1 [one]
% Unknown command.

vty_transcript_test> multi2 ?
  [one]    1
  [two]    2
  [three]  3

vty_transcript_test> multi2 one
ok argc=1 one

vty_transcript_test> multi2 two
ok argc=1 two

vty_transcript_test> multi2
ok argc=0

vty_transcript_test> multi0 thr
ok argc=1 three

vty_transcript_test> multi1 on
ok argc=1 one

vty_transcript_test> multi2 t
% Ambiguous command.

vty_transcript_test> single0 one
ok argc=1 one

vty_transcript_test> single0 on
ok argc=1 one

vty_transcript_test> single0
ok argc=0

vty_transcript_test> show vty-attributes
  Global attributes:
    .  This command is deprecated
    .  This command is hidden
    .  This command applies immediately
    .  This command applies on VTY node exit
  Library specific attributes:
    A  This command applies on ASP restart
  Application specific attributes:
    u  Unbelievable: not able to be believed; unlikely to be true
    m  Magnificent: impressively beautiful, elaborate, or extravagant
    w  Wonderful: inspiring delight, pleasure, or admiration
    n  Intentionally unused attribute, ignore me

vty_transcript_test> en
vty_transcript_test# configure terminal
vty_transcript_test(config)# attribute-test

vty_transcript_test(config-attr-test)# list
...
  foo-immediate
  foo-node-exit
  app-unbelievable
  app-magnificent
  app-wonderful
  app-unbelievable-magnificent
  app-unbelievable-wonderful

vty_transcript_test(config-attr-test)# list with-flags
...
  ...  foo-immediate
  ...  foo-node-exit
  u..  app-unbelievable
  .m.  app-magnificent
  ..w  app-wonderful
  um.  app-unbelievable-magnificent
  u.w  app-unbelievable-wonderful