|
2 | 2 | <grammar xmlns="http://relaxng.org/ns/structure/1.0">
|
3 | 3 | <!--
|
4 | 4 | interface_definition.rnc: VyConf reference tree XML grammar
|
5 |
| -
|
| 5 | + |
6 | 6 | Copyright (C) 2014. 2017 VyOS maintainers and contributors <maintainers@vyos.net>
|
7 |
| -
|
| 7 | + |
8 | 8 | This library is free software; you can redistribute it and/or
|
9 | 9 | modify it under the terms of the GNU Lesser General Public
|
10 | 10 | License as published by the Free Software Foundation; either
|
11 | 11 | version 2.1 of the License, or (at your option) any later version.
|
12 |
| -
|
| 12 | + |
13 | 13 | This library is distributed in the hope that it will be useful,
|
14 | 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
15 | 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
16 | 16 | Lesser General Public License for more details.
|
17 |
| -
|
| 17 | + |
18 | 18 | You should have received a copy of the GNU Lesser General Public
|
19 | 19 | License along with this library; if not, write to the Free Software
|
20 | 20 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
|
|
142 | 142 | Nodes may have properties
|
143 | 143 | For simplicity, any property is allowed in any node,
|
144 | 144 | but whether they are used or not is implementation-defined
|
145 |
| -
|
| 145 | + |
146 | 146 | Leaf nodes may differ in number of values that can be
|
147 | 147 | associated with them.
|
148 | 148 | By default, a leaf node can have only one value.
|
149 | 149 | "multi" tag means a node can have one or more values,
|
150 | 150 | "valueless" means it can have no values at all.
|
151 | 151 | "hidden" means node visibility can be toggled, eg 'dangerous' commands,
|
152 | 152 | "secret" allows a node to hide its value from unprivileged users.
|
153 |
| -
|
| 153 | + |
154 | 154 | "priority" is used to influence node processing order for nodes
|
155 | 155 | with exact same dependencies and in compatibility modes.
|
156 | 156 | -->
|
|
177 | 177 | <zeroOrMore>
|
178 | 178 | <ref name="completionHelp"/>
|
179 | 179 | </zeroOrMore>
|
| 180 | + <optional> |
| 181 | + <!-- |
| 182 | + "docs" is used to store documentation for a node in a structured format |
| 183 | + It is used to generate documentation for the CLI and Web docs |
| 184 | + --> |
| 185 | + <group> |
| 186 | + <element name="docs"> |
| 187 | + <interleave> |
| 188 | + <optional> |
| 189 | + <element name="headline"> |
| 190 | + <text/> |
| 191 | + </element> |
| 192 | + </optional> |
| 193 | + <optional> |
| 194 | + <element name="text"> |
| 195 | + <text/> |
| 196 | + </element> |
| 197 | + </optional> |
| 198 | + <optional> |
| 199 | + <element name="usageExample"> |
| 200 | + <text/> |
| 201 | + </element> |
| 202 | + </optional> |
| 203 | + <zeroOrMore> |
| 204 | + <element name="hints"> |
| 205 | + <attribute name="type"/> |
| 206 | + <text/> |
| 207 | + </element> |
| 208 | + </zeroOrMore> |
| 209 | + </interleave> |
| 210 | + </element> |
| 211 | + </group> |
| 212 | + </optional> |
180 | 213 | <optional>
|
181 | 214 | <!-- These are meaningful only for leaf nodes -->
|
182 | 215 | <group>
|
|
0 commit comments