1<?xml version="1.0"?> 2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> 3<!-- 4 Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 5 6 CDDL HEADER START 7 8 The contents of this file are subject to the terms of the 9 Common Development and Distribution License (the "License"). 10 You may not use this file except in compliance with the License. 11 12 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 13 or http://www.opensolaris.org/os/licensing. 14 See the License for the specific language governing permissions 15 and limitations under the License. 16 17 When distributing Covered Code, include this CDDL HEADER in each 18 file and include the License file at usr/src/OPENSOLARIS.LICENSE. 19 If applicable, add the following below this CDDL HEADER, with the 20 fields enclosed by brackets "[]" replaced with your own identifying 21 information: Portions Copyright [yyyy] [name of copyright owner] 22 23 CDDL HEADER END 24 25 NOTE: This service manifest is not editable; its contents will 26 be overwritten by package or patch operations, including 27 operating system upgrade. Make customizations in a different 28 file. 29--> 30 31<service_bundle type='manifest' name='SUNWcsr:network-install'> 32 33<service 34 name='network/install' 35 type='service' 36 version='1'> 37 38 <create_default_instance enabled='false' /> 39 40 <single_instance /> 41 42 <dependency 43 name='ipmgmt' 44 grouping='require_all' 45 restart_on='none' 46 type='service'> 47 <service_fmri value='svc:/network/ip-interface-management' /> 48 </dependency> 49 50 <dependent name='physical_default' 51 grouping='optional_all' 52 restart_on='none'> 53 <service_fmri value='svc:/network/physical:default' /> 54 </dependent> 55 56 <exec_method 57 type='method' 58 name='start' 59 exec='/lib/svc/method/net-install' 60 timeout_seconds='600' /> 61 62 <exec_method 63 type='method' 64 name='stop' 65 exec=':true' 66 timeout_seconds='0' /> 67 68 <property_group name='startd' type='framework'> 69 <propval name='duration' type='astring' value='transient' /> 70 </property_group> 71 72 <!-- The following property group is used only at install time to 73 configure an initial IPv4 network interface --> 74 <property_group name='install_ipv4_interface' type='application'> 75 <propval name='name' type='astring' value='' /> 76 <propval name='address_type' type='astring' value='static' /> 77 <propval name='static_address' type='net_address_v4' 78 value='0.0.0.0/0' /> 79 <propval name='dhcp_wait' type='astring' value='120' /> 80 <propval name='default_route' type='net_address_v4' 81 value='0.0.0.0' /> 82 </property_group> 83 84 <!-- The following property group is used only at install time to 85 configure an initial IPv6 network interface --> 86 <property_group name='install_ipv6_interface' type='application'> 87 <propval name='name' type='astring' value='' /> 88 <propval name='address_type' type='astring' value='addrconf' /> 89 <propval name='static_address' type='net_address_v6' 90 value='::0/0' /> 91 <propval name='interface_id' type='net_address_v6' 92 value='::0/0' /> 93 <propval name='stateless' type='astring' value='yes' /> 94 <propval name='stateful' type='astring' value='yes'/> 95 <propval name='default_route' type='net_address_v6' 96 value='::0' /> 97 </property_group> 98 99 <stability value='Unstable' /> 100 101 <template> 102 <common_name> 103 <loctext xml:lang='C'> 104 physical network interfaces install 105 </loctext> 106 </common_name> 107 <documentation> 108 <manpage title='ipadm' section='8' 109 manpath='/usr/share/man' /> 110 </documentation> 111 <pg_pattern name='install_ipv4_interface' type='application' 112 target='this' required='false'> 113 <description> <loctext xml:lang='C'> 114 Install derived configuration data used to configure an initial IPv4 physical interface. 115 </loctext> </description> 116 <prop_pattern name='name' type='astring' 117 required='true'> 118 <description> <loctext xml:lang='C'> 119 The "addrobj" value to be passed to the ipadm(8) "create-addr" command. 120 </loctext> </description> 121 <cardinality min='1' max='1'/> 122 </prop_pattern> 123 <prop_pattern name='address_type' type='astring' 124 required='true'> 125 <description> <loctext xml:lang='C'> 126 The "-T" option value to be passed to the ipadm(8) "create-addr" command. 127 </loctext> </description> 128 <cardinality min='1' max='1'/> 129 <constraints> 130 <value name='static'> 131 <description> <loctext xml:lang='C'> 132 Signifies that the IPv4 interface will be configured with a static address defined by the "static_address" property. 133 </loctext> </description> 134 </value> 135 <value name='dhcp'> 136 <description> <loctext xml:lang='C'> 137 Signifies that the IPv4 interface will be configured by DHCP. The "static_address" property will be ignored. 138 </loctext> </description> 139 </value> 140 </constraints> 141 </prop_pattern> 142 <prop_pattern name='static_address' 143 type='net_address_v4' required='false'> 144 <description> <loctext xml:lang='C'> 145 The "local" address value to be passed to the ipadm(8) "create-addr" command. Only required if "address_type" has a value of "static". 146 </loctext> </description> 147 <cardinality min='1' max='1'/> 148 </prop_pattern> 149 <prop_pattern name='dhcp_wait' type='astring' 150 required='false'> 151 <description> <loctext xml:lang='C'> 152 The "-w" option value to be passed to the ipadm(8) "create-addr" command. Represents the maximum time to wait for DHCP offer. 153 </loctext> </description> 154 <units> 155 <loctext xml:lang='C'>seconds</loctext> 156 </units> 157 <cardinality min='1' max='1'/> 158 </prop_pattern> 159 <prop_pattern name='default_route' 160 type='net_address_v4' required='false'> 161 <description> <loctext xml:lang='C'> 162 The default route associated with this interface. Used to add a default route using route(8). 163 </loctext> </description> 164 <cardinality min='1' max='1'/> 165 </prop_pattern> 166 </pg_pattern> 167 <pg_pattern name='install_ipv6_interface' type='application' 168 target='this' required='false'> 169 <description> <loctext xml:lang='C'> 170 Install derived configuration data used to configure an initial IPv6 physical interface. 171 </loctext> </description> 172 <prop_pattern name='name' type='astring' 173 required='true'> 174 <description> <loctext xml:lang='C'> 175 The "addrobj" value to be passed to the ipadm(8) "create-addr" command. 176 </loctext> </description> 177 <cardinality min='1' max='1'/> 178 </prop_pattern> 179 <prop_pattern name='address_type' type='astring' 180 required='true'> 181 <description> <loctext xml:lang='C'> 182 The "-T" option value to be passed to the ipadm(8) "create-addr" command. 183 </loctext> </description> 184 <cardinality min='1' max='1'/> 185 <constraints> 186 <value name='static'> 187 <description> <loctext xml:lang='C'> 188 Signifies that the IPv4 interface will be configured with a static address defined by the "static_address" property. 189 </loctext> </description> 190 </value> 191 <value name='addrconf'> 192 <description> <loctext xml:lang='C'> 193 Signifies that the IPv6 interface will be configured by IPv6 auto-configuration. The "static_address" property will be ignored. 194 </loctext> </description> 195 </value> 196 </constraints> 197 </prop_pattern> 198 <prop_pattern name='static_address' 199 type='net_address_v6' required='false'> 200 <description> <loctext xml:lang='C'> 201 The "local" address value to be passed to the ipadm(8) "create-addr" command. Only required if "address_type" has a value of "static". 202 </loctext> </description> 203 <cardinality min='1' max='1'/> 204 </prop_pattern> 205 <prop_pattern name='interface_id' 206 type='net_address_v6' required='false'> 207 <description> <loctext xml:lang='C'> 208 The "-i" token value to be passed to the ipadm(8) "create-addr" command. Ignored if "address_type" has a value of "static". 209 </loctext> </description> 210 <cardinality min='1' max='1'/> 211 </prop_pattern> 212 213 <prop_pattern name='stateless' 214 type='astring' required='false'> 215 <description> <loctext xml:lang='C'> 216 The "stateless" value to be passed to the ipadm(8) "create-addr" command. Ignored if "address_type" has a value of "static". 217 </loctext> </description> 218 <cardinality min='1' max='1'/> 219 <constraints> 220 <value name='yes'/> 221 <value name='no'/> 222 </constraints> 223 </prop_pattern> 224 <prop_pattern name='stateful' 225 type='astring' required='false'> 226 <description> <loctext xml:lang='C'> 227 The "stateful" value to be passed to the ipadm(8) "create-addr" command. Ignored if "address_type" has a value of "static". 228 </loctext> </description> 229 <cardinality min='1' max='1'/> 230 <constraints> 231 <value name='yes'/> 232 <value name='no'/> 233 </constraints> 234 </prop_pattern> 235 <prop_pattern name='default_route' 236 type='net_address_v6' required='false'> 237 <description> <loctext xml:lang='C'> 238 The default route associated with this interface. Used to add a default route using route(8). 239 </loctext> </description> 240 <cardinality min='1' max='1'/> 241 </prop_pattern> 242 </pg_pattern> 243 </template> 244</service> 245 246</service_bundle> 247