blob: cb0ecde7c12c2b9df8e27021070b72bda76388c8 [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";
PUSHP RAJba2e32f2021-11-02 10:39:24 +000016 description
Scott Bakerc9d3d842021-09-17 11:32:53 -070017 "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 }
PUSHP RAJba2e32f2021-11-02 10:39:24 +000028 description "The typedef ap-list-id";
Scott Bakerc9d3d842021-09-17 11:32:53 -070029 }
30
31 container ap-list {
32 description "The top level container";
33
34 list ap-list {
35 key "id";
36 description
37 "A list of named ap-lists.";
38
39 leaf id {
40 type ap-list-id;
41 description "ID for this ap-list.";
42 }
43
44 list access-points {
45 key "address";
46 leaf address {
47 type inet:host;
48 description
49 "Address of access point";
50 }
51 leaf tac {
52 type at:tac;
53 mandatory true;
54 description
55 "Type Allocation Code";
PUSHP RAJba2e32f2021-11-02 10:39:24 +000056 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070057 leaf enable {
58 type boolean;
59 default true;
60 description
61 "Enable this access point";
62 }
63 description
64 "List of access point addresses";
PUSHP RAJba2e32f2021-11-02 10:39:24 +000065 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070066
67 leaf display-name {
68 type string {
69 length 1..80;
70 }
71 description "display name to use in GUI or CLI";
PUSHP RAJba2e32f2021-11-02 10:39:24 +000072 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070073
74 leaf description {
75 type at:description;
76 description "description of this ap-list";
77 }
78
79 // Access point lists are always owned by an Enterprise, since they typically exist on the
80 // Enterprise's edge. An ApList is not owned by Site, to cover the case where a ApList may
81 // include access points that span multiple sites.
82 leaf enterprise {
83 type leafref {
84 path "/ent:enterprise/ent:enterprise/ent:id";
85 }
86 mandatory true;
87 description
88 "Link to enterprise that owns this Access Point List";
PUSHP RAJba2e32f2021-11-02 10:39:24 +000089 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070090 }
PUSHP RAJba2e32f2021-11-02 10:39:24 +000091 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070092}