under the SMF datalink/interface networking model we've
been discussing here and elsewhere, SMF instances will
exist for datalinks and IP interfaces. one problem with this
is that the policy engine handling such instances, e.g. NWAM,
would like to receive notifications of adminstrator-driven events
such as disabling the instance or refreshing, while not taking
full responsibility for managing the instance (as a delegated restarter
would - NWAM can't be a delegated restarter since the datalink/IP
interface instances exist whether NWAM is enabled or not).

one approach would be to use (and of course a contract
would be needed for this) the private libscf property group
notification function _scf_notify_add_pgname(), specifying
we want notifications for the SCF_PG_GENERAL,
SCF_PG_GENERAL_OVR and
SCF_PG_RESTARTER_ACTIONS property groups.
placing notifications on the first two catches enable and
disable events, persistent and temporary. notifications
for SCF_PG_RESTARTER_ACTIONS catch
refresh, restart, maintenance, clear events. we can then use
_scf_notify_wait(), fish out the FMRI and handle the event.
does this approach have drawbacks? is there a better way to
catch such events? thanks!

alan

Reply via email to