xref: /titanic_52/usr/src/cmd/cmd-inet/usr.sbin/routeadm/forwarding.xml (revision a192e900f6d2b0e1a822e3252c0dfd795ed49d76)
1*a192e900Samaguire<?xml version="1.0"?>
2*a192e900Samaguire<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3*a192e900Samaguire<!--
4*a192e900Samaguire Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
5*a192e900Samaguire Use is subject to license terms.
6*a192e900Samaguire
7*a192e900Samaguire CDDL HEADER START
8*a192e900Samaguire
9*a192e900Samaguire The contents of this file are subject to the terms of the
10*a192e900Samaguire Common Development and Distribution License (the "License").
11*a192e900Samaguire You may not use this file except in compliance with the License.
12*a192e900Samaguire
13*a192e900Samaguire You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
14*a192e900Samaguire or http://www.opensolaris.org/os/licensing.
15*a192e900Samaguire See the License for the specific language governing permissions
16*a192e900Samaguire and limitations under the License.
17*a192e900Samaguire
18*a192e900Samaguire When distributing Covered Code, include this CDDL HEADER in each
19*a192e900Samaguire file and include the License file at usr/src/OPENSOLARIS.LICENSE.
20*a192e900Samaguire If applicable, add the following below this CDDL HEADER, with the
21*a192e900Samaguire fields enclosed by brackets "[]" replaced with your own identifying
22*a192e900Samaguire information: Portions Copyright [yyyy] [name of copyright owner]
23*a192e900Samaguire
24*a192e900Samaguire CDDL HEADER END
25*a192e900Samaguire
26*a192e900Samaguire	ident	"%Z%%M%	%I%	%E% SMI"
27*a192e900Samaguire
28*a192e900Samaguire	NOTE:  This service manifest is not editable; its contents will
29*a192e900Samaguire	be overwritten by package or patch operations, including
30*a192e900Samaguire	operating system upgrade.  Make customizations in a different
31*a192e900Samaguire	file.
32*a192e900Samaguire
33*a192e900Samaguire-->
34*a192e900Samaguire
35*a192e900Samaguire<service_bundle type='manifest' name='SUNWcsr:forwarding'>
36*a192e900Samaguire
37*a192e900Samaguire<service
38*a192e900Samaguire	name='network/ipv4-forwarding'
39*a192e900Samaguire	type='service'
40*a192e900Samaguire	version='1'>
41*a192e900Samaguire
42*a192e900Samaguire	<create_default_instance enabled='false' />
43*a192e900Samaguire
44*a192e900Samaguire	<single_instance />
45*a192e900Samaguire
46*a192e900Samaguire	<dependency
47*a192e900Samaguire		name='network'
48*a192e900Samaguire		grouping='require_all'
49*a192e900Samaguire		restart_on='error'
50*a192e900Samaguire		type='service'>
51*a192e900Samaguire		<service_fmri value='svc:/network/loopback' />
52*a192e900Samaguire	</dependency>
53*a192e900Samaguire
54*a192e900Samaguire	<dependency
55*a192e900Samaguire		name='filesystem'
56*a192e900Samaguire		grouping='require_all'
57*a192e900Samaguire		restart_on='error'
58*a192e900Samaguire		type='service'>
59*a192e900Samaguire		<service_fmri value='svc:/system/filesystem/local'/>
60*a192e900Samaguire        </dependency>
61*a192e900Samaguire
62*a192e900Samaguire	<dependency
63*a192e900Samaguire		name='devices'
64*a192e900Samaguire		grouping='require_all'
65*a192e900Samaguire		restart_on='none'
66*a192e900Samaguire		type='service'>
67*a192e900Samaguire		<service_fmri value='svc:/milestone/devices' />
68*a192e900Samaguire	</dependency>
69*a192e900Samaguire
70*a192e900Samaguire	<exec_method
71*a192e900Samaguire		type='method'
72*a192e900Samaguire		name='start'
73*a192e900Samaguire		exec='/lib/svc/method/svc-forwarding %m ipv4'
74*a192e900Samaguire		timeout_seconds='60' >
75*a192e900Samaguire		<method_context>
76*a192e900Samaguire			<method_credential user='root' group='root' />
77*a192e900Samaguire		</method_context>
78*a192e900Samaguire	</exec_method>
79*a192e900Samaguire
80*a192e900Samaguire	<exec_method
81*a192e900Samaguire		type='method'
82*a192e900Samaguire		name='stop'
83*a192e900Samaguire		exec='/lib/svc/method/svc-forwarding %m ipv4'
84*a192e900Samaguire		timeout_seconds='60' >
85*a192e900Samaguire		<method_context>
86*a192e900Samaguire			<method_credential user='root' group='root' />
87*a192e900Samaguire		</method_context>
88*a192e900Samaguire	</exec_method>
89*a192e900Samaguire
90*a192e900Samaguire	<exec_method
91*a192e900Samaguire		type='method'
92*a192e900Samaguire		name='refresh'
93*a192e900Samaguire		exec='/lib/svc/method/svc-forwarding %m ipv4'
94*a192e900Samaguire		timeout_seconds='60' >
95*a192e900Samaguire		<method_context>
96*a192e900Samaguire			<method_credential user='root' group='root' />
97*a192e900Samaguire		</method_context>
98*a192e900Samaguire	</exec_method>
99*a192e900Samaguire
100*a192e900Samaguire	<property_group name='startd' type='framework'>
101*a192e900Samaguire		<propval name='duration' type='astring'
102*a192e900Samaguire			value='transient' />
103*a192e900Samaguire	</property_group>
104*a192e900Samaguire
105*a192e900Samaguire	<property_group name='general' type='framework'>
106*a192e900Samaguire		<!-- to start stop forwarding services -->
107*a192e900Samaguire		<propval name='action_authorization' type='astring'
108*a192e900Samaguire			value='solaris.smf.manage.routing' />
109*a192e900Samaguire		<propval name='value_authorization' type='astring'
110*a192e900Samaguire			value='solaris.smf.manage.routing' />
111*a192e900Samaguire	</property_group>
112*a192e900Samaguire
113*a192e900Samaguire	<!-- Properties in this group are modifiable via routeadm (1M) -->
114*a192e900Samaguire	<property_group name='routeadm' type='application'>
115*a192e900Samaguire		<propval name='default-ipv4-forwarding' type='boolean'
116*a192e900Samaguire			value='false' />
117*a192e900Samaguire		<propval name='value_authorization' type='astring'
118*a192e900Samaguire			value='solaris.smf.value.routing' />
119*a192e900Samaguire	</property_group>
120*a192e900Samaguire
121*a192e900Samaguire	<stability value='Unstable' />
122*a192e900Samaguire
123*a192e900Samaguire	<template>
124*a192e900Samaguire		<common_name>
125*a192e900Samaguire			<loctext xml:lang='C'>
126*a192e900Samaguire				IPv4 forwarding service
127*a192e900Samaguire			</loctext>
128*a192e900Samaguire		</common_name>
129*a192e900Samaguire		<description>
130*a192e900Samaguire			<loctext xml:lang='C'>
131*a192e900Samaguire				IPv4 forwarding service, controlled by routeadm.
132*a192e900Samaguire			</loctext>
133*a192e900Samaguire		</description>
134*a192e900Samaguire		<documentation>
135*a192e900Samaguire			<manpage title='routeadm' section='1M'
136*a192e900Samaguire				manpath='/usr/share/man' />
137*a192e900Samaguire		</documentation>
138*a192e900Samaguire	</template>
139*a192e900Samaguire</service>
140*a192e900Samaguire
141*a192e900Samaguire<service
142*a192e900Samaguire	name='network/ipv6-forwarding'
143*a192e900Samaguire	type='service'
144*a192e900Samaguire	version='1'>
145*a192e900Samaguire
146*a192e900Samaguire	<create_default_instance enabled='false' />
147*a192e900Samaguire
148*a192e900Samaguire	<single_instance />
149*a192e900Samaguire
150*a192e900Samaguire	<dependency
151*a192e900Samaguire		name='network'
152*a192e900Samaguire		grouping='require_all'
153*a192e900Samaguire		restart_on='error'
154*a192e900Samaguire		type='service'>
155*a192e900Samaguire		<service_fmri value='svc:/network/loopback' />
156*a192e900Samaguire	</dependency>
157*a192e900Samaguire
158*a192e900Samaguire	<dependency
159*a192e900Samaguire		name='filesystem'
160*a192e900Samaguire		grouping='require_all'
161*a192e900Samaguire		restart_on='error'
162*a192e900Samaguire		type='service'>
163*a192e900Samaguire		<service_fmri value='svc:/system/filesystem/local'/>
164*a192e900Samaguire        </dependency>
165*a192e900Samaguire
166*a192e900Samaguire	<dependency
167*a192e900Samaguire		name='devices'
168*a192e900Samaguire		grouping='require_all'
169*a192e900Samaguire		restart_on='none'
170*a192e900Samaguire		type='service'>
171*a192e900Samaguire		<service_fmri value='svc:/milestone/devices' />
172*a192e900Samaguire	</dependency>
173*a192e900Samaguire
174*a192e900Samaguire	<exec_method
175*a192e900Samaguire		type='method'
176*a192e900Samaguire		name='start'
177*a192e900Samaguire		exec='/lib/svc/method/svc-forwarding %m ipv6'
178*a192e900Samaguire		timeout_seconds='60' >
179*a192e900Samaguire		<method_context>
180*a192e900Samaguire			<method_credential user='root' group='root' />
181*a192e900Samaguire		</method_context>
182*a192e900Samaguire	</exec_method>
183*a192e900Samaguire
184*a192e900Samaguire	<exec_method
185*a192e900Samaguire		type='method'
186*a192e900Samaguire		name='stop'
187*a192e900Samaguire		exec='/lib/svc/method/svc-forwarding %m ipv6'
188*a192e900Samaguire		timeout_seconds='60' >
189*a192e900Samaguire		<method_context>
190*a192e900Samaguire			<method_credential user='root' group='root' />
191*a192e900Samaguire		</method_context>
192*a192e900Samaguire	</exec_method>
193*a192e900Samaguire
194*a192e900Samaguire	<exec_method
195*a192e900Samaguire		type='method'
196*a192e900Samaguire		name='refresh'
197*a192e900Samaguire		exec='/lib/svc/method/svc-forwarding %m ipv6'
198*a192e900Samaguire		timeout_seconds='60' >
199*a192e900Samaguire		<method_context>
200*a192e900Samaguire			<method_credential user='root' group='root' />
201*a192e900Samaguire		</method_context>
202*a192e900Samaguire	</exec_method>
203*a192e900Samaguire
204*a192e900Samaguire	<property_group name='startd' type='framework'>
205*a192e900Samaguire		<propval name='duration' type='astring'
206*a192e900Samaguire			value='transient' />
207*a192e900Samaguire	</property_group>
208*a192e900Samaguire
209*a192e900Samaguire	<property_group name='general' type='framework'>
210*a192e900Samaguire		<!-- to start stop forwarding services -->
211*a192e900Samaguire		<propval name='action_authorization' type='astring'
212*a192e900Samaguire			value='solaris.smf.manage.routing' />
213*a192e900Samaguire		<propval name='value_authorization' type='astring'
214*a192e900Samaguire			value='solaris.smf.manage.routing' />
215*a192e900Samaguire	</property_group>
216*a192e900Samaguire
217*a192e900Samaguire	<!-- Properties in this group are modifiable via routeadm (1M) -->
218*a192e900Samaguire        <property_group name='routeadm' type='application'>
219*a192e900Samaguire		<propval name='default-ipv6-forwarding' type='boolean'
220*a192e900Samaguire			value='false' />
221*a192e900Samaguire		<propval name='value_authorization' type='astring'
222*a192e900Samaguire			value='solaris.smf.value.routing' />
223*a192e900Samaguire	</property_group>
224*a192e900Samaguire
225*a192e900Samaguire	<stability value='Unstable' />
226*a192e900Samaguire
227*a192e900Samaguire	<template>
228*a192e900Samaguire		<common_name>
229*a192e900Samaguire			<loctext xml:lang='C'>
230*a192e900Samaguire				IPv6 forwarding service
231*a192e900Samaguire			</loctext>
232*a192e900Samaguire		</common_name>
233*a192e900Samaguire		<description>
234*a192e900Samaguire			<loctext xml:lang='C'>
235*a192e900Samaguire				IPv6 forwarding service, controlled by routeadm.
236*a192e900Samaguire			</loctext>
237*a192e900Samaguire		</description>
238*a192e900Samaguire		<documentation>
239*a192e900Samaguire			<manpage title='routeadm' section='1M'
240*a192e900Samaguire				manpath='/usr/share/man' />
241*a192e900Samaguire		</documentation>
242*a192e900Samaguire	</template>
243*a192e900Samaguire</service>
244*a192e900Samaguire
245*a192e900Samaguire</service_bundle>
246