@@ -160,27 +160,27 @@ parser, but this is merely a dumb copy job.
160
160
161
161
Here is a brief summary of the various token types along with examples.
162
162
163
- +-----------------+-----------------+-------------------------------------------------------------+
164
- | Token type | Syntax | Description |
165
- +=================+=================+=============================================================+
166
- | ``WORD `` | ``show ip bgp `` | Matches itself. In the given example every token is a WORD. |
167
- +-----------------+-----------------+-------------------------------------------------------------+
168
- | ``IPV4 `` | ``A.B.C.D `` | Matches an IPv4 address. |
169
- +-----------------+-----------------+-------------------------------------------------------------+
170
- | ``IPV6 `` | ``X:X::X:X `` | Matches an IPv6 address. |
171
- +-----------------+-----------------+-------------------------------------------------------------+
172
- | ``IPV4_PREFIX `` | ``A.B.C.D/M `` | Matches an IPv4 prefix in CIDR notation. |
173
- +-----------------+-----------------+-------------------------------------------------------------+
174
- | ``IPV6_PREFIX `` | ``X:X::X:X/M `` | Matches an IPv6 prefix in CIDR notation. |
175
- +-----------------+-----------------+-------------------------------------------------------------+
176
- | ``MAC `` | ``M:A:C `` | Matches a 48-bit mac address. |
177
- +-----------------+-----------------+-------------------------------------------------------------+
178
- | ``MAC_PREFIX `` | ``M:A:C /M `` | Matches a 48-bit mac address with a mask. |
179
- +-----------------+-----------------+-------------------------------------------------------------+
180
- | ``VARIABLE `` | ``FOOBAR `` | Matches anything. |
181
- +-----------------+-----------------+-------------------------------------------------------------+
182
- | ``RANGE `` | ``(X-Y) `` | Matches numbers in the range X..Y inclusive. |
183
- +-----------------+-----------------+-------------------------------------------------------------+
163
+ +-----------------+------------------- +-------------------------------------------------------------+
164
+ | Token type | Syntax | Description |
165
+ +=================+=================== +=============================================================+
166
+ | ``WORD `` | ``show ip bgp `` | Matches itself. In the given example every token is a WORD. |
167
+ +-----------------+------------------- +-------------------------------------------------------------+
168
+ | ``IPV4 `` | ``A.B.C.D `` | Matches an IPv4 address. |
169
+ +-----------------+------------------- +-------------------------------------------------------------+
170
+ | ``IPV6 `` | ``X:X::X:X `` | Matches an IPv6 address. |
171
+ +-----------------+------------------- +-------------------------------------------------------------+
172
+ | ``IPV4_PREFIX `` | ``A.B.C.D/M `` | Matches an IPv4 prefix in CIDR notation. |
173
+ +-----------------+------------------- +-------------------------------------------------------------+
174
+ | ``IPV6_PREFIX `` | ``X:X::X:X/M `` | Matches an IPv6 prefix in CIDR notation. |
175
+ +-----------------+------------------- +-------------------------------------------------------------+
176
+ | ``MAC `` | ``X:X:X:X:X:X `` | Matches a 48-bit mac address. |
177
+ +-----------------+------------------- +-------------------------------------------------------------+
178
+ | ``MAC_PREFIX `` | ``X:X:X:X:X:X /M `` | Matches a 48-bit mac address with a mask. |
179
+ +-----------------+------------------- +-------------------------------------------------------------+
180
+ | ``VARIABLE `` | ``FOOBAR `` | Matches anything. |
181
+ +-----------------+------------------- +-------------------------------------------------------------+
182
+ | ``RANGE `` | ``(X-Y) `` | Matches numbers in the range X..Y inclusive. |
183
+ +-----------------+------------------- +-------------------------------------------------------------+
184
184
185
185
When presented with user input, the parser will search over all defined
186
186
commands in the current context to find a match. It is aware of the various
0 commit comments