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