blob: dfcd8d03fac0bd7ed60309d658e66c42016dc332 [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 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 Bakercf7cb662021-11-18 14:25:50 -080015 description
Scott Bakerc9d3d842021-09-17 11:32:53 -070016 "An Aether Connectivity service is the linkage between the
17 ROC and a core that provides connectivity.";
18
Scott Baker71d5c4e2021-10-21 23:59:57 -070019 revision "2021-10-21" {
Scott Bakerc9d3d842021-09-17 11:32:53 -070020 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 Baker71d5c4e2021-10-21 23:59:57 -070048 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070049
50 leaf description {
51 type at:description;
52 description "description of this connectivity service";
53 }
54
Scott Bakerc9d3d842021-09-17 11:32:53 -070055 leaf core-5g-endpoint {
56 type inet:uri;
57 description "url of the 5g core";
Scott Baker71d5c4e2021-10-21 23:59:57 -070058 }
59
60 leaf acc-prometheus-url {
61 type inet:uri;
62 description
63 "URL of ACC prometheus";
64 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070065 }
Scott Baker71d5c4e2021-10-21 23:59:57 -070066 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070067}