Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 1 | // SPDX-FileCopyrightText: 2021 Open Networking Foundation |
| 2 | // |
| 3 | // SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 4 | |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 5 | submodule onf-device-group { |
| 6 | belongs-to onf-enterprise { prefix ent; } |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 7 | |
| 8 | import ietf-yang-types{ prefix yg; } |
| 9 | import onf-aether-types { prefix at; } |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 10 | |
| 11 | include onf-ip-domain; |
| 12 | include onf-traffic-class; |
Scott Baker | 4fb4ba9 | 2022-01-14 13:52:01 -0800 | [diff] [blame] | 13 | include onf-device; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 14 | |
| 15 | organization "Open Networking Foundation."; |
| 16 | contact "Scott Baker"; |
| 17 | description |
| 18 | "An aether device group represents a list of device IMSIS. |
| 19 | This list is expressed as a set of ranges, |
| 20 | [(from_imsi, to_imsi), |
| 21 | (from_imsi, to_imsi), |
| 22 | ...]. |
| 23 | Each device group belongs to a site and has associated |
| 24 | with it an ip-profile that determines the IP address |
| 25 | and DNS settings that apply to devices within the |
| 26 | group"; |
| 27 | |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 28 | revision "2022-01-14" { |
| 29 | description "Refactored as submodule"; |
| 30 | reference "RFC 6020"; |
| 31 | } |
| 32 | |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 33 | revision "2021-06-02" { |
| 34 | description "An Aether Device Group"; |
| 35 | reference "RFC 6087"; |
| 36 | } |
| 37 | |
| 38 | typedef device-group-id { |
| 39 | type yg:yang-identifier { |
| 40 | length 1..32; |
| 41 | } |
| 42 | description "The typedef for device-group-id"; |
| 43 | } |
| 44 | |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 45 | grouping device-group { |
| 46 | description "The device-group grouping"; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 47 | |
| 48 | list device-group { |
Sean Condon | 9f7966e | 2022-02-03 10:55:06 +0000 | [diff] [blame^] | 49 | key "device-group-id"; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 50 | description |
| 51 | "List of device groups"; |
| 52 | |
Sean Condon | 9f7966e | 2022-02-03 10:55:06 +0000 | [diff] [blame^] | 53 | leaf device-group-id { |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 54 | type device-group-id; |
| 55 | description "ID for this device group."; |
| 56 | } |
| 57 | |
Sean Condon | 9f7966e | 2022-02-03 10:55:06 +0000 | [diff] [blame^] | 58 | uses at:desc-display-name; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 59 | |
Scott Baker | 4fb4ba9 | 2022-01-14 13:52:01 -0800 | [diff] [blame] | 60 | list device { |
| 61 | key "device-id"; |
| 62 | leaf device-id { |
| 63 | type leafref { |
Sean Condon | 9f7966e | 2022-02-03 10:55:06 +0000 | [diff] [blame^] | 64 | path "../../../device/device-id"; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 65 | } |
Scott Baker | 4fb4ba9 | 2022-01-14 13:52:01 -0800 | [diff] [blame] | 66 | description |
| 67 | "Link to device"; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 68 | } |
Scott Baker | 4fb4ba9 | 2022-01-14 13:52:01 -0800 | [diff] [blame] | 69 | leaf enable { |
| 70 | type boolean; |
| 71 | default true; |
| 72 | description |
| 73 | "Enable this device"; |
| 74 | } |
| 75 | description "list of devices in this device-group"; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 76 | } |
| 77 | |
| 78 | leaf ip-domain { |
| 79 | type leafref { |
Sean Condon | 9f7966e | 2022-02-03 10:55:06 +0000 | [diff] [blame^] | 80 | path "../../ip-domain/ip-domain-id"; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 81 | } |
| 82 | description |
| 83 | "Link to ip-domain settings that determine the pool of IP addresses, |
| 84 | as well as the domain resolver settings to use"; |
| 85 | } |
| 86 | |
Scott Baker | 4fb4ba9 | 2022-01-14 13:52:01 -0800 | [diff] [blame] | 87 | container mbr { |
| 88 | description "Maximum bitrate"; |
| 89 | leaf uplink { |
| 90 | type at:bitrate; |
| 91 | units bps; |
| 92 | mandatory true; |
| 93 | description "Per-device MBR uplink data rate in bps"; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 94 | } |
Scott Baker | 4fb4ba9 | 2022-01-14 13:52:01 -0800 | [diff] [blame] | 95 | |
Scott Baker | 4fb4ba9 | 2022-01-14 13:52:01 -0800 | [diff] [blame] | 96 | leaf downlink { |
| 97 | type at:bitrate; |
| 98 | units bps; |
| 99 | mandatory true; |
| 100 | description "Per-device MBR downlink data rate in bps"; |
| 101 | } |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 102 | } |
Scott Baker | 3efbc0d | 2022-01-31 09:50:02 -0800 | [diff] [blame] | 103 | |
| 104 | leaf traffic-class { |
| 105 | type leafref { |
Sean Condon | 9f7966e | 2022-02-03 10:55:06 +0000 | [diff] [blame^] | 106 | path "../../../traffic-class/traffic-class-id"; |
Scott Baker | 3efbc0d | 2022-01-31 09:50:02 -0800 | [diff] [blame] | 107 | } |
| 108 | mandatory true; |
| 109 | description |
| 110 | "Link to traffic class"; |
| 111 | } |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 112 | } |
| 113 | } |
| 114 | } |