Configurable HTTP(S) support for VES messaging
[sim/o1-interface.git] / ntsimulator / deploy / x-ran / yang / xran-mplane-int.yang
1 module xran-mplane-int {
2   yang-version 1.1;
3   namespace "urn:xran:mplane-interfaces:1.0";
4   prefix "xran-mplane-int";
5
6   import ietf-inet-types {
7     prefix "inet";
8   }
9
10   import ietf-interfaces {
11     prefix "if";
12   }
13
14   import xran-interfaces {
15     prefix "xran-int";
16   }
17
18   organization "xRAN Forum";
19
20   contact
21     "www.xran.org";
22
23   description
24     "This module defines the YANG definitions for managng the xRAN Radio Unit
25      management plane interface.
26
27      Copyright 2018 the xRAN Forum.
28
29      THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS'
30      AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
31      IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
32      ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
33      LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
34      CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
35      SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
36      INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
37      CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
38      ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
39      POSSIBILITY OF SUCH DAMAGE.
40
41      Redistribution and use in source and binary forms, with or without
42      modification, are permitted provided that the following conditions are met:
43
44      * Redistributions of source code must retain the above copyright notice,
45      this list of conditions and the above disclaimer.
46      * Redistributions in binary form must reproduce the above copyright notice,
47      this list of conditions and the above disclaimer in the documentation
48      and/or other materials provided with the distribution.
49      * Neither the Members of the xRAN Forum nor the names of its
50      contributors may be used to endorse or promote products derived from
51      this software without specific prior written permission.";
52
53   revision "2018-07-20" {
54     description
55       "version 1.0.0 - First release of the xRAN YANG M-Plane models.
56
57       This version of the model supports v01.00 of the corrsponding xRAN
58       M-Plane Specification.";
59     reference "XRAN-FH.MP.0-v01.00";
60   }
61
62   typedef vlan-id {
63     type uint16 {
64       range 1..4094;
65     }
66     description
67       "Type definition representing a single-tagged VLAN";
68   }
69   container mplane-info {
70     description "top level container for management plane information";
71     container searchable-mplane-access-vlans-info {
72       description
73         "These parameters shall be stored by the RU in reset persistant memory
74         to enable it to be re-used to optimize VALN discovery procerdures.";
75       leaf-list searchable-access-vlans {
76         type vlan-id;
77         description
78           "A list of access VLANs that may be operational on the transport
79           network. Can be used by the RU to optimize its VLAN searching - for
80           M-plane operations.";
81       }
82       container vlan-range {
83         description "the range of VLAN IDs that may be configured for M-Plane";
84         leaf lowest-vlan-id {
85           type vlan-id;
86           description
87             "Value of this parameter informs RU about lowest VID to be used
88             in VLAN scan procedure";
89         }
90         leaf highest-vlan-id {
91           type vlan-id;
92           description
93             "Value of this parameter informs RU about highest VID to be used
94             in VLAN scan procedure";
95         }
96       }
97     }
98
99     container m-plane-interfaces {
100       description "information concerning m-plane interfaces";
101       list m-plane-sub-interfaces {
102         key "interface-name sub-interface";
103         description "list of m-plane information";
104         leaf interface-name {
105           type leafref {
106             path "/if:interfaces/if:interface/if:name";
107           }
108           description "the name of the interface";
109         }
110         leaf sub-interface {
111           type leafref {
112             //checkAL added prefix to interface-name
113             path "/if:interfaces/if:interface[if:name = current()/../xran-mplane-int:interface-name]/xran-int:vlan-id";
114           }
115           description
116             "vlans used to communicate with management plane servers.";
117         }
118         container client-info {
119           description "the NETCONF client information";
120           list mplane-ipv4-info {
121             key mplane-ipv4;
122             description "list of IPv4 NETCONF clients";
123             leaf mplane-ipv4 {
124               type inet:ipv4-address;
125               description "The IPv4 address of M-Plane client discovered by the RU
126               or manually configured.";
127             }
128             leaf port {
129               type inet:port-number;
130               default "4334";
131               description
132                 "The port number the call home server listens on.";
133             }
134           }
135           list mplane-ipv6-info {
136             key mplane-ipv6;
137             description "list of IPv6 NETCONF clients";
138             leaf mplane-ipv6 {
139               type inet:ipv6-address;
140               description "The IPv6 address of M-Plane client discovered by the RU
141               or manually configured.";
142             }
143             leaf port {
144               type inet:port-number;
145               default "4334";
146               description
147                 "The port number the call home server listens on.";
148             }
149           }
150           leaf-list mplane-fqdn {
151             type inet:domain-name;
152             description "The discovered FQDN(s) of M-Plane client(s).";
153           }
154         }
155       }
156
157       container m-plane-ssh-ports {
158         description "leafs for managing SSH ports";
159         leaf call-home-ssh-port {
160           type inet:port-number;
161           default 4334;
162           description "call home server port number";
163         }
164         leaf server-ssh-port {
165           type inet:port-number;
166           default 830;
167           description "SSH server port number";
168         }
169       }
170     }
171   }
172 }