Quoth Alan Maguire on Thu, Jan 24, 2008 at 07:04:12PM +0000: > 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).
Has this been discussed elsewhere? I would like to understand what you require that we don't provide. > 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! This would probably work, but I'm doubtful that it's the right architectural direction. Let's determine what's missing in the delegation model and how expensive it would be to fill it in before we go too far with this. David