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 onf-connectivity-service { |
| 6 | namespace "http://opennetworking.org/aether/connectivity-service"; |
| 7 | prefix cs; |
| 8 | |
| 9 | import ietf-inet-types { prefix inet; } |
| 10 | import ietf-yang-types{ prefix yg; } |
| 11 | import onf-aether-types { prefix at; } |
| 12 | |
| 13 | organization "Open Networking Foundation."; |
| 14 | contact "Scott Baker"; |
Scott Baker | cf7cb66 | 2021-11-18 14:25:50 -0800 | [diff] [blame] | 15 | description |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 16 | "An Aether Connectivity service is the linkage between the |
| 17 | ROC and a core that provides connectivity."; |
| 18 | |
Scott Baker | 71d5c4e | 2021-10-21 23:59:57 -0700 | [diff] [blame] | 19 | revision "2021-10-21" { |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 20 | description "An Aether Connectivity Service. Specifies the endpoints where the sdcore-adapter should push configuration to. A single connectivity service may be attached to multiple Enterprises."; |
| 21 | reference "RFC 6087"; |
| 22 | } |
| 23 | |
| 24 | typedef connectivity-service-id { |
| 25 | type yg:yang-identifier { |
| 26 | length 1..32; |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | container connectivity-service { |
| 31 | description "The top level container"; |
| 32 | |
| 33 | list connectivity-service { |
| 34 | key "id"; |
| 35 | description |
| 36 | "List of connectivity services"; |
| 37 | |
| 38 | leaf id { |
| 39 | type connectivity-service-id; |
| 40 | description "ID for this connectivity service."; |
| 41 | } |
| 42 | |
| 43 | leaf display-name { |
| 44 | type string { |
| 45 | length 1..80; |
| 46 | } |
| 47 | description "display name to use in GUI or CLI"; |
Scott Baker | 71d5c4e | 2021-10-21 23:59:57 -0700 | [diff] [blame] | 48 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 49 | |
| 50 | leaf description { |
| 51 | type at:description; |
| 52 | description "description of this connectivity service"; |
| 53 | } |
| 54 | |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 55 | leaf core-5g-endpoint { |
| 56 | type inet:uri; |
| 57 | description "url of the 5g core"; |
Scott Baker | 71d5c4e | 2021-10-21 23:59:57 -0700 | [diff] [blame] | 58 | } |
| 59 | |
| 60 | leaf acc-prometheus-url { |
| 61 | type inet:uri; |
| 62 | description |
| 63 | "URL of ACC prometheus"; |
| 64 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 65 | } |
Scott Baker | 71d5c4e | 2021-10-21 23:59:57 -0700 | [diff] [blame] | 66 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 67 | } |