blob: 20e1763fc08e6ead28df8f15209305a4a89c23c9 [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
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 "2020-08-18" {
18 description "An Aether APN Profile";
19 reference "RFC 6087";
20 }
21
22 // TODO: Think more on whether this should be a UUID or
23 // simply a unique name. If it's a UUID, could fix the
24 // string length.
25 typedef apn-profile-id {
26 type string {
27 length 1..32;
28 }
29 }
30
31 container apn-profile {
32 description "The top level container";
33
34 list apn-profile {
35 key "id";
36 description
37 "List of apn profiles";
38
39 leaf id {
40 type apn-profile-id;
41 description "ID for this apn profile.";
42 }
43
44 leaf apn-name {
45 type string {
46 length 1..32;
47 }
48 description "apn name";
49 }
50
51 leaf dns-primary {
52 type inet:ip-address;
53 description "primary dns server name";
54 }
55
56 leaf dns-secondary {
57 type inet:ip-address;
58 description "secondary dns server name";
59 }
60
61 leaf mtu {
62 type uint32 {
63 range 68..65535;
64 }
65 units bytes;
66 default 1460;
67 description "maximum transmission unit";
68 }
69
70 leaf gx-enabled {
71 type boolean;
72 default false;
73 description "enable gx interface";
74 }
75
76 leaf description {
77 type string {
78 length 1..100;
79 }
80 description "description of this profile";
81 }
82 }
83 }
84}