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