xref: /illumos-gate/usr/src/cmd/svc/milestone/network-physical.xml (revision 69b43529e65fb6eb0c88e6b7b42025e9bf025b8a)
17c478bd9Sstevel@tonic-gate<?xml version="1.0"?>
27c478bd9Sstevel@tonic-gate<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
37c478bd9Sstevel@tonic-gate<!--
46ba597c5SAnurag S. Maskey Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
57c478bd9Sstevel@tonic-gate Use is subject to license terms.
67c478bd9Sstevel@tonic-gate
77c478bd9Sstevel@tonic-gate CDDL HEADER START
87c478bd9Sstevel@tonic-gate
97c478bd9Sstevel@tonic-gate 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.
127c478bd9Sstevel@tonic-gate
137c478bd9Sstevel@tonic-gate You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
147c478bd9Sstevel@tonic-gate or http://www.opensolaris.org/os/licensing.
157c478bd9Sstevel@tonic-gate See the License for the specific language governing permissions
167c478bd9Sstevel@tonic-gate and limitations under the License.
177c478bd9Sstevel@tonic-gate
187c478bd9Sstevel@tonic-gate When distributing Covered Code, include this CDDL HEADER in each
197c478bd9Sstevel@tonic-gate file and include the License file at usr/src/OPENSOLARIS.LICENSE.
207c478bd9Sstevel@tonic-gate If applicable, add the following below this CDDL HEADER, with the
217c478bd9Sstevel@tonic-gate fields enclosed by brackets "[]" replaced with your own identifying
227c478bd9Sstevel@tonic-gate information: Portions Copyright [yyyy] [name of copyright owner]
237c478bd9Sstevel@tonic-gate
247c478bd9Sstevel@tonic-gate CDDL HEADER END
257c478bd9Sstevel@tonic-gate
267c478bd9Sstevel@tonic-gate	NOTE:  This service manifest is not editable; its contents will
277c478bd9Sstevel@tonic-gate	be overwritten by package or patch operations, including
287c478bd9Sstevel@tonic-gate	operating system upgrade.  Make customizations in a different
297c478bd9Sstevel@tonic-gate	file.
307c478bd9Sstevel@tonic-gate-->
317c478bd9Sstevel@tonic-gate
327c478bd9Sstevel@tonic-gate<service_bundle type='manifest' name='SUNWcsr:network-physical'>
337c478bd9Sstevel@tonic-gate
347c478bd9Sstevel@tonic-gate<service
357c478bd9Sstevel@tonic-gate	name='network/physical'
367c478bd9Sstevel@tonic-gate	type='service'
377c478bd9Sstevel@tonic-gate	version='1'>
387c478bd9Sstevel@tonic-gate
39a192e900Samaguire	<!-- ifconfig needs loopback for IPC with dhcpagent -->
40a192e900Samaguire	<dependency
41a192e900Samaguire		name='loopback'
42a192e900Samaguire		grouping='require_all'
43a192e900Samaguire		restart_on='none'
44a192e900Samaguire		type='service'>
45a192e900Samaguire		<service_fmri value='svc:/network/loopback' />
46a192e900Samaguire	</dependency>
47a192e900Samaguire
487c478bd9Sstevel@tonic-gate	<instance name='default' enabled='true'>
497c478bd9Sstevel@tonic-gate
506ba597c5SAnurag S. Maskey	<!--
516ba597c5SAnurag S. Maskey		physical:default and physical:nwam are mutually exclusive.
526ba597c5SAnurag S. Maskey		Use a one-way dependency for now since two-way exclude_all
536ba597c5SAnurag S. Maskey		does not work; enforcement of single_instance in the future
546ba597c5SAnurag S. Maskey		will fix this.
556ba597c5SAnurag S. Maskey	-->
566ba597c5SAnurag S. Maskey	<dependency
576ba597c5SAnurag S. Maskey		name='physical_nwam'
586ba597c5SAnurag S. Maskey		grouping='exclude_all'
596ba597c5SAnurag S. Maskey		restart_on='none'
606ba597c5SAnurag S. Maskey		type='service'>
616ba597c5SAnurag S. Maskey		<service_fmri value='svc:/network/physical:nwam' />
626ba597c5SAnurag S. Maskey	</dependency>
636ba597c5SAnurag S. Maskey
647c478bd9Sstevel@tonic-gate	<exec_method
657c478bd9Sstevel@tonic-gate		type='method'
667c478bd9Sstevel@tonic-gate		name='start'
677c478bd9Sstevel@tonic-gate		exec='/lib/svc/method/net-physical'
687c478bd9Sstevel@tonic-gate		timeout_seconds='600' />
697c478bd9Sstevel@tonic-gate
707c478bd9Sstevel@tonic-gate	<exec_method
717c478bd9Sstevel@tonic-gate		type='method'
727c478bd9Sstevel@tonic-gate		name='stop'
737c478bd9Sstevel@tonic-gate		exec=':true'
747c478bd9Sstevel@tonic-gate		timeout_seconds='3' />
757c478bd9Sstevel@tonic-gate
767c478bd9Sstevel@tonic-gate	<property_group name='startd' type='framework'>
777c478bd9Sstevel@tonic-gate		<propval name='duration' type='astring' value='transient' />
787c478bd9Sstevel@tonic-gate	</property_group>
797c478bd9Sstevel@tonic-gate
807c478bd9Sstevel@tonic-gate	<template>
817c478bd9Sstevel@tonic-gate		<common_name>
827c478bd9Sstevel@tonic-gate			<loctext xml:lang='C'>
837c478bd9Sstevel@tonic-gate				physical network interfaces
847c478bd9Sstevel@tonic-gate			</loctext>
857c478bd9Sstevel@tonic-gate		</common_name>
867c478bd9Sstevel@tonic-gate		<documentation>
877c478bd9Sstevel@tonic-gate			<manpage title='ifconfig' section='1M'
887c478bd9Sstevel@tonic-gate				manpath='/usr/share/man' />
897c478bd9Sstevel@tonic-gate		</documentation>
907c478bd9Sstevel@tonic-gate	</template>
91d71dbb73Sjbeck
92d71dbb73Sjbeck	</instance>
93d71dbb73Sjbeck
94d71dbb73Sjbeck	<instance name='nwam' enabled='false'>
95d71dbb73Sjbeck
96d71dbb73Sjbeck	<exec_method
97d71dbb73Sjbeck		type='method'
98d71dbb73Sjbeck		name='start'
99d71dbb73Sjbeck		exec='/lib/svc/method/net-nwam start'
1006ba597c5SAnurag S. Maskey		timeout_seconds='120' >
1016ba597c5SAnurag S. Maskey		<method_context>
102*69b43529SMichael Hunter			<method_credential user='root' group='root'
1036ba597c5SAnurag S. Maskey				supp_groups='netadm' privileges='zone' />
1046ba597c5SAnurag S. Maskey		</method_context>
1056ba597c5SAnurag S. Maskey	</exec_method>
106d71dbb73Sjbeck
107d71dbb73Sjbeck	<exec_method
108d71dbb73Sjbeck		type='method'
109d71dbb73Sjbeck		name='stop'
110d71dbb73Sjbeck		exec='/lib/svc/method/net-nwam stop'
1116ba597c5SAnurag S. Maskey		timeout_seconds='60' >
1126ba597c5SAnurag S. Maskey		<method_context>
113*69b43529SMichael Hunter			<method_credential user='root' group='root'
1146ba597c5SAnurag S. Maskey				supp_groups='netadm' privileges='zone' />
1156ba597c5SAnurag S. Maskey		</method_context>
1166ba597c5SAnurag S. Maskey	</exec_method>
117d71dbb73Sjbeck
118d71dbb73Sjbeck	<exec_method
119d71dbb73Sjbeck		type='method'
120d71dbb73Sjbeck		name='refresh'
121d71dbb73Sjbeck		exec='/lib/svc/method/net-nwam refresh'
1226ba597c5SAnurag S. Maskey		timeout_seconds='60' >
1236ba597c5SAnurag S. Maskey		<method_context>
124*69b43529SMichael Hunter			<method_credential user='root' group='root'
1256ba597c5SAnurag S. Maskey				supp_groups='netadm' privileges='zone' />
1266ba597c5SAnurag S. Maskey		</method_context>
1276ba597c5SAnurag S. Maskey	</exec_method>
128d71dbb73Sjbeck
129d71dbb73Sjbeck	<property_group name='general' type='framework'>
130d71dbb73Sjbeck		<!-- to start/stop NWAM services -->
131d71dbb73Sjbeck		<propval name='action_authorization' type='astring'
132d71dbb73Sjbeck			value='solaris.smf.manage.nwam' />
133d71dbb73Sjbeck		<propval name='value_authorization' type='astring'
134d71dbb73Sjbeck			value='solaris.smf.manage.nwam' />
135d71dbb73Sjbeck	</property_group>
136d71dbb73Sjbeck
137d71dbb73Sjbeck	<property_group name='nwamd' type='application'>
138d71dbb73Sjbeck		<stability value='Unstable' />
139d71dbb73Sjbeck		<propval name='debug' type='boolean' value='false' />
140afc7d545Smh138676		<propval name='autoconf' type='boolean' value='false' />
1416ba597c5SAnurag S. Maskey		<propval name='ncu_wait_time' type='count' value='60' />
1426ba597c5SAnurag S. Maskey		<propval name='condition_check_interval' type='count'
1436ba597c5SAnurag S. Maskey			value='120' />
144d71dbb73Sjbeck		<propval name='scan_interval' type='count' value='120' />
1456ba597c5SAnurag S. Maskey		<propval name='scan_level' type='astring' value='weak' />
146ab32bdf2SJames Carlson		<propval name='strict_bssid' type='boolean' value='false' />
1476ba597c5SAnurag S. Maskey		<propval name='active_ncp' type='astring' value='Automatic' />
148d71dbb73Sjbeck		<propval name='value_authorization' type='astring'
149d71dbb73Sjbeck			value='solaris.smf.value.nwam' />
150d71dbb73Sjbeck	</property_group>
151d71dbb73Sjbeck
152d71dbb73Sjbeck	<template>
153d71dbb73Sjbeck		<common_name>
154d71dbb73Sjbeck			<loctext xml:lang='C'>
155d71dbb73Sjbeck				physical network interface autoconfiguration
156d71dbb73Sjbeck			</loctext>
157d71dbb73Sjbeck		</common_name>
158d71dbb73Sjbeck		<documentation>
159d71dbb73Sjbeck			<manpage title='nwamd' section='1M'
160d71dbb73Sjbeck				manpath='/usr/share/man' />
161afc7d545Smh138676			<doc_link
162afc7d545Smh138676			    name='Network Auto-Magic OpenSolaris Project Page'
1636ba597c5SAnurag S. Maskey				uri='http://hub.opensolaris.org/bin/view/Project+nwam/'
164afc7d545Smh138676				/>
165d71dbb73Sjbeck		</documentation>
166d71dbb73Sjbeck	</template>
167d71dbb73Sjbeck
168d71dbb73Sjbeck	</instance>
169d71dbb73Sjbeck
170d71dbb73Sjbeck	<stability value='Unstable' />
171d71dbb73Sjbeck
1727c478bd9Sstevel@tonic-gate</service>
1737c478bd9Sstevel@tonic-gate
1747c478bd9Sstevel@tonic-gate</service_bundle>
175