summaryrefslogtreecommitdiffstats
path: root/sdnr/wt/devicemanager/provider/src/main/resources/preload.cache.schema/photonic-media@2018-09-24.yang
blob: 8ad209546bc8535d4ca4f8305a078de2934efc08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
module photonic-media {

    namespace "urn:onf:params:xml:ns:yang:otsi-interface";
    prefix otsi-interface;

    import core-model {
        prefix core-model;
    }

    import tapi-photonic-media{
        prefix tapi-photonic-media;
    }

    import tapi-oam{
         prefix tapi-oam;
    }

    import ietf-yang-types {
        prefix yang;
    }

    organization "ONF (Open Networking Foundation) Open Transport Working Group - Wireless Transport Project";
    contact "WG Web: <https://www.opennetworking.org/software-defined-standards/models-apis/>
             WG List:  <mailto:wireless-transport@login.opennetworking.org>
             WG Chair: Lyndon Ong
                       <mailto:lyong@ciena.com>
             WG Chair: Giorgio Cazzaniga
                       <mailto:giorgio.cazzaniga@sm-optics.com>
             Editors:  Thorsten Heinze
                       <mailto:thorsten.heinze@telefonica.com>
                       Shrikanth Malavalli Divakar
                       <mailto:shrikanth.divakar@wipro.com>";
    description "This module contains a collection of YANG definitions for managing Optical networks.
        This model is for vendor agnostic management of Optical Transport.";

    revision 2018-09-24 {
        description "Version 1.0";
        reference "ONF TR-XXX: A YANG Data Model for Optical Transport.";
    }

    /***********************
    * package type-definitions
    **********************/
    typedef severity-type {
        type enumeration {
            enum non-alarmed {
                description "none";
            }
            enum warning {
                description "none";
            }
            enum minor {
                description "none";
            }
            enum major {
                description "none";
            }
            enum critical {
                description "none";
            }
        }
        description "According to ITU-T M.3160";
    }


    grouping otsi-interface-performance-type-g{
        container fec-properties-pac{
            uses tapi-photonic-media:fec-properties-pac-g;
            description "none";
        }
        description "none";
    }

    grouping otsi-interface-current-performance-type-g {
        container performance-data {
            config false;
            uses otsi-interface-performance-type-g;
            description "none";
        }
        uses tapi-oam:pm-current-data-g;
        description "Turns performance information into current performance information by inheriting from TAPI OAM current  data.";
    }

    grouping otsi-interface-historical-performance-type-g {
        container performance-data {
            config false;
            uses otsi-interface-performance-type-g;
            description "none";
        }
        uses tapi-oam:pm-history-data-g;
        description "Turns performance information into historical performance information by inheriting from TAPI OAM History data.";
    }

    grouping otsi-interface-current-performance-g {
        list current-performance-data-list {
            key 'local-id';
            config false;
            min-elements 1;
            max-elements 2;
            uses otsi-interface-current-performance-type-g;
            description "At least values of the counters, which are reset every 15 minutes, are to be provided. If available, the current values of the counters, which are reset every 24 hour, can be provided, too.";
        }
        description "Aggregated performance information of the air interface at a particular moment.";
    }

    grouping otsi-interface-historical-performances-g {
        list historical-performance-data-list {
            key 'local-id';
            config false;
            uses otsi-interface-historical-performance-type-g;
            description "none";
        }
        description "Aggregated performance information of the air interface for a pre-defined measurement interval.";
    }

    grouping otsi-interface-current-problem-type-g {
        leaf problem-name {
            type string;
            default "Problem name not specified.";
            config false;
            description "Name of the alarm according to AirInterface::AirInterfaceCapability::supportedAlarms";
        }
        uses otsi-current-problem-g;
        description "none";
    }

    grouping otsi-interface-current-problems-g {
        list current-problem-list {
            key 'sequence-number';
            config false;
            uses otsi-interface-current-problem-type-g;
            description "none";
        }
        description "none";
    }

    /***********************
    * package object-classes
    **********************/
    /***********************
    * package otsi-interface
    **********************/
    list otsi-interface-pac {
        key 'layer-protocol';
        leaf layer-protocol {
            type leafref {
                path '/core-model:network-element/core-model:ltp/core-model:lp/core-model:uuid';
            }
            description "CoreModel-CoreNetworkModule-ObjectClasses:NetworkElement/_ltpRefList/_lpList/uuid";
        }
        container otsi-interface-capability {
            config false;
             uses tapi-photonic-media:otsi-capability-pac-g;
            description "none";
        }
        container otsi-interface-configuration {
             uses tapi-photonic-media:otsi-termination-config-pac-g;
            description "none";
        }
        container otsi-interface-status {
            config false;
            uses tapi-photonic-media:otsi-termination-pac-g;
            description "none";
        }
        container otsi-interface-current-problems {
            config false;
            uses otsi-interface-current-problems-g;
            description "none";
        }
        container otsi-interface-current-performance {
            config false;
            uses otsi-interface-current-performance-g;
            description "none";
        }
        container otsi-interface-historical-performances {
            config false;
            uses otsi-interface-historical-performances-g;
            description "none";
        }
        description "none";
    }

    /***********************
    * package super-classes
    **********************/
        grouping otsi-current-problem-g {
            leaf sequence-number {
                type int32;
                config false;
                description "Unique sequence number of the current problem object.";
            }
            leaf time-stamp {
                type yang:date-and-time;
                default "2017-01-01T00:00:00.0Z";
                config false;
                description "Time and date of the problem.  ";
            }
            leaf problem-severity {
                type severity-type;
                default warning;
                config false;
                description "Severity of the alarm.";
            }
            description "none";
        }

}