Merge "- Adding hashCode() and equals() method for v6Match - Fixing mac settings...
[controller.git] / opendaylight / sal / yang-prototype / yang / yang-ext / src / main / yang / yang-ext.yang
1 module yang-ext {
2     yang-version 1;
3     namespace "urn:opendaylight:params:ns:yang:extension:yang-ext";
4     prefix "ext";
5     
6     contact "Anton Tkacik <ttkacik@cisco.com>";
7
8     revision "2013-07-09" {
9         description "";
10     }
11
12     // Augmentation name
13
14     extension "augment-identifier" {
15         description 
16            "YANG language extension which assigns an identifier to 
17             augmentation. Augment identifier is used to identify
18             specific augment statement by name. 
19
20             The identifier syntax is defined formally defined by the rule
21             'identifier' in Section 12 of RFC 6020.
22
23             All augment identifiers defined in a namespace MUST be unique.
24             The namespace of augment identifiers is shared by module and
25             its submodules. 
26             ";
27             /*
28                 Discussion:
29                 This extension allows for ease of development / debug
30                 of YANG modules and it is suitable for code generation,
31                 where each augment statement is nicely identified by
32                 unique name instead of combination of augment target
33                 and when condition. 
34             */
35         argument "identifier";
36     }
37
38
39     // Context-aware RPCs
40
41     grouping rpc-context-ref {
42         description 
43            "A reference to RPC context.";
44         leaf context-instance {
45             type instance-identifier;
46             description "Pointer to the context. ";
47         }
48     }
49
50     extension "rpc-context-instance" {
51         description
52            "YANG language extension which defines enclosing (parent) 
53             schema node as referencable context for RPCs.
54
55             The argument is identity which is used to identify RPC context
56             type.";
57
58         argument "context-type";
59     }
60 }