Peter Memishian wrote: > > Do we allow setting linkprop on non-existent links? > > My take: no. The whole notion of creating links on-demand has a lot of > problems (as you've pointed out). If the administrator really wants to > use VLAN hack names and link properties, they can just explicitly create > a VLAN hack link then set its link properties. > But today one can do that without problem, and I have a case to prove the weirdness of this problem:
# dladm show-linkprop -p zone bge1001 LINK PROPERTY VALUE DEFAULT POSSIBLE bge1001 zone foo -- -- # dladm set-linkprop -t -p zone=global bge1001 # dladm show-linkprop bge1001 dladm: link bge1001 is not valid: object not found # dladm set-linkprop -t -p zone=foo bge1001 dladm: link bge1001 is not valid: object not found Note that I temporarily set the zoneid of bge1001 from "foo" to "global", but I cannot change it back. Note on nevada the last set-linkprop works because it does create bge1001 again. Thanks - Cathy
