blob: 1e0380644b66ac5d051332d18a4c99e750ae415d [file] [log] [blame]
Scott Bakerfdbad762022-01-03 16:00:45 -08001// SPDX-FileCopyrightText: 2021 Open Networking Foundation
2//
Sean Condon160ec1d2022-02-08 12:58:25 +00003// SPDX-License-Identifier: Apache-2.0
Scott Bakerfdbad762022-01-03 16:00:45 -08004
Sean Condon11d6f422022-01-14 13:02:03 +00005submodule onf-device-group {
6 belongs-to onf-enterprise { prefix ent; }
Scott Bakerfdbad762022-01-03 16:00:45 -08007
Scott Bakerfdbad762022-01-03 16:00:45 -08008 import onf-aether-types { prefix at; }
Sean Condon11d6f422022-01-14 13:02:03 +00009
10 include onf-ip-domain;
11 include onf-traffic-class;
Scott Baker4fb4ba92022-01-14 13:52:01 -080012 include onf-device;
Scott Bakerfdbad762022-01-03 16:00:45 -080013
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 Condon11d6f422022-01-14 13:02:03 +000027 revision "2022-01-14" {
28 description "Refactored as submodule";
29 reference "RFC 6020";
30 }
31
Scott Bakerfdbad762022-01-03 16:00:45 -080032 revision "2021-06-02" {
33 description "An Aether Device Group";
34 reference "RFC 6087";
35 }
36
37 typedef device-group-id {
Scott Baker40a79562022-02-16 15:04:50 -080038 type at:aether-identifier;
Scott Bakerfdbad762022-01-03 16:00:45 -080039 description "The typedef for device-group-id";
40 }
41
Sean Condon11d6f422022-01-14 13:02:03 +000042 grouping device-group {
43 description "The device-group grouping";
Scott Bakerfdbad762022-01-03 16:00:45 -080044
45 list device-group {
Sean Condon9f7966e2022-02-03 10:55:06 +000046 key "device-group-id";
Scott Bakerfdbad762022-01-03 16:00:45 -080047 description
48 "List of device groups";
49
Sean Condon9f7966e2022-02-03 10:55:06 +000050 leaf device-group-id {
Scott Bakerfdbad762022-01-03 16:00:45 -080051 type device-group-id;
52 description "ID for this device group.";
53 }
54
Sean Condon9f7966e2022-02-03 10:55:06 +000055 uses at:desc-display-name;
Scott Bakerfdbad762022-01-03 16:00:45 -080056
Scott Baker4fb4ba92022-01-14 13:52:01 -080057 list device {
58 key "device-id";
59 leaf device-id {
60 type leafref {
Sean Condon9f7966e2022-02-03 10:55:06 +000061 path "../../../device/device-id";
Scott Bakerfdbad762022-01-03 16:00:45 -080062 }
Scott Baker4fb4ba92022-01-14 13:52:01 -080063 description
64 "Link to device";
Scott Bakerfdbad762022-01-03 16:00:45 -080065 }
Scott Baker4fb4ba92022-01-14 13:52:01 -080066 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 Bakerfdbad762022-01-03 16:00:45 -080073 }
74
75 leaf ip-domain {
76 type leafref {
Sean Condon9f7966e2022-02-03 10:55:06 +000077 path "../../ip-domain/ip-domain-id";
Scott Bakerfdbad762022-01-03 16:00:45 -080078 }
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 Baker4fb4ba92022-01-14 13:52:01 -080084 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 Bakerfdbad762022-01-03 16:00:45 -080091 }
Scott Baker4fb4ba92022-01-14 13:52:01 -080092
Scott Baker4fb4ba92022-01-14 13:52:01 -080093 leaf downlink {
94 type at:bitrate;
95 units bps;
96 mandatory true;
97 description "Per-device MBR downlink data rate in bps";
98 }
Scott Bakerfdbad762022-01-03 16:00:45 -080099 }
Scott Baker3efbc0d2022-01-31 09:50:02 -0800100
101 leaf traffic-class {
102 type leafref {
Sean Condon9f7966e2022-02-03 10:55:06 +0000103 path "../../../traffic-class/traffic-class-id";
Scott Baker3efbc0d2022-01-31 09:50:02 -0800104 }
105 mandatory true;
106 description
107 "Link to traffic class";
108 }
Scott Bakerfdbad762022-01-03 16:00:45 -0800109 }
110 }
111}