blob: 3c1a759b66c3d37b795fbdd48f2a0407ce2529dc [file] [log] [blame]
Scott Bakerc9d3d842021-09-17 11:32:53 -07001// SPDX-FileCopyrightText: 2021 Open Networking Foundation
2//
3// SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
4
5module ap-list {
6 namespace "http://opennetworking.org/aether/ap-list";
7 prefix apl;
8
9 import ietf-inet-types { prefix inet; }
10 import aether-types { prefix at; }
11 import enterprise{ prefix ent; }
12 import ietf-yang-types{ prefix yg; }
13
14 organization "Open Networking Foundation.";
15 contact "Scott Baker";
16 description
17 "An Aether AP List is a named list of access points.";
18
19 revision "2021-06-02" {
20 description "An Aether Access Point List";
21 reference "RFC 6087";
22 }
23
24 typedef ap-list-id {
25 type yg:yang-identifier {
26 length 1..32;
27 }
28 }
29
30 container ap-list {
31 description "The top level container";
32
33 list ap-list {
34 key "id";
35 description
36 "A list of named ap-lists.";
37
38 leaf id {
39 type ap-list-id;
40 description "ID for this ap-list.";
41 }
42
43 list access-points {
44 key "address";
45 leaf address {
46 type inet:host;
47 description
48 "Address of access point";
49 }
50 leaf tac {
51 type at:tac;
52 mandatory true;
53 description
54 "Type Allocation Code";
55 }
56 leaf enable {
57 type boolean;
58 default true;
59 description
60 "Enable this access point";
61 }
62 description
63 "List of access point addresses";
64 }
65
66 leaf display-name {
67 type string {
68 length 1..80;
69 }
70 description "display name to use in GUI or CLI";
71 }
72
73 leaf description {
74 type at:description;
75 description "description of this ap-list";
76 }
77
78 // Access point lists are always owned by an Enterprise, since they typically exist on the
79 // Enterprise's edge. An ApList is not owned by Site, to cover the case where a ApList may
80 // include access points that span multiple sites.
81 leaf enterprise {
82 type leafref {
83 path "/ent:enterprise/ent:enterprise/ent:id";
84 }
85 mandatory true;
86 description
87 "Link to enterprise that owns this Access Point List";
88 }
89 }
90 }
91}