On (10/30/08 21:19), Peter Memishian wrote:
> > > - Property/tunable management:
> > >
> > > # ipadm {set,get}-module-prop -p <name>=<value> [<interface>]
> > >
> > > If no <interface> is specified, the property is set for all active
> > > interfaces.
> >
> > You also need to answer what happens to interfaces that are created
> > after a property has been set. For instance, I might want to turn on
> > forwarding on all current and future interface.
If <interface> is specified, and does not exist when the above
innvocation happens, a ENXIO-ish error will be returned.
If no <interface> is specified, the setting will apply globally
to all <interface> instance that exist and may come up in the future.
As Meem pointed out, trying to remember a setting for an interface
that will be created after the command can cause lot of other problems,
but if we really want feel the need for it, one way to provide this
is to provide a "persist-only" option where the setting is remembered
in the persistent storage only and applied when the interface comes up.
But I feel that's a lot of complexity for a corner case. As we
found out when experimenting in this area with dladm, we can't validate
the setting until the interface comes up, and recovering from such
errors can be messy.
--Sowmini