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 | |
| 5 | module enterprise { |
| 6 | namespace "http://opennetworking.org/aether/enterprise"; |
| 7 | prefix ent; |
| 8 | |
| 9 | import aether-types { prefix at; } |
| 10 | import connectivity-service { prefix cs; } |
| 11 | import ietf-yang-types{ prefix yg; } |
| 12 | |
| 13 | organization "Open Networking Foundation."; |
| 14 | contact "Scott Baker"; |
| 15 | description |
| 16 | "An Aether Enterprise is an administration entity that |
| 17 | has ownership of resrouces."; |
| 18 | |
| 19 | revision "2021-06-02" { |
| 20 | 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 { |
| 25 | type yg:yang-identifier { |
| 26 | length 1..32; |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | container enterprise { |
| 31 | description "The top level container"; |
| 32 | |
| 33 | list enterprise { |
| 34 | key "id"; |
| 35 | description |
| 36 | "List of enterprises"; |
| 37 | |
| 38 | leaf id { |
| 39 | type enterprise-id; |
| 40 | description "ID for this enterprise."; |
| 41 | } |
| 42 | |
| 43 | leaf display-name { |
| 44 | type string { |
| 45 | length 1..80; |
| 46 | } |
| 47 | description "display name to use in GUI or CLI"; |
| 48 | } |
| 49 | |
| 50 | leaf description { |
| 51 | type at:description; |
| 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 | } |