blob: 7a00b2ffef74f0a21f92d8271cb656b77034e437 [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
5module connectivity-service {
6 namespace "http://opennetworking.org/aether/connectivity-service";
7 prefix cs;
8
9 import ietf-inet-types { prefix inet; }
10
11 organization "Open Networking Foundation.";
12 contact "Scott Baker";
13 description "To generate JSON from this use command
14 pyang -f jtoxx test1.yang | python3 -m json.tool > test1.json
15 Copied from YangUIComponents project";
16
17 revision "2021-03-18" {
18 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.";
19 reference "RFC 6087";
20 }
21
22 typedef connectivity-service-id {
23 type string {
24 length 1..32;
25 }
PUSHP RAJba2e32f2021-11-02 10:39:24 +000026 description "The typedef for connectivity-service-id";
Scott Bakerc9d3d842021-09-17 11:32:53 -070027 }
28
29 container connectivity-service {
30 description "The top level container";
31
32 list connectivity-service {
33 key "id";
34 description
35 "List of connectivity services";
36
37 leaf id {
38 type connectivity-service-id;
39 description "ID for this connectivity service.";
40 }
41
42 leaf display-name {
43 type string {
44 length 1..80;
45 }
46 description "display name to use in GUI or CLI";
PUSHP RAJba2e32f2021-11-02 10:39:24 +000047 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070048
49 leaf description {
50 type string {
51 length 1..100;
52 }
53 description "description of this connectivity service";
54 }
55
56 leaf spgwc-endpoint {
57 type inet:uri;
58 description "url of the spgwc service";
59 }
60
61 leaf hss-endpoint {
62 type inet:uri;
63 description "url of the hss service";
64 }
65
66 leaf pcrf-endpoint {
67 type inet:uri;
68 description "url of the pcrf service";
PUSHP RAJba2e32f2021-11-02 10:39:24 +000069 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070070 }
PUSHP RAJba2e32f2021-11-02 10:39:24 +000071 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070072}