Scott Baker | 4fb4ba9 | 2022-01-14 13:52:01 -0800 | [diff] [blame] | 1 | // SPDX-FileCopyrightText: 2021 Open Networking Foundation |
| 2 | // |
| 3 | // SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 4 | |
| 5 | submodule 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 Condon | 9f7966e | 2022-02-03 10:55:06 +0000 | [diff] [blame] | 33 | key "device-id"; |
Scott Baker | 4fb4ba9 | 2022-01-14 13:52:01 -0800 | [diff] [blame] | 34 | unique "imei"; |
| 35 | description |
| 36 | "List of devices"; |
| 37 | |
Sean Condon | 9f7966e | 2022-02-03 10:55:06 +0000 | [diff] [blame] | 38 | leaf device-id { |
Scott Baker | 4fb4ba9 | 2022-01-14 13:52:01 -0800 | [diff] [blame] | 39 | type device-id; |
| 40 | description "ID for this device."; |
| 41 | } |
| 42 | |
Sean Condon | 9f7966e | 2022-02-03 10:55:06 +0000 | [diff] [blame] | 43 | uses at:desc-display-name; |
| 44 | |
Scott Baker | 4fb4ba9 | 2022-01-14 13:52:01 -0800 | [diff] [blame] | 45 | leaf imei { |
| 46 | type at:imei; |
| 47 | description |
| 48 | "IMEI for this device"; |
| 49 | } |
| 50 | |
Scott Baker | 4fb4ba9 | 2022-01-14 13:52:01 -0800 | [diff] [blame] | 51 | // 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 | } |