Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 1 | // SPDX-FileCopyrightText: 2021 Open Networking Foundation |
| 2 | // |
| 3 | // SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 4 | |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 5 | module onf-enterprise { |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 6 | namespace "http://opennetworking.org/aether/enterprise"; |
| 7 | prefix ent; |
| 8 | |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 9 | import ietf-yang-types{ prefix yg; } |
| 10 | import onf-aether-types { prefix at; } |
| 11 | import onf-connectivity-service { prefix cs; } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 12 | |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 13 | include onf-site; |
| 14 | include onf-upf; |
Sean Condon | 24297da | 2022-01-27 09:50:34 +0000 | [diff] [blame] | 15 | include onf-slice; |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 16 | include onf-device-group; |
| 17 | include onf-ip-domain; |
| 18 | include onf-application; |
Scott Baker | 4fb4ba9 | 2022-01-14 13:52:01 -0800 | [diff] [blame] | 19 | include onf-sim-card; |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 20 | include onf-traffic-class; |
| 21 | include onf-template; |
Scott Baker | 4fb4ba9 | 2022-01-14 13:52:01 -0800 | [diff] [blame] | 22 | include onf-device; |
| 23 | include onf-priority-traffic-rule; |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 24 | |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 25 | organization "Open Networking Foundation."; |
| 26 | contact "Scott Baker"; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 27 | description |
| 28 | "An Aether Enterprise is an administration entity that |
| 29 | has ownership of resrouces."; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 30 | |
Scott Baker | 4fb4ba9 | 2022-01-14 13:52:01 -0800 | [diff] [blame] | 31 | revision "2022-01-19" { |
| 32 | description "Sim-card, Device, and Priority-Traffic-Rule Support"; |
| 33 | reference "RFC 6020"; |
| 34 | } |
| 35 | |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 36 | revision "2022-01-14" { |
| 37 | description "Refactored to work with submodules"; |
| 38 | reference "RFC 6020"; |
| 39 | } |
| 40 | |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 41 | revision "2021-06-02" { |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 42 | description "An Aether Enterprise. Used to distinguish ownership of devices and other resources as well as a domain of configuration."; |
| 43 | reference "RFC 6087"; |
| 44 | } |
| 45 | |
| 46 | typedef enterprise-id { |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 47 | type yg:yang-identifier { |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 48 | length 1..32; |
| 49 | } |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 50 | description "The typedef for enterprise-id"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 51 | } |
| 52 | |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 53 | container enterprises { |
| 54 | description "The top level enterprises container"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 55 | |
| 56 | list enterprise { |
Sean Condon | 9f7966e | 2022-02-03 10:55:06 +0000 | [diff] [blame^] | 57 | key "enterprise-id"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 58 | description |
| 59 | "List of enterprises"; |
| 60 | |
Sean Condon | 9f7966e | 2022-02-03 10:55:06 +0000 | [diff] [blame^] | 61 | leaf enterprise-id { |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 62 | type enterprise-id; |
| 63 | description "ID for this enterprise."; |
| 64 | } |
| 65 | |
Sean Condon | 9f7966e | 2022-02-03 10:55:06 +0000 | [diff] [blame^] | 66 | uses at:desc-display-name; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 67 | |
| 68 | list connectivity-service { |
| 69 | key "connectivity-service"; |
| 70 | leaf connectivity-service { |
| 71 | type leafref { |
Sean Condon | 9f7966e | 2022-02-03 10:55:06 +0000 | [diff] [blame^] | 72 | path "/cs:connectivity-services/cs:connectivity-service/cs:connectivity-service-id"; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 73 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 74 | description |
| 75 | "Link to connectivity services where configuration should be pushed for this enterprise's devices"; |
| 76 | } |
| 77 | leaf enabled { |
| 78 | type boolean; |
| 79 | default true; |
| 80 | description |
| 81 | "Allow or disallow pushes to this connectivity service"; |
| 82 | } |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 83 | description "The list for connectivity-service"; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 84 | } |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 85 | |
| 86 | uses application; |
| 87 | |
| 88 | uses traffic-class; |
| 89 | |
| 90 | uses template; |
| 91 | |
| 92 | uses site; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 93 | } |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 94 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 95 | } |