blob: e5aaaff759d445fa814c8baa05cd50fb141e25c4 [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";
15 description
16 "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 Baker71d5c4e2021-10-21 23:59:57 -070055 // deprecated
Scott Bakerc9d3d842021-09-17 11:32:53 -070056 leaf spgwc-endpoint {
57 type inet:uri;
58 description "url of the spgwc service";
59 }
60
Scott Baker71d5c4e2021-10-21 23:59:57 -070061 // deprecated
Scott Bakerc9d3d842021-09-17 11:32:53 -070062 leaf hss-endpoint {
63 type inet:uri;
64 description "url of the hss service";
65 }
66
Scott Baker71d5c4e2021-10-21 23:59:57 -070067 // deprecated
Scott Bakerc9d3d842021-09-17 11:32:53 -070068 leaf pcrf-endpoint {
69 type inet:uri;
70 description "url of the pcrf service";
71 }
72
73 leaf core-5g-endpoint {
74 type inet:uri;
75 description "url of the 5g core";
Scott Baker71d5c4e2021-10-21 23:59:57 -070076 }
77
78 leaf acc-prometheus-url {
79 type inet:uri;
80 description
81 "URL of ACC prometheus";
82 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070083 }
Scott Baker71d5c4e2021-10-21 23:59:57 -070084 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070085}