1<?xml version="1.0"?>
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3<!--
4 Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
5 Use is subject to license terms.
6
7 CDDL HEADER START
8
9 The contents of this file are subject to the terms of the
10 Common Development and Distribution License (the "License").
11 You may not use this file except in compliance with the License.
12
13 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
14 or http://www.opensolaris.org/os/licensing.
15 See the License for the specific language governing permissions
16 and limitations under the License.
17
18 When distributing Covered Code, include this CDDL HEADER in each
19 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
20 If applicable, add the following below this CDDL HEADER, with the
21 fields enclosed by brackets "[]" replaced with your own identifying
22 information: Portions Copyright [yyyy] [name of copyright owner]
23
24 CDDL HEADER END
25
26	NOTE:  This service manifest is not editable; its contents will
27	be overwritten by package or patch operations, including
28	operating system upgrade.  Make customizations in a different
29	file.
30-->
31
32<service_bundle type='manifest' name='SUNWcsr:routing-setup'>
33
34<service
35	name='network/routing-setup'
36	type='service'
37	version='1'>
38
39	<!-- loopback/physical network configuration is required -->
40	<dependency
41		name='network'
42		grouping='optional_all'
43		restart_on='none'
44		type='service'>
45		<service_fmri value='svc:/milestone/network' />
46	</dependency>
47
48	<!-- usr filesystem required to run routing-related commands -->
49	<dependency
50		name='filesystem'
51		grouping='require_all'
52		restart_on='none'
53		type='service'>
54		<service_fmri value='svc:/system/filesystem/usr' />
55	</dependency>
56
57	<!--
58		This dependency was added to make sure soconfig runs in
59		devices-local method, before routeadm invocation in
60		network/routing-setup.  This is because routeadm commands
61		depend on sockets.
62	-->
63	<dependency
64		name='devices'
65		grouping='require_all'
66		restart_on='none'
67		type='service'>
68		<service_fmri value='svc:/milestone/devices' />
69	</dependency>
70
71	<!--
72		This dependency is required to ensure that all routing-related
73		manifests have been imported prior to running routeadm.
74	-->
75	<dependency
76		name='manifest_import'
77		grouping='optional_all'
78		restart_on='none'
79		type='service'>
80		<service_fmri value='svc:/system/manifest-import:default' />
81	</dependency>
82
83	<exec_method
84		type='method'
85		name='start'
86		exec='/lib/svc/method/net-routing-setup'
87		timeout_seconds='600'>
88	</exec_method>
89
90	<exec_method
91		type='method'
92		name='stop'
93		exec=':true'
94		timeout_seconds='3'>
95	</exec_method>
96
97	<property_group name='startd' type='framework'>
98		<propval name='duration' type='astring' value='transient' />
99	</property_group>
100
101	<instance name='default' enabled='true' >
102
103	<!-- Properties in this group are used by routeadm(8) -->
104	<property_group name='routeadm' type='framework'>
105		<stability value='Evolving' />
106		<!-- set if routeadm -e/d ipv4-routing is explicitly invoked -->
107		<propval name='ipv4-routing-set' type='boolean'
108			value='false' />
109		<!-- set if routeadm -e/d ipv6-routing is explicitly invoked -->
110		<propval name='ipv6-routing-set' type='boolean'
111			value='false' />
112		<!-- set if legacy routing.conf configuration has been read -->
113		<propval name='routing-conf-read' type='boolean'
114			value='false' />
115		<!-- default for ipv4-routing to revert to via routeadm -r -->
116		<propval name='default-ipv4-routing' type='boolean'
117		    value='false' />
118		<propval name='default-ipv6-routing' type='boolean'
119			value='false' />
120		<!-- routing-svcs values, current and default -->
121		<propval name='routing-svcs' type='astring'
122		    value='route:default ripng:default' />
123		<propval name='default-routing-svcs' type='astring'
124		    value='route:default ripng:default' />
125		<propval name='value_authorization' type='astring'
126			value='solaris.smf.value.routing' />
127	</property_group>
128
129	</instance>
130
131	<stability value='Unstable' />
132
133	<template>
134		<common_name>
135			<loctext xml:lang='C'>
136				Initial routing-related configuration.
137			</loctext>
138		</common_name>
139		<documentation>
140			<manpage title='routeadm' section='8'
141				manpath='/usr/share/man' />
142		</documentation>
143	</template>
144</service>
145
146</service_bundle>
147