On 08/22/11 12:53, Darren Reed wrote:
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.
I'm fairly convinced that this type of networking configuration only works
at boot time. (Which is unfortunate, of course, but a choice of the
service in question.)
I believe it was only designed to do initial deployment, and thus probably
does not implement a refresh method. That's just a guess, but seems like
it was accurate.
$ svcprop -p refresh network/install
svcprop: Couldn't find property group `refresh' for service
`svc:/network/install'.
liane
_______________________________________________
networking-discuss mailing list
networking-discuss@opensolaris.org