Scott Baker | 4fb4ba9 | 2022-01-14 13:52:01 -0800 | [diff] [blame] | 1 | // SPDX-FileCopyrightText: 2021 Open Networking Foundation |
| 2 | // |
Sean Condon | 160ec1d | 2022-02-08 12:58:25 +0000 | [diff] [blame] | 3 | // SPDX-License-Identifier: Apache-2.0 |
Scott Baker | 4fb4ba9 | 2022-01-14 13:52:01 -0800 | [diff] [blame] | 4 | |
| 5 | submodule onf-device { |
| 6 | belongs-to onf-enterprise { prefix ent; } |
| 7 | |
Scott Baker | 4fb4ba9 | 2022-01-14 13:52:01 -0800 | [diff] [blame] | 8 | 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 Baker | 40a7956 | 2022-02-16 15:04:50 -0800 | [diff] [blame^] | 22 | type at:aether-identifier; |
Scott Baker | 4fb4ba9 | 2022-01-14 13:52:01 -0800 | [diff] [blame] | 23 | description "The typedef for device-id"; |
| 24 | } |
| 25 | |
| 26 | grouping device { |
| 27 | description "The top level container"; |
| 28 | |
| 29 | list device { |
Sean Condon | 9f7966e | 2022-02-03 10:55:06 +0000 | [diff] [blame] | 30 | key "device-id"; |
Scott Baker | 4fb4ba9 | 2022-01-14 13:52:01 -0800 | [diff] [blame] | 31 | unique "imei"; |
| 32 | description |
| 33 | "List of devices"; |
| 34 | |
Sean Condon | 9f7966e | 2022-02-03 10:55:06 +0000 | [diff] [blame] | 35 | leaf device-id { |
Scott Baker | 4fb4ba9 | 2022-01-14 13:52:01 -0800 | [diff] [blame] | 36 | type device-id; |
| 37 | description "ID for this device."; |
| 38 | } |
| 39 | |
Sean Condon | 9f7966e | 2022-02-03 10:55:06 +0000 | [diff] [blame] | 40 | uses at:desc-display-name; |
| 41 | |
Scott Baker | 4fb4ba9 | 2022-01-14 13:52:01 -0800 | [diff] [blame] | 42 | leaf imei { |
| 43 | type at:imei; |
| 44 | description |
| 45 | "IMEI for this device"; |
| 46 | } |
| 47 | |
Scott Baker | 4fb4ba9 | 2022-01-14 13:52:01 -0800 | [diff] [blame] | 48 | // 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 | } |