On 22/08/11 09:03 PM, Mark Haywood wrote:
 On 08/22/11 15:04, Darren Reed wrote:
On 22/08/11 04:16 PM, Mark Haywood wrote:
Comment from the net-install service to which your profile is applying its properties:

#
# The network/install service will configure interfaces using the
# property values supplied by the install profile. Once the configuration
# has been applied, the service will not apply another configuration
# unless an unconfiguration has been performed first.
#

The service maintains an SMF property, "config/applied" to track this. If you don't want to "sysconfig unconfigure", then you'll have to reset the "config/applied" property to "false". I suppose you could do that manually or via the profile.

Is this the correct way to change "config/applied" to false?

<service_bundle type='profile' name='system configuration'>
<service name='network/install' version='1' type='service'>
<instance name='default' enabled='true'>
<property_group name='config'>
<propval name='applied' value='false'/>
</property_group>
</service>
</service_bundle>

I'm not sure if that would work or not. In particular, I thought that the property group and property value types had to be specified. I assume that you already have a profile which sets the network/install property values. If so, then I would insert:

<property_group name='config' type='application' >
<propval name='applied' type='boolean' value='false' />
</property_group>

That is how it is defined in the service manifest itself and would, I assume, work for the profile.

Or you could simply use svccfg to reset the property to false.

Using the below XML as the only contents for a file that I named "b", doing an "svccfg apply b" neither returned an error nor worked.

Darren

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
<service_bundle type='profile' name='system configuration'>
<service name='network/install' version='1' type='service'>
<instance name='default' enabled='true'>
<property_group name='config' type='application' >
<propval name='applied' type='boolean' value='false' />
</property_group>
<property_group name='install_ipv4_interface' type='application'>
<propval name='name' type='astring' value='net0/v4'/>
<propval name='address_type' value='static'/>
<propval name='static_address' type='net_address_v4' value='10.134.67.103/24'/>
<propval name='default_route' type='net_address_v4' value='10.134.67.1'/>
</property_group>
</instance>
</service>
</service_bundle>

_______________________________________________
networking-discuss mailing list
networking-discuss@opensolaris.org

Reply via email to