blob: 183be3928217ec1a8a45b7ab30e885331c91def1 [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
Scott Bakerfdbad762022-01-03 16:00:45 -08005module onf-connectivity-service {
Scott Bakerc9d3d842021-09-17 11:32:53 -07006 namespace "http://opennetworking.org/aether/connectivity-service";
7 prefix cs;
8
9 import ietf-inet-types { prefix inet; }
Scott Bakerfdbad762022-01-03 16:00:45 -080010 import ietf-yang-types{ prefix yg; }
11 import onf-aether-types { prefix at; }
Scott Bakerc9d3d842021-09-17 11:32:53 -070012
13 organization "Open Networking Foundation.";
14 contact "Scott Baker";
Scott Bakerfdbad762022-01-03 16:00:45 -080015 description
16 "An Aether Connectivity service is the linkage between the
17 ROC and a core that provides connectivity.";
Scott Bakerc9d3d842021-09-17 11:32:53 -070018
Sean Condon11d6f422022-01-14 13:02:03 +000019 revision "2022-01-14" {
20 description "Renamed top level container as plural";
21 reference "RFC 6020";
22 }
23
Scott Bakerfdbad762022-01-03 16:00:45 -080024 revision "2021-10-21" {
Scott Bakerc9d3d842021-09-17 11:32:53 -070025 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.";
26 reference "RFC 6087";
27 }
28
29 typedef connectivity-service-id {
Scott Bakerfdbad762022-01-03 16:00:45 -080030 type yg:yang-identifier {
Scott Bakerc9d3d842021-09-17 11:32:53 -070031 length 1..32;
32 }
Scott Bakerfdbad762022-01-03 16:00:45 -080033 description "The typedef for connectivity-service-id";
Scott Bakerc9d3d842021-09-17 11:32:53 -070034 }
35
Sean Condon11d6f422022-01-14 13:02:03 +000036 container connectivity-services {
37 description "The connectivity-services top level container";
Scott Bakerc9d3d842021-09-17 11:32:53 -070038
39 list connectivity-service {
40 key "id";
41 description
42 "List of connectivity services";
43
44 leaf id {
45 type connectivity-service-id;
46 description "ID for this connectivity service.";
47 }
48
49 leaf display-name {
50 type string {
51 length 1..80;
52 }
53 description "display name to use in GUI or CLI";
PUSHP RAJba2e32f2021-11-02 10:39:24 +000054 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070055
56 leaf description {
Scott Bakerfdbad762022-01-03 16:00:45 -080057 type at:description;
Scott Bakerc9d3d842021-09-17 11:32:53 -070058 description "description of this connectivity service";
59 }
60
Scott Bakerfdbad762022-01-03 16:00:45 -080061 leaf core-5g-endpoint {
Scott Bakerc9d3d842021-09-17 11:32:53 -070062 type inet:uri;
Scott Bakerfdbad762022-01-03 16:00:45 -080063 description "url of the 5g core";
Scott Bakerc9d3d842021-09-17 11:32:53 -070064 }
65
Scott Bakerfdbad762022-01-03 16:00:45 -080066 leaf acc-prometheus-url {
67 type inet:uri;
68 description
69 "URL of ACC prometheus";
PUSHP RAJba2e32f2021-11-02 10:39:24 +000070 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070071 }
PUSHP RAJba2e32f2021-11-02 10:39:24 +000072 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070073}