blob: 015f6951759e7a7f1ddaf6baf17ad8714524f0b2 [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 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
PUSHP RAJba2e32f2021-11-02 10:39:24 +000023 // simply a unique name. If it's a UUID, could fix the
Scott Bakerc9d3d842021-09-17 11:32:53 -070024 // string length.
25 typedef apn-profile-id {
26 type string {
27 length 1..32;
28 }
PUSHP RAJba2e32f2021-11-02 10:39:24 +000029 description "The typedef for apn-profile-id";
Scott Bakerc9d3d842021-09-17 11:32:53 -070030 }
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 apn-name {
46 type string {
47 length 1..32;
48 }
49 description "apn name";
50 }
51
52 leaf dns-primary {
53 type inet:ip-address;
54 description "primary dns server name";
55 }
56
57 leaf dns-secondary {
58 type inet:ip-address;
59 description "secondary dns server name";
60 }
61
62 leaf mtu {
63 type uint32 {
64 range 68..65535;
65 }
66 units bytes;
67 default 1460;
68 description "maximum transmission unit";
69 }
70
71 leaf gx-enabled {
72 type boolean;
73 default false;
74 description "enable gx interface";
75 }
76
77 leaf description {
78 type string {
79 length 1..100;
80 }
81 description "description of this profile";
PUSHP RAJba2e32f2021-11-02 10:39:24 +000082 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070083 }
PUSHP RAJba2e32f2021-11-02 10:39:24 +000084 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070085}