blob: 16ad5f9ff9ecf9ed7b0c31128a55f21bac74b8ff [file] [log] [blame]
Scott Bakerc9d3d842021-09-17 11:32:53 -07001// SPDX-FileCopyrightText: 2021 Open Networking Foundation
2//
3// SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
4
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
13 organization "Open Networking Foundation.";
14 contact "Scott Baker";
Scott Bakerfdbad762022-01-03 16:00:45 -080015 description
16 "An Aether Enterprise is an administration entity that
17 has ownership of resrouces.";
Scott Bakerc9d3d842021-09-17 11:32:53 -070018
Scott Bakerfdbad762022-01-03 16:00:45 -080019 revision "2021-06-02" {
Scott Bakerc9d3d842021-09-17 11:32:53 -070020 description "An Aether Enterprise. Used to distinguish ownership of devices and other resources as well as a domain of configuration.";
21 reference "RFC 6087";
22 }
23
24 typedef enterprise-id {
Scott Bakerfdbad762022-01-03 16:00:45 -080025 type yg:yang-identifier {
Scott Bakerc9d3d842021-09-17 11:32:53 -070026 length 1..32;
27 }
Scott Bakerfdbad762022-01-03 16:00:45 -080028 description "The typedef for enterprise-id";
Scott Bakerc9d3d842021-09-17 11:32:53 -070029 }
30
31 container enterprise {
32 description "The top level container";
33
34 list enterprise {
35 key "id";
36 description
37 "List of enterprises";
38
39 leaf id {
40 type enterprise-id;
41 description "ID for this enterprise.";
42 }
43
44 leaf display-name {
45 type string {
46 length 1..80;
47 }
48 description "display name to use in GUI or CLI";
PUSHP RAJba2e32f2021-11-02 10:39:24 +000049 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070050
51 leaf description {
Scott Bakerfdbad762022-01-03 16:00:45 -080052 type at:description;
Scott Bakerc9d3d842021-09-17 11:32:53 -070053 description "description of this enterprise";
54 }
55
56 list connectivity-service {
57 key "connectivity-service";
58 leaf connectivity-service {
59 type leafref {
60 path "/cs:connectivity-service/cs:connectivity-service/cs:id";
PUSHP RAJba2e32f2021-11-02 10:39:24 +000061 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070062 description
63 "Link to connectivity services where configuration should be pushed for this enterprise's devices";
64 }
65 leaf enabled {
66 type boolean;
67 default true;
68 description
69 "Allow or disallow pushes to this connectivity service";
70 }
Scott Bakerfdbad762022-01-03 16:00:45 -080071 description "The list for connectivity-service";
PUSHP RAJba2e32f2021-11-02 10:39:24 +000072 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070073 }
PUSHP RAJba2e32f2021-11-02 10:39:24 +000074 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070075}