blob: 3a8abd8cb34676525364a6718c110a408c461f37 [file] [log] [blame]
Scott Baker4fb4ba92022-01-14 13:52:01 -08001// SPDX-FileCopyrightText: 2021 Open Networking Foundation
2//
Sean Condon160ec1d2022-02-08 12:58:25 +00003// SPDX-License-Identifier: Apache-2.0
Scott Baker4fb4ba92022-01-14 13:52:01 -08004
5submodule onf-device {
6 belongs-to onf-enterprise { prefix ent; }
7
Scott Baker4fb4ba92022-01-14 13:52:01 -08008 import onf-aether-types { prefix at; }
9 include onf-sim-card;
10
11 organization "Open Networking Foundation.";
12 contact "Scott Baker";
13 description
14 "A Aether Device...";
15
16 revision "2022-01-19" {
17 description "An Aether Device";
18 reference "RFC 6087";
19 }
20
21 typedef device-id {
Scott Baker40a79562022-02-16 15:04:50 -080022 type at:aether-identifier;
Scott Baker4fb4ba92022-01-14 13:52:01 -080023 description "The typedef for device-id";
24 }
25
26 grouping device {
27 description "The top level container";
28
29 list device {
Sean Condon9f7966e2022-02-03 10:55:06 +000030 key "device-id";
Scott Baker4fb4ba92022-01-14 13:52:01 -080031 unique "imei";
32 description
33 "List of devices";
34
Sean Condon9f7966e2022-02-03 10:55:06 +000035 leaf device-id {
Scott Baker4fb4ba92022-01-14 13:52:01 -080036 type device-id;
37 description "ID for this device.";
38 }
39
Sean Condon9f7966e2022-02-03 10:55:06 +000040 uses at:desc-display-name;
41
Scott Baker4fb4ba92022-01-14 13:52:01 -080042 leaf imei {
43 type at:imei;
44 description
45 "IMEI for this device";
46 }
47
Scott Baker4fb4ba92022-01-14 13:52:01 -080048 // TODO: Device Type
49
50 leaf sim-card {
51 type leafref {
52 path "../../sim-card/sim-id";
53 }
54 description
55 "Link to simcard";
56 }
57 }
58 }
59}