blob: f12340b93668f4fc1ebb413a98f3414241d3a322 [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 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 }
26 }
27
28 container connectivity-service {
29 description "The top level container";
30
31 list connectivity-service {
32 key "id";
33 description
34 "List of connectivity services";
35
36 leaf id {
37 type connectivity-service-id;
38 description "ID for this connectivity service.";
39 }
40
41 leaf display-name {
42 type string {
43 length 1..80;
44 }
45 description "display name to use in GUI or CLI";
46 }
47
48 leaf description {
49 type string {
50 length 1..100;
51 }
52 description "description of this connectivity service";
53 }
54
55 leaf spgwc-endpoint {
56 type inet:uri;
57 description "url of the spgwc service";
58 }
59
60 leaf hss-endpoint {
61 type inet:uri;
62 description "url of the hss service";
63 }
64
65 leaf pcrf-endpoint {
66 type inet:uri;
67 description "url of the pcrf service";
68 }
69 }
70 }
71}