blob: 27361dc396ccb3dab1594bbae47520b093c6b900 [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 apn-profile {
6 namespace "http://opennetworking.org/aether/apn-profile";
7 prefix pro;
8
9 import ietf-inet-types { prefix inet; }
10 import service-group { prefix sg; }
11
12 organization "Open Networking Foundation.";
13 contact "Scott Baker";
14 description "To generate JSON from this use command
15 pyang -f jtoxx test1.yang | python3 -m json.tool > test1.json
16 Copied from YangUIComponents project";
17
18 revision "2021-03-04" {
19 description "An Aether APN Profile";
20 reference "RFC 6087";
21 }
22
23 // TODO: Think more on whether this should be a UUID or
24 // simply a unique name. If it's a UUID, could fix the
25 // string length.
26 typedef apn-profile-id {
27 type string {
28 length 1..32;
29 }
30 }
31
32 container apn-profile {
33 description "The top level container";
34
35 list apn-profile {
36 key "id";
37 description
38 "List of apn profiles";
39
40 leaf id {
41 type apn-profile-id;
42 description "ID for this apn profile.";
43 }
44
45 leaf display-name {
46 type string {
47 length 1..80;
48 }
49 description "display name to use in GUI or CLI";
50 }
51
52 leaf apn-name {
53 type string {
54 length 1..32;
55 }
56 description "apn name";
57 }
58
59 leaf dns-primary {
60 type inet:ip-address;
61 description "primary dns server name";
62 }
63
64 leaf dns-secondary {
65 type inet:ip-address;
66 description "secondary dns server name";
67 }
68
69 leaf mtu {
70 type uint32 {
71 range 68..65535;
72 }
73 units bytes;
74 default 1460;
75 description "maximum transmission unit";
76 }
77
78 leaf gx-enabled {
79 type boolean;
80 default false;
81 description "enable gx interface";
82 }
83
84 leaf description {
85 type string {
86 length 1..100;
87 }
88 description "description of this profile";
89 }
90
91 leaf service-group {
92 type leafref {
93 path "/sg:service-group/sg:service-group/sg:id";
94 }
95 description
96 "Link to service group";
97 }
98 }
99 }
100}