blob: ce49e2c73111d3bb256140c58a9ef6f4b46232c3 [file] [log] [blame]
Scott Baker4fb4ba92022-01-14 13:52:01 -08001// SPDX-FileCopyrightText: 2021 Open Networking Foundation
2//
3// SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
4
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 {
33 key "dev-id";
34 unique "imei";
35 description
36 "List of devices";
37
38 leaf dev-id {
39 type device-id;
40 description "ID for this device.";
41 }
42
43 leaf imei {
44 type at:imei;
45 description
46 "IMEI for this device";
47 }
48
49 leaf description {
50 type at:description;
51 description "description of this device";
52 }
53
54 leaf display-name {
55 type string {
56 length 1..80;
57 }
58 description "display name to use in GUI or CLI";
59 }
60
61 // TODO: Device Type
62
63 leaf sim-card {
64 type leafref {
65 path "../../sim-card/sim-id";
66 }
67 description
68 "Link to simcard";
69 }
70 }
71 }
72}