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; |
| 15 | include onf-vcs; |
| 16 | include onf-device-group; |
| 17 | include onf-ip-domain; |
| 18 | include onf-application; |
| 19 | include onf-traffic-class; |
| 20 | include onf-template; |
| 21 | |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 22 | organization "Open Networking Foundation."; |
| 23 | contact "Scott Baker"; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 24 | description |
| 25 | "An Aether Enterprise is an administration entity that |
| 26 | has ownership of resrouces."; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 27 | |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame^] | 28 | revision "2022-01-14" { |
| 29 | description "Refactored to work with submodules"; |
| 30 | reference "RFC 6020"; |
| 31 | } |
| 32 | |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 33 | revision "2021-06-02" { |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 34 | description "An Aether Enterprise. Used to distinguish ownership of devices and other resources as well as a domain of configuration."; |
| 35 | reference "RFC 6087"; |
| 36 | } |
| 37 | |
| 38 | typedef enterprise-id { |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 39 | type yg:yang-identifier { |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 40 | length 1..32; |
| 41 | } |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 42 | description "The typedef for enterprise-id"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 43 | } |
| 44 | |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame^] | 45 | container enterprises { |
| 46 | description "The top level enterprises container"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 47 | |
| 48 | list enterprise { |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame^] | 49 | key "ent-id"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 50 | description |
| 51 | "List of enterprises"; |
| 52 | |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame^] | 53 | leaf ent-id { |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 54 | type enterprise-id; |
| 55 | description "ID for this enterprise."; |
| 56 | } |
| 57 | |
| 58 | leaf display-name { |
| 59 | type string { |
| 60 | length 1..80; |
| 61 | } |
| 62 | description "display name to use in GUI or CLI"; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 63 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 64 | |
| 65 | leaf description { |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 66 | type at:description; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 67 | description "description of this enterprise"; |
| 68 | } |
| 69 | |
| 70 | list connectivity-service { |
| 71 | key "connectivity-service"; |
| 72 | leaf connectivity-service { |
| 73 | type leafref { |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame^] | 74 | path "/cs:connectivity-services/cs:connectivity-service/cs:id"; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 75 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 76 | description |
| 77 | "Link to connectivity services where configuration should be pushed for this enterprise's devices"; |
| 78 | } |
| 79 | leaf enabled { |
| 80 | type boolean; |
| 81 | default true; |
| 82 | description |
| 83 | "Allow or disallow pushes to this connectivity service"; |
| 84 | } |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 85 | description "The list for connectivity-service"; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 86 | } |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame^] | 87 | |
| 88 | uses application; |
| 89 | |
| 90 | uses traffic-class; |
| 91 | |
| 92 | uses template; |
| 93 | |
| 94 | uses site; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 95 | } |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 96 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 97 | } |