blob: 0d62b0a16808139f5225d05a18b64f7914b70446 [file] [log] [blame]
Vishal Bhoj82c80712015-12-15 21:13:33 +05301/** @file
2 VFR file used by the IP6 configuration component.
3
4 Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>
5
6 This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php.
10
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13
14**/
15
16#include "Ip6NvData.h"
17
18#define EFI_NETWORK_DEVICE_CLASS 0x04
19
20formset
21 guid = IP6_CONFIG_NVDATA_GUID,
22 title = STRING_TOKEN(STR_IP6_CONFIG_FORM_TITLE),
23 help = STRING_TOKEN(STR_IP6_CONFIG_FORM_HELP),
24 class = EFI_NETWORK_DEVICE_CLASS,
25 subclass = 0x03,
26
27 varstore IP6_CONFIG_IFR_NVDATA,
28 name = IP6_CONFIG_IFR_NVDATA,
29 guid = IP6_CONFIG_NVDATA_GUID;
30
31 form formid = FORMID_HEAD_FORM,
32 title = STRING_TOKEN(STR_IP6_DEVICE_FORM_TITLE);
33
34 goto FORMID_MAIN_FORM,
35 prompt = STRING_TOKEN (STR_GET_CURRENT_SETTING),
36 help = STRING_TOKEN (STR_GET_CURRENT_SETTING_HELP),
37 flags = INTERACTIVE,
38 key = KEY_GET_CURRENT_SETTING;
39
40 endform;
41
42 form formid = FORMID_MAIN_FORM,
43 title = STRING_TOKEN(STR_IP6_DEVICE_FORM_TITLE);
44
45 text
46 help = STRING_TOKEN(STR_IP6_INTERFACE_NAME_HELP),
47 text = STRING_TOKEN(STR_IP6_INTERFACE_NAME),
48 text = STRING_TOKEN(STR_IP6_INTERFACE_NAME_CONTENT);
49
50 text
51 help = STRING_TOKEN(STR_IP6_INTERFACE_TYPE_HELP),
52 text = STRING_TOKEN(STR_IP6_INTERFACE_TYPE),
53 text = STRING_TOKEN(STR_IP6_INTERFACE_TYPE_CONTENT);
54
55 text
56 help = STRING_TOKEN(STR_IP6_MAC_ADDRESS_HELP),
57 text = STRING_TOKEN(STR_IP6_MAC_ADDRESS),
58 text = STRING_TOKEN(STR_IP6_MAC_ADDRESS_CONTENT);
59
60 text
61 help = STRING_TOKEN(STR_IP6_HOST_ADDRESS_HELP),
62 text = STRING_TOKEN(STR_IP6_HOST_ADDRESS),
63 text = STRING_TOKEN(STR_NULL);
64
65 label HOST_ADDRESS_LABEL;
66 label LABEL_END;
67
68 text
69 help = STRING_TOKEN(STR_IP6_ROUTE_TABLE_HELP),
70 text = STRING_TOKEN(STR_IP6_ROUTE_TABLE),
71 text = STRING_TOKEN(STR_NULL);
72
73 label ROUTE_TABLE_LABEL;
74 label LABEL_END;
75
76 text
77 help = STRING_TOKEN(STR_IP6_GATEWAY_ADDRESS_HELP),
78 text = STRING_TOKEN(STR_IP6_GATEWAY_ADDRESS),
79 text = STRING_TOKEN(STR_NULL);
80
81 label GATEWAY_ADDRESS_LABEL;
82 label LABEL_END;
83
84 text
85 help = STRING_TOKEN(STR_IP6_DNS_ADDRESS_HELP),
86 text = STRING_TOKEN(STR_IP6_DNS_ADDRESS),
87 text = STRING_TOKEN(STR_NULL);
88
89 label DNS_ADDRESS_LABEL;
90 label LABEL_END;
91
92 string varid = IP6_CONFIG_IFR_NVDATA.InterfaceId,
93 prompt = STRING_TOKEN(STR_IP6_INTERFACE_ID),
94 help = STRING_TOKEN(STR_IP6_INTERFACE_ID_HELP),
95 flags = INTERACTIVE,
96 key = KEY_INTERFACE_ID,
97 minsize = INTERFACE_ID_STR_MIN_SIZE,
98 maxsize = INTERFACE_ID_STR_MAX_SIZE,
99 endstring;
100
101 numeric varid = IP6_CONFIG_IFR_NVDATA.DadTransmitCount,
102 prompt = STRING_TOKEN(STR_IP6_DAD_TRANSMIT_COUNT),
103 help = STRING_TOKEN(STR_IP6_DAD_TRANSMIT_COUNT_HELP),
104 flags = 0,
105 minimum = 0,
106 maximum = DAD_MAX_TRANSMIT_COUNT,
107 step = 0,
108 endnumeric;
109
110 oneof varid = IP6_CONFIG_IFR_NVDATA.Policy,
111 prompt = STRING_TOKEN(STR_POLICY_TYPE_PROMPT),
112 help = STRING_TOKEN(STR_POLICY_TYPE_HELP),
113 option text = STRING_TOKEN(STR_POLICY_TYPE_AUTO), value = IP6_POLICY_AUTO, flags = DEFAULT;
114 option text = STRING_TOKEN(STR_POLICY_TYPE_MANUAL), value = IP6_POLICY_MANUAL, flags = 0;
115 endoneof;
116
117 subtitle text = STRING_TOKEN(STR_NULL);
118
119 suppressif ideqval IP6_CONFIG_IFR_NVDATA.Policy == IP6_POLICY_AUTO;
120 goto FORMID_MANUAL_CONFIG_FORM,
121 prompt = STRING_TOKEN(STR_IP6_AD_CONFIG_FORM),
122 help = STRING_TOKEN(STR_IP6_AD_CONFIG_FORM_HELP),
123 flags = 0;
124 subtitle text = STRING_TOKEN(STR_NULL);
125 endif;
126
127 text
128 help = STRING_TOKEN (STR_SAVE_CHANGES_HELP),
129 text = STRING_TOKEN (STR_SAVE_CHANGES),
130 flags = INTERACTIVE,
131 key = KEY_SAVE_CHANGES;
132
133 endform;
134
135 form formid = FORMID_MANUAL_CONFIG_FORM,
136 title = STRING_TOKEN(STR_IP6_AD_CONFIG_FORM);
137
138 string varid = IP6_CONFIG_IFR_NVDATA.ManualAddress,
139 prompt = STRING_TOKEN(STR_IP6_MANUAL_ADDRESS),
140 help = STRING_TOKEN(STR_IP6_MANUAL_ADDRESS_HELP),
141 flags = INTERACTIVE,
142 key = KEY_MANUAL_ADDRESS,
143 minsize = ADDRESS_STR_MIN_SIZE,
144 maxsize = ADDRESS_STR_MAX_SIZE,
145 endstring;
146
147 string varid = IP6_CONFIG_IFR_NVDATA.GatewayAddress,
148 prompt = STRING_TOKEN(STR_IP6_NEW_GATEWAY_ADDRESS),
149 help = STRING_TOKEN(STR_IP6_NEW_GATEWAY_ADDR_HELP),
150 flags = INTERACTIVE,
151 key = KEY_GATEWAY_ADDRESS,
152 minsize = ADDRESS_STR_MIN_SIZE,
153 maxsize = ADDRESS_STR_MAX_SIZE,
154 endstring;
155
156 string varid = IP6_CONFIG_IFR_NVDATA.DnsAddress,
157 prompt = STRING_TOKEN(STR_IP6_NEW_DNS_ADDRESS),
158 help = STRING_TOKEN(STR_IP6_NEW_DNS_ADDRESS_HELP),
159 flags = INTERACTIVE,
160 key = KEY_DNS_ADDRESS,
161 minsize = ADDRESS_STR_MIN_SIZE,
162 maxsize = ADDRESS_STR_MAX_SIZE,
163 endstring;
164
165 text
166 help = STRING_TOKEN (STR_SAVE_AND_EXIT),
167 text = STRING_TOKEN (STR_SAVE_AND_EXIT),
168 flags = INTERACTIVE,
169 key = KEY_SAVE_CONFIG_CHANGES;
170
171 text
172 help = STRING_TOKEN (STR_NO_SAVE_AND_EXIT),
173 text = STRING_TOKEN (STR_NO_SAVE_AND_EXIT),
174 flags = INTERACTIVE,
175 key = KEY_IGNORE_CONFIG_CHANGES;
176
177 endform;
178
179endformset;
180