Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 1 | // SPDX-FileCopyrightText: 2021 Open Networking Foundation |
| 2 | // |
| 3 | // SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 4 | |
| 5 | module 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 RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 16 | description |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 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 | } |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 28 | description "The typedef ap-list-id"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 29 | } |
| 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 RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 56 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 57 | 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 RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 65 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 66 | |
| 67 | leaf display-name { |
| 68 | type string { |
| 69 | length 1..80; |
| 70 | } |
| 71 | description "display name to use in GUI or CLI"; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 72 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 73 | |
| 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 RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 89 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 90 | } |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 91 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 92 | } |