>> 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 ... {
>> ...
>> }
>
>
> Who will control the property name space? For example,
> can we use the same name as a "general property" and
> as a "link specific property?" If yes, then the above
> may not work well. If the use of same name should not
> happen, I guess somehow we need the logic to prevent it.
>
I don't know whether it is possible to have a property name to be both
general and link type specific.
I agree on all your points though.
Thanks
- Cathy