blob: 00334f9621c9fe724c9cf48514d0f357c8b60b87 [file] [log] [blame]
Scott Bakerc9d3d842021-09-17 11:32:53 -07001// SPDX-FileCopyrightText: 2021 Open Networking Foundation
2//
Sean Condon160ec1d2022-02-08 12:58:25 +00003// SPDX-License-Identifier: Apache-2.0
Scott Bakerc9d3d842021-09-17 11:32:53 -07004
Scott Bakerfdbad762022-01-03 16:00:45 -08005module onf-enterprise {
Scott Bakerc9d3d842021-09-17 11:32:53 -07006 namespace "http://opennetworking.org/aether/enterprise";
7 prefix ent;
8
Scott Bakerfdbad762022-01-03 16:00:45 -08009 import ietf-yang-types{ prefix yg; }
10 import onf-aether-types { prefix at; }
11 import onf-connectivity-service { prefix cs; }
Scott Bakerc9d3d842021-09-17 11:32:53 -070012
Sean Condon11d6f422022-01-14 13:02:03 +000013 include onf-site;
14 include onf-upf;
Sean Condon24297da2022-01-27 09:50:34 +000015 include onf-slice;
Sean Condon11d6f422022-01-14 13:02:03 +000016 include onf-device-group;
17 include onf-ip-domain;
18 include onf-application;
Scott Baker4fb4ba92022-01-14 13:52:01 -080019 include onf-sim-card;
Sean Condon11d6f422022-01-14 13:02:03 +000020 include onf-traffic-class;
21 include onf-template;
Scott Baker4fb4ba92022-01-14 13:52:01 -080022 include onf-device;
23 include onf-priority-traffic-rule;
Sean Condon11d6f422022-01-14 13:02:03 +000024
Scott Bakerc9d3d842021-09-17 11:32:53 -070025 organization "Open Networking Foundation.";
26 contact "Scott Baker";
Scott Bakerfdbad762022-01-03 16:00:45 -080027 description
28 "An Aether Enterprise is an administration entity that
29 has ownership of resrouces.";
Scott Bakerc9d3d842021-09-17 11:32:53 -070030
Scott Baker4fb4ba92022-01-14 13:52:01 -080031 revision "2022-01-19" {
32 description "Sim-card, Device, and Priority-Traffic-Rule Support";
33 reference "RFC 6020";
34 }
35
Sean Condon11d6f422022-01-14 13:02:03 +000036 revision "2022-01-14" {
37 description "Refactored to work with submodules";
38 reference "RFC 6020";
39 }
40
Scott Bakerfdbad762022-01-03 16:00:45 -080041 revision "2021-06-02" {
Scott Bakerc9d3d842021-09-17 11:32:53 -070042 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 Bakerfdbad762022-01-03 16:00:45 -080047 type yg:yang-identifier {
Scott Bakerc9d3d842021-09-17 11:32:53 -070048 length 1..32;
49 }
Scott Bakerfdbad762022-01-03 16:00:45 -080050 description "The typedef for enterprise-id";
Scott Bakerc9d3d842021-09-17 11:32:53 -070051 }
52
Sean Condon11d6f422022-01-14 13:02:03 +000053 container enterprises {
54 description "The top level enterprises container";
Scott Bakerc9d3d842021-09-17 11:32:53 -070055
56 list enterprise {
Sean Condon9f7966e2022-02-03 10:55:06 +000057 key "enterprise-id";
Scott Bakerc9d3d842021-09-17 11:32:53 -070058 description
59 "List of enterprises";
60
Sean Condon9f7966e2022-02-03 10:55:06 +000061 leaf enterprise-id {
Scott Bakerc9d3d842021-09-17 11:32:53 -070062 type enterprise-id;
63 description "ID for this enterprise.";
64 }
65
Sean Condon9f7966e2022-02-03 10:55:06 +000066 uses at:desc-display-name;
Scott Bakerc9d3d842021-09-17 11:32:53 -070067
68 list connectivity-service {
69 key "connectivity-service";
70 leaf connectivity-service {
71 type leafref {
Sean Condon9f7966e2022-02-03 10:55:06 +000072 path "/cs:connectivity-services/cs:connectivity-service/cs:connectivity-service-id";
PUSHP RAJba2e32f2021-11-02 10:39:24 +000073 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070074 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 Bakerfdbad762022-01-03 16:00:45 -080083 description "The list for connectivity-service";
PUSHP RAJba2e32f2021-11-02 10:39:24 +000084 }
Sean Condon11d6f422022-01-14 13:02:03 +000085
86 uses application;
87
88 uses traffic-class;
89
90 uses template;
91
92 uses site;
Scott Bakerc9d3d842021-09-17 11:32:53 -070093 }
PUSHP RAJba2e32f2021-11-02 10:39:24 +000094 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070095}