On 18.10.24 16:59, Kevin Wolf wrote:
If we want to get rid of the union, I think the best course of action would unifying the namespaces (so that nodes, exports and devices can't share the same ID) and then we could just accept a universal 'id' along with 'child'.
Maybe we can go this way even without explicit restriction (which should some how go through deprecation period, etc), but simply look for the id among nodes, devices and exports and if found more than one parent - fail. And we document, that id should not be ambiguous, should not match more than one parent object. So, those who want to use new command will care to make unique ids. -- Best regards, Vladimir