blob: dfc8821f47249c2ea7eae0e9b2b5acf1a96d9e53 [file] [log] [blame]
Scott Bakerc9d3d842021-09-17 11:32:53 -07001// SPDX-FileCopyrightText: 2021 Open Networking Foundation
2//
Sean Condon160ec1d2022-02-08 12:58:25 +00003// SPDX-License-Identifier: Apache-2.0
Scott Bakerc9d3d842021-09-17 11:32:53 -07004
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 {
Sean Condon9f7966e2022-02-03 10:55:06 +000040 key "connectivity-service-id";
Scott Bakerc9d3d842021-09-17 11:32:53 -070041 description
42 "List of connectivity services";
43
Sean Condon9f7966e2022-02-03 10:55:06 +000044 leaf connectivity-service-id {
Scott Bakerc9d3d842021-09-17 11:32:53 -070045 type connectivity-service-id;
46 description "ID for this connectivity service.";
47 }
48
Sean Condon9f7966e2022-02-03 10:55:06 +000049 uses at:desc-display-name;
Scott Bakerc9d3d842021-09-17 11:32:53 -070050
Scott Bakerfdbad762022-01-03 16:00:45 -080051 leaf core-5g-endpoint {
Scott Bakerc9d3d842021-09-17 11:32:53 -070052 type inet:uri;
Scott Bakerfdbad762022-01-03 16:00:45 -080053 description "url of the 5g core";
Scott Bakerc9d3d842021-09-17 11:32:53 -070054 }
55
Scott Bakerfdbad762022-01-03 16:00:45 -080056 leaf acc-prometheus-url {
57 type inet:uri;
58 description
59 "URL of ACC prometheus";
PUSHP RAJba2e32f2021-11-02 10:39:24 +000060 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070061 }
PUSHP RAJba2e32f2021-11-02 10:39:24 +000062 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070063}