Add NetworkPkg (P.UDK2010.UP3.Network.P1)
[mirror_edk2.git] / NetworkPkg / Ip6Dxe / Ip6Config.vfr
1 /** @file
2 VFR file used by the IP6 configuration component.
3
4 Copyright (c) 2010, 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
20 formset
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_MAIN_FORM,
32 title = STRING_TOKEN(STR_IP6_DEVICE_FORM_TITLE);
33
34 text
35 help = STRING_TOKEN(STR_IP6_INTERFACE_NAME_HELP),
36 text = STRING_TOKEN(STR_IP6_INTERFACE_NAME),
37 text = STRING_TOKEN(STR_IP6_INTERFACE_NAME_CONTENT);
38
39 text
40 help = STRING_TOKEN(STR_IP6_INTERFACE_TYPE_HELP),
41 text = STRING_TOKEN(STR_IP6_INTERFACE_TYPE),
42 text = STRING_TOKEN(STR_IP6_INTERFACE_TYPE_CONTENT);
43
44 text
45 help = STRING_TOKEN(STR_IP6_MAC_ADDRESS_HELP),
46 text = STRING_TOKEN(STR_IP6_MAC_ADDRESS),
47 text = STRING_TOKEN(STR_IP6_MAC_ADDRESS_CONTENT);
48
49 text
50 help = STRING_TOKEN(STR_IP6_HOST_ADDRESS_HELP),
51 text = STRING_TOKEN(STR_IP6_HOST_ADDRESS),
52 text = STRING_TOKEN(STR_NULL);
53
54 label HOST_ADDRESS_LABEL;
55 label LABEL_END;
56
57 text
58 help = STRING_TOKEN(STR_IP6_ROUTE_TABLE_HELP),
59 text = STRING_TOKEN(STR_IP6_ROUTE_TABLE),
60 text = STRING_TOKEN(STR_NULL);
61
62 label ROUTE_TABLE_LABEL;
63 label LABEL_END;
64
65 text
66 help = STRING_TOKEN(STR_IP6_GATEWAY_ADDRESS_HELP),
67 text = STRING_TOKEN(STR_IP6_GATEWAY_ADDRESS),
68 text = STRING_TOKEN(STR_NULL);
69
70 label GATEWAY_ADDRESS_LABEL;
71 label LABEL_END;
72
73 text
74 help = STRING_TOKEN(STR_IP6_DNS_ADDRESS_HELP),
75 text = STRING_TOKEN(STR_IP6_DNS_ADDRESS),
76 text = STRING_TOKEN(STR_NULL);
77
78 label DNS_ADDRESS_LABEL;
79 label LABEL_END;
80
81 string varid = IP6_CONFIG_IFR_NVDATA.InterfaceId,
82 prompt = STRING_TOKEN(STR_IP6_INTERFACE_ID),
83 help = STRING_TOKEN(STR_IP6_INTERFACE_ID_HELP),
84 flags = INTERACTIVE,
85 key = KEY_INTERFACE_ID,
86 minsize = INTERFACE_ID_STR_MIN_SIZE,
87 maxsize = INTERFACE_ID_STR_MAX_SIZE,
88 endstring;
89
90 numeric varid = IP6_CONFIG_IFR_NVDATA.DadTransmitCount,
91 prompt = STRING_TOKEN(STR_IP6_DAD_TRANSMIT_COUNT),
92 help = STRING_TOKEN(STR_IP6_DAD_TRANSMIT_COUNT_HELP),
93 flags = 0,
94 minimum = 0,
95 maximum = DAD_MAX_TRANSMIT_COUNT,
96 step = 0,
97 endnumeric;
98
99 oneof varid = IP6_CONFIG_IFR_NVDATA.Policy,
100 prompt = STRING_TOKEN(STR_POLICY_TYPE_PROMPT),
101 help = STRING_TOKEN(STR_POLICY_TYPE_HELP),
102 option text = STRING_TOKEN(STR_POLICY_TYPE_AUTO), value = IP6_POLICY_AUTO, flags = DEFAULT;
103 option text = STRING_TOKEN(STR_POLICY_TYPE_MANUAL), value = IP6_POLICY_MANUAL, flags = 0;
104 endoneof;
105
106 subtitle text = STRING_TOKEN(STR_NULL);
107
108 suppressif ideqval IP6_CONFIG_IFR_NVDATA.Policy == IP6_POLICY_AUTO;
109 goto FORMID_MANUAL_CONFIG_FORM,
110 prompt = STRING_TOKEN(STR_IP6_AD_CONFIG_FORM),
111 help = STRING_TOKEN(STR_IP6_AD_CONFIG_FORM_HELP),
112 flags = 0;
113 subtitle text = STRING_TOKEN(STR_NULL);
114 endif;
115
116 text
117 help = STRING_TOKEN (STR_SAVE_CHANGES_HELP),
118 text = STRING_TOKEN (STR_SAVE_CHANGES),
119 text = STRING_TOKEN (STR_NULL),
120 flags = INTERACTIVE,
121 key = KEY_SAVE_CHANGES;
122
123 endform;
124
125 form formid = FORMID_MANUAL_CONFIG_FORM,
126 title = STRING_TOKEN(STR_IP6_AD_CONFIG_FORM);
127
128 string varid = IP6_CONFIG_IFR_NVDATA.ManualAddress,
129 prompt = STRING_TOKEN(STR_IP6_MANUAL_ADDRESS),
130 help = STRING_TOKEN(STR_IP6_MANUAL_ADDRESS_HELP),
131 flags = INTERACTIVE,
132 key = KEY_MANUAL_ADDRESS,
133 minsize = ADDRESS_STR_MIN_SIZE,
134 maxsize = ADDRESS_STR_MAX_SIZE,
135 endstring;
136
137 string varid = IP6_CONFIG_IFR_NVDATA.GatewayAddress,
138 prompt = STRING_TOKEN(STR_IP6_NEW_GATEWAY_ADDRESS),
139 help = STRING_TOKEN(STR_IP6_NEW_GATEWAY_ADDR_HELP),
140 flags = INTERACTIVE,
141 key = KEY_GATEWAY_ADDRESS,
142 minsize = ADDRESS_STR_MIN_SIZE,
143 maxsize = ADDRESS_STR_MAX_SIZE,
144 endstring;
145
146 string varid = IP6_CONFIG_IFR_NVDATA.DnsAddress,
147 prompt = STRING_TOKEN(STR_IP6_NEW_DNS_ADDRESS),
148 help = STRING_TOKEN(STR_IP6_NEW_DNS_ADDRESS_HELP),
149 flags = INTERACTIVE,
150 key = KEY_DNS_ADDRESS,
151 minsize = ADDRESS_STR_MIN_SIZE,
152 maxsize = ADDRESS_STR_MAX_SIZE,
153 endstring;
154
155 goto FORMID_MAIN_FORM,
156 prompt = STRING_TOKEN (STR_SAVE_AND_EXIT),
157 help = STRING_TOKEN (STR_SAVE_AND_EXIT),
158 flags = INTERACTIVE,
159 key = KEY_SAVE_CONFIG_CHANGES;
160
161 goto FORMID_MAIN_FORM,
162 prompt = STRING_TOKEN (STR_NO_SAVE_AND_EXIT),
163 help = STRING_TOKEN (STR_NO_SAVE_AND_EXIT),
164 flags = INTERACTIVE,
165 key = KEY_IGNORE_CONFIG_CHANGES;
166
167 endform;
168
169 endformset;
170