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 | |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame^] | 5 | module onf-connectivity-service { |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 6 | namespace "http://opennetworking.org/aether/connectivity-service"; |
| 7 | prefix cs; |
| 8 | |
| 9 | import ietf-inet-types { prefix inet; } |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame^] | 10 | import ietf-yang-types{ prefix yg; } |
| 11 | import onf-aether-types { prefix at; } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 12 | |
| 13 | organization "Open Networking Foundation."; |
| 14 | contact "Scott Baker"; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame^] | 15 | description |
| 16 | "An Aether Connectivity service is the linkage between the |
| 17 | ROC and a core that provides connectivity."; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 18 | |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [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 { |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame^] | 25 | type yg:yang-identifier { |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 26 | length 1..32; |
| 27 | } |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame^] | 28 | description "The typedef for connectivity-service-id"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 29 | } |
| 30 | |
| 31 | container connectivity-service { |
| 32 | description "The top level container"; |
| 33 | |
| 34 | list connectivity-service { |
| 35 | key "id"; |
| 36 | description |
| 37 | "List of connectivity services"; |
| 38 | |
| 39 | leaf id { |
| 40 | type connectivity-service-id; |
| 41 | description "ID for this connectivity service."; |
| 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 RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 49 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 50 | |
| 51 | leaf description { |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame^] | 52 | type at:description; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 53 | description "description of this connectivity service"; |
| 54 | } |
| 55 | |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame^] | 56 | leaf core-5g-endpoint { |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 57 | type inet:uri; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame^] | 58 | description "url of the 5g core"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 59 | } |
| 60 | |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame^] | 61 | leaf acc-prometheus-url { |
| 62 | type inet:uri; |
| 63 | description |
| 64 | "URL of ACC prometheus"; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 65 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 66 | } |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 67 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 68 | } |