blob: 38cb4b8f719c0722f6694c904148036b608d0354 [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
5module enterprise {
6 namespace "http://opennetworking.org/aether/enterprise";
7 prefix ent;
8
9 import connectivity-service { prefix cs; }
10
11 organization "Open Networking Foundation.";
12 contact "Scott Baker";
13 description "To generate JSON from this use command
14 pyang -f jtoxx test1.yang | python3 -m json.tool > test1.json
15 Copied from YangUIComponents project";
16
17 revision "2020-11-30" {
18 description "An Aether Enterprise. Used to distinguish ownership of devices and other resources as well as a domain of configuration.";
19 reference "RFC 6087";
20 }
21
22 typedef enterprise-id {
23 type string {
24 length 1..32;
25 }
26 }
27
28 container enterprise {
29 description "The top level container";
30
31 list enterprise {
32 key "id";
33 description
34 "List of enterprises";
35
36 leaf id {
37 type enterprise-id;
38 description "ID for this enterprise.";
39 }
40
41 leaf display-name {
42 type string {
43 length 1..80;
44 }
45 description "display name to use in GUI or CLI";
46 }
47
48 leaf description {
49 type string {
50 length 1..100;
51 }
52 description "description of this enterprise";
53 }
54
55 list connectivity-service {
56 key "connectivity-service";
57 leaf connectivity-service {
58 type leafref {
59 path "/cs:connectivity-service/cs:connectivity-service/cs:id";
60 }
61 description
62 "Link to connectivity services where configuration should be pushed for this enterprise's devices";
63 }
64 leaf enabled {
65 type boolean;
66 default true;
67 description
68 "Allow or disallow pushes to this connectivity service";
69 }
70 }
71 }
72 }
73}