xref: /titanic_51/usr/src/cmd/svc/milestone/network-routing-setup.xml (revision a12e05a04a5d5850f645c79e7e2c74f8d6b7c5ec)
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	<exec_method
74		type='method'
75		name='start'
76		exec='/lib/svc/method/net-routing-setup'
77		timeout_seconds='600'>
78	</exec_method>
79
80	<exec_method
81		type='method'
82		name='stop'
83		exec=':true'
84		timeout_seconds='3'>
85	</exec_method>
86
87	<property_group name='startd' type='framework'>
88		<propval name='duration' type='astring' value='transient' />
89	</property_group>
90
91	<instance name='default' enabled='true' >
92
93	<!-- Properties in this group are used by routeadm (1M) -->
94	<property_group name='routeadm' type='framework'>
95		<stability value='Evolving' />
96		<!-- set if routeadm -e/d ipv4-routing is explicitly invoked -->
97		<propval name='ipv4-routing-set' type='boolean'
98			value='false' />
99		<!-- set if routeadm -e/d ipv6-routing is explicitly invoked -->
100		<propval name='ipv6-routing-set' type='boolean'
101			value='false' />
102		<!-- set if legacy routing.conf configuration has been read -->
103		<propval name='routing-conf-read' type='boolean'
104			value='false' />
105		<!-- default for ipv4-routing to revert to via routeadm -r -->
106		<propval name='default-ipv4-routing' type='boolean'
107		    value='false' />
108		<propval name='default-ipv6-routing' type='boolean'
109			value='false' />
110		<!-- routing-svcs values, current and default -->
111		<propval name='routing-svcs' type='astring'
112		    value='route:default ripng:default' />
113		<propval name='default-routing-svcs' type='astring'
114		    value='route:default ripng:default' />
115		<propval name='value_authorization' type='astring'
116			value='solaris.smf.value.routing' />
117	</property_group>
118
119	</instance>
120
121	<stability value='Unstable' />
122
123	<template>
124		<common_name>
125			<loctext xml:lang='C'>
126				Initial routing-related configuration.
127			</loctext>
128		</common_name>
129		<documentation>
130			<manpage title='routeadm' section='1M'
131				manpath='/usr/share/man' />
132		</documentation>
133	</template>
134</service>
135
136</service_bundle>
137