Peter Memishian wrote:
> > It can work. But I think a more reasonable logic should be:
> >
> > if (is_generic(prop_name)) {
> > dladm_gen_set_prop();
> > } else (is_wifi(prop_name)) {
> > wladm_set_prop();
> > } else ... {
> > ...
> > }
>
> The problem is that this requires libdladm to have global knowledge of
> all properties, which we'd like to avoid.
>
If we want to have libdladm to do all the optional values check, default
value assignment, etc. I would think the libdladm will have the knowledge.
- Cathy