> delete_linkid("net6");
> id = get_new_linkid("net10", class); /* Could return net6's link ID! */
> create_conf("net10", id, ...)
> write_conf("net10");
>
> ... the write_conf() for "net10" would fail because "net6" already has
> its persistent linkid. If someone wanted to do a rename, they'd need to
> delete_conf("net6") first.
>
I would like a rename operation to not involving delete_conf() explicitly
and only need to update the specific link configuration entry to be the new
link name. Therefore, a "dladm rename" operation will not require dladm to
read the whole configuration of a link and call the API to persist them all.
Specific to Dan's question, we could add a function rename_conf() to
differentiate it from the normal commit_conf() operation.
Thanks
- Cathy