xref: /titanic_44/usr/src/cmd/svc/milestone/network-routing-setup.xml (revision f48205be61a214698b763ff550ab9e657525104c)
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        ident	"%Z%%M%	%I%	%E% SMI"
27
28	NOTE:  This service manifest is not editable; its contents will
29	be overwritten by package or patch operations, including
30	operating system upgrade.  Make customizations in a different
31	file.
32-->
33
34<service_bundle type='manifest' name='SUNWcsr:routing-setup'>
35
36<service
37	name='network/routing-setup'
38	type='service'
39	version='1'>
40
41	<!-- loopback/physical network configuration is required -->
42	<dependency
43		name='network'
44		grouping='optional_all'
45		restart_on='none'
46		type='service'>
47		<service_fmri value='svc:/milestone/network' />
48	</dependency>
49
50	<!-- usr filesystem required to run routing-related commands -->
51	<dependency
52		name='filesystem'
53		grouping='require_all'
54		restart_on='none'
55		type='service'>
56		<service_fmri value='svc:/system/filesystem/usr' />
57	</dependency>
58
59	<!--
60		This dependency was added to make sure soconfig runs in
61		devices-local method, before routeadm invocation in
62		network/routing-setup.  This is because routeadm commands
63		depend on sockets.
64	-->
65	<dependency
66		name='devices'
67		grouping='require_all'
68		restart_on='none'
69		type='service'>
70		<service_fmri value='svc:/milestone/devices' />
71	</dependency>
72
73	<!--
74		This dependency is required to ensure that all routing-related
75		manifests have been imported prior to running routeadm.
76	-->
77	<dependency
78		name='manifest_import'
79		grouping='optional_all'
80		restart_on='none'
81		type='service'>
82		<service_fmri value='svc:/system/manifest-import:default' />
83	</dependency>
84
85	<exec_method
86		type='method'
87		name='start'
88		exec='/lib/svc/method/net-routing-setup'
89		timeout_seconds='600'>
90	</exec_method>
91
92	<exec_method
93		type='method'
94		name='stop'
95		exec=':true'
96		timeout_seconds='3'>
97	</exec_method>
98
99	<property_group name='startd' type='framework'>
100		<propval name='duration' type='astring' value='transient' />
101	</property_group>
102
103	<instance name='default' enabled='true' >
104
105	<!-- Properties in this group are used by routeadm (1M) -->
106	<property_group name='routeadm' type='framework'>
107		<stability value='Evolving' />
108		<!-- set if routeadm -e/d ipv4-routing is explicitly invoked -->
109		<propval name='ipv4-routing-set' type='boolean'
110			value='false' />
111		<!-- set if routeadm -e/d ipv6-routing is explicitly invoked -->
112		<propval name='ipv6-routing-set' type='boolean'
113			value='false' />
114		<!-- set if legacy routing.conf configuration has been read -->
115		<propval name='routing-conf-read' type='boolean'
116			value='false' />
117		<!-- default for ipv4-routing to revert to via routeadm -r -->
118		<propval name='default-ipv4-routing' type='boolean'
119		    value='false' />
120		<propval name='default-ipv6-routing' type='boolean'
121			value='false' />
122		<!-- routing-svcs values, current and default -->
123		<propval name='routing-svcs' type='astring'
124		    value='route:default ripng:default' />
125		<propval name='default-routing-svcs' type='astring'
126		    value='route:default ripng:default' />
127		<propval name='value_authorization' type='astring'
128			value='solaris.smf.value.routing' />
129	</property_group>
130
131	</instance>
132
133	<stability value='Unstable' />
134
135	<template>
136		<common_name>
137			<loctext xml:lang='C'>
138				Initial routing-related configuration.
139			</loctext>
140		</common_name>
141		<documentation>
142			<manpage title='routeadm' section='1M'
143				manpath='/usr/share/man' />
144		</documentation>
145	</template>
146</service>
147
148</service_bundle>
149