Split out odl-codegen-extensions
[yangtools.git] / parser / odlext-parser-support / src / test / resources / odl-codegen-extensions.yang
1 module odl-codegen-extensions {
2     yang-version 1;
3     namespace "urn:opendaylight:yang:extension:codegen";
4     prefix "oce";
5
6     description
7         "YANG extensions for code generation.
8
9          Copyright (c) 2024 PANTHEON.tech, s.r.o. and others.  All rights reserved.
10
11          This program and the accompanying materials are made available under the
12          terms of the Eclipse Public License v1.0 which accompanies this distribution,
13          and is available at http://www.eclipse.org/legal/epl-v10.html";
14
15     revision "2024-06-27" {
16         description "Initial revision";
17     }
18
19     extension "augment-identifier" {
20         description
21            "YANG language extension which assigns an identifier to augmentation. Augment identifier
22             is used to identify a specific augment statement by a name.
23
24             The identifier syntax is defined formally defined by the rule 'identifier' in
25             Section 12 of RFC 6020.
26
27             All augment identifiers defined in a namespace MUST be unique. The namespace of augment
28             identifiers is shared by module and its submodules.";
29
30             /*
31                 Discussion:
32                 This extension allows for ease of development / debug of YANG modules and it is
33                 suitable for code generation, where each augment statement is nicely identified by
34                 unique name instead of combination of augment target and when condition.
35             */
36         argument "identifier";
37     }
38 }