blob: cf4ad1040b99a11ebfdea81b708327fb19f86fa2 [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
8 import ietf-yang-types{ prefix yg; }
9 import onf-aether-types { prefix at; }
10 include onf-sim-card;
11
12 organization "Open Networking Foundation.";
13 contact "Scott Baker";
14 description
15 "A Aether Device...";
16
17 revision "2022-01-19" {
18 description "An Aether Device";
19 reference "RFC 6087";
20 }
21
22 typedef device-id {
23 type yg:yang-identifier {
24 length 1..32;
25 }
26 description "The typedef for device-id";
27 }
28
29 grouping device {
30 description "The top level container";
31
32 list device {
Sean Condon9f7966e2022-02-03 10:55:06 +000033 key "device-id";
Scott Baker4fb4ba92022-01-14 13:52:01 -080034 unique "imei";
35 description
36 "List of devices";
37
Sean Condon9f7966e2022-02-03 10:55:06 +000038 leaf device-id {
Scott Baker4fb4ba92022-01-14 13:52:01 -080039 type device-id;
40 description "ID for this device.";
41 }
42
Sean Condon9f7966e2022-02-03 10:55:06 +000043 uses at:desc-display-name;
44
Scott Baker4fb4ba92022-01-14 13:52:01 -080045 leaf imei {
46 type at:imei;
47 description
48 "IMEI for this device";
49 }
50
Scott Baker4fb4ba92022-01-14 13:52:01 -080051 // TODO: Device Type
52
53 leaf sim-card {
54 type leafref {
55 path "../../sim-card/sim-id";
56 }
57 description
58 "Link to simcard";
59 }
60 }
61 }
62}