blob: dd967ba8564562f203f6127ca6bdfaf3b2e3afcc [file] [log] [blame]
Gaurav Agrawal28920d82017-10-06 17:39:42 +05301module ietf-complex-types {
2
3 namespace "urn:ietf:params:xml:ns:yang:ietf-complex-types";
4 prefix "ct";
5
6 organization
7 "NETMOD WG";
8
9 contact
10 "Editor: Bernd Linowski
11 <bernd.linowski.ext@nsn.com>
12 Editor: Mehmet Ersue
13 <mehmet.ersue@nsn.com>
14 Editor: Siarhei Kuryla
15 <s.kuryla@gmail.com>";
16
17 description
18 "YANG extensions for complex types and typed instance
19 identifiers.
20
21 Copyright (c) 2011 IETF Trust and the persons identified as
22 authors of the code. All rights reserved.
23
24 Redistribution and use in source and binary forms, with or
25 without modification, is permitted pursuant to, and subject
26 to the license terms contained in, the Simplified BSD License
27 set forth in Section 4.c of the IETF Trust's Legal Provisions
28 Relating to IETF Documents
29 (http://trustee.ietf.org/license-info).
30
31 This version of this YANG module is part of RFC 6095; see
32 the RFC itself for full legal notices.";
33
34 revision 2011-03-15 {
35 description "Initial revision.";
36 }
37
38 extension complex-type {
39 description "Defines a complex-type.";
40 reference "Section 2.2, complex-type Extension Statement";
41 argument type-identifier {
42 yin-element true;
43 }
44 }
45
46 extension extends {
47 description "Defines the base type of a complex-type.";
48 reference "Section 2.5, extends Extension Statement";
49 argument base-type-identifier {
50 yin-element true;
51 }
52 }
53 extension abstract {
54 description "Makes the complex-type abstract.";
55 reference "Section 2.6, abstract Extension Statement";
56 argument status;
57 }
58
59 extension instance {
60 description "Declares an instance of the given
61 complex type.";
62 reference "Section 2.3, instance Extension Statement";
63 argument ct-instance-identifier {
64 yin-element true;
65 }
66 }
67
68 extension instance-list {
69 description "Declares a list of instances of the given
70 complex type";
71 reference "Section 2.4, instance-list Extension Statement";
72 argument ct-instance-identifier {
73 yin-element true;
74 }
75 }
76
77 extension instance-type {
78 description "Tells to which type instance the instance
79 identifier refers.";
80 reference "Section 3.2, instance-type Extension Statement";
81 argument target-type-identifier {
82 yin-element true;
83 }
84 }
85
86 feature complex-types {
87 description "Indicates that the server supports
88 complex types and instance identifiers.";
89 }
90
91 }