blob: 799bc93912412cde5407019ca551ccc530265423 [file] [log] [blame]
Elia Battistona1333642022-07-27 12:17:24 +00001module bbf-nt-service-profile {
2 yang-version 1.1;
3 namespace "urn:bbf:yang:bbf-nt-service-profile";
4 prefix bbf-nt-srv-prof;
5
6 import bbf-l2-access-attributes {
7 prefix bbf-l2access-attr;
8 }
9
10 organization
11 "Broadband Forum <https://www.broadband-forum.org>
12 Common YANG Work Area";
13 contact
14 "Comments or questions about this Broadband Forum YANG module
15 should be directed to <mailto:help@broadband-forum.org>.
16
17 Editor: TBD
18
19 PS Leader: TBD
20
21 WA Director: TBD";
22 description
23 "This module contains a collection of YANG definitions for
24 simplifying the Access Device Model as exposed over NBI of BAA.
25
26 Copyright (c) 2022, Broadband Forum
27
28 Redistribution and use in source and binary forms, with or
29 without modification, are permitted provided that the following
30 conditions are met:
31
32 1. Redistributions of source code must retain the above copyright
33 notice, this list of conditions and the following disclaimer.
34
35 2. Redistributions in binary form must reproduce the above
36 copyright notice, this list of conditions and the following
37 disclaimer in the documentation and/or other materials
38 provided with the distribution.
39
40 3. Neither the name of the copyright holder nor the names of its
41 contributors may be used to endorse or promote products
42 derived from this software without specific prior written
43 permission.
44
45 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
46 CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES,
47 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
48 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
49 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
50 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
51 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
52 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
53 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
54 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
55 STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
56 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
57 ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
58
59 The above license is used as a license under copyright only.
60 Please reference the Forum IPR Policy for patent licensing terms
61 <https://www.broadband-forum.org/ipr-policy>.
62
63 Any moral rights which are necessary to exercise under the above
64 license grant are also deemed granted under this license.
65
66 This version of this YANG module is part of TR-383a4; see
67 the TR itself for full legal notices.";
68
69 revision 2021-09-14 {
70 description
71 "Initial revision.";
72 reference
73 "";
74 }
75
76 typedef srv-profile-ref {
77 type leafref {
78 path
79 "/bbf-nt-srv-prof:service-profiles/bbf-nt-srv-prof:service-profile/bbf-nt-srv-prof:name";
80 }
81 description
82 "A reference to a service profile.";
83 }
84
85 container service-profiles {
86 description
87 "All config data for service profile.";
88 list service-profile {
89 key "name";
90 description
91 "List of service profiles.";
92 leaf name {
93 type string {
94 length "1..32";
95 }
96 description
97 "The service profile name.";
98 }
99 container ports {
100 description
101 "All config data for ports.";
102 list port {
103 key "name";
104 description
105 "List of the port attribute.";
106 leaf name {
107 type string {
108 length "1..64";
109 }
110 description
111 "This object indicates the name of the port.";
112 }
113 container port-vlans {
114 description
115 "All config data for port vlan.";
116 list port-vlan {
117 key "name";
118 description
119 "This is used to add a user-side port on the network termination to a VLAN";
120 leaf name {
121 type leafref {
122 path
123 "/bbf-l2access-attr:vlan-translation-profiles/bbf-l2access-attr:vlan-translation-profile/bbf-l2access-attr:name";
124 }
125 description
126 "Name of the port VLAN.";
127 }
128 }
129 }
130 }
131 }
132 }
133 }
134}