add python compatibility module
[ccsdk/apps.git] / sdnr / model / yang / onf-ethernet-conditional-packages@2017-04-02.yang
1 module onf-ethernet-conditional-packages {
2     namespace "urn:onf:params:xml:ns:yang:onf-ethernet-conditional-packages";
3     prefix onf-ethernet-conditional-packages;
4     import core-model {
5         prefix core-model;
6     }
7     organization "ONF (Open Networking Foundation) Open Transport Working Group - Wireless Transport Project";
8     contact "WG Web: <https://www.opennetworking.org/technical-communities/areas/specification/1931-optical-transport>
9              WG List:  <mailto:wireless-transport@login.opennetworking.org>
10              WG Chair: Lyndon Ong
11                        <mailto:lyong@ciena.com>
12              WG Chair: Giorgio Cazzaniga
13                        <mailto:giorgio.cazzaniga@sm-optics.com>
14              Editors:  Thorsten Heinze
15                        <mailto:thorsten.heinze@telefonica.com>
16                        Martin Skorupski
17                        <mailto:martin.skorupski@highstreet-technologies.com>";
18     description "This model adds conditional packages to the ONF CoreModel in order address Ethernet use cases.";
19     revision 2017-04-02 {
20         description "Initial version";
21         reference "ONF TR 532: A YANG Data Model for Wireless Networks.";
22     }
23     /***********************
24     * package object-classes
25     **********************/ 
26         list ethernet-pac {
27             key 'layer-protocol';
28             leaf layer-protocol {
29                 type leafref {
30                     path '/core-model:network-element/core-model:ltp/core-model:lp/core-model:uuid';
31                 }
32                 description "none";
33             }
34             container ethernet-capability {
35                 config false;
36                 uses ethernet-capability-g;
37                 description "none";
38             }
39             container ethernet-configuration {
40                 uses ethernet-configuration-g;
41                 description "none";
42             }
43             container ethernet-status {
44                 config false;
45                 uses ethernet-status-g;
46                 description "none";
47             }
48             container ethernet-current-problems {
49                 config false;
50                 uses ethernet-current-problems-g;
51                 description "none";
52             }
53             container ethernet-current-performance {
54                 config false;
55                 uses ethernet-current-performance-g;
56                 description "none";
57             }
58             container ethernet-historical-performances {
59                 config false;
60                 uses ethernet-historical-performances-g;
61                 description "none";
62             }
63             description "none";
64         }
65         grouping ethernet-capability-g {
66             description "none";
67         }
68         grouping ethernet-configuration-g {
69             leaf vlan-id {
70                 type int16;
71                 description "value = 0: frames on ingress must be untagged, frames on egress get untagged; value = any other positive integer < 4096: frames on ingress must be tagged with this VLAN ID, frames on egress either already have or get this VLAN ID attached;";
72             }
73             description "none";
74         }
75         grouping ethernet-status-g {
76             description "none";
77         }
78         grouping ethernet-current-problems-g {
79             description "none";
80         }
81         grouping ethernet-current-performance-g {
82             description "none";
83         }
84         grouping ethernet-historical-performances-g {
85             description "none";
86         }
87
88 }