[Engine-devel] Logical network Usages collection problematic approach

avi tal atal at redhat.com
Tue May 1 12:58:35 UTC 2012


Hi,
The new design of logical network 'usages' collection came out a bit 
problematic or shall i say annoying.
The idea is to send the entire collection elements every time a user 
wants to update a single usage otherwise the missing elements will be 
automatically removed from the collection.

Example:
having <usages><usage>VM</usage><usages>
1. in order to add 'display' usage to the collection i must send 'vm' as 
well.
2. to remove an element from the collection, i must send the entire 
collection without the desired element
(note: in this case it is only one extra element for every update but in 
other cases it could be much more)


The solution should be:
<usages><vm>true</vm><display>false</display></usages>
That way we can send a single usage having different boolean text 
without including the entire collection elements.




More information about the Devel mailing list