IAllocator part 3: LUCreateInstance changes
This (final) patch allows the instance's nodes to be selected automatically based on the passed allocator algorithm. The patch changes the pnode opcode parameter from required to optional, now either the pnode or the iallocator must be passed. A possible improvement could be to organize all the _IAllocator functions into a separate class, but that can come later and the current version is functionally ok. Reviewed-by: ultrotter
Showing
- doc/examples/dumb-allocator 5 additions, 4 deletionsdoc/examples/dumb-allocator
- lib/cmdlib.py 85 additions, 3 deletionslib/cmdlib.py
- lib/opcodes.py 1 addition, 0 deletionslib/opcodes.py
- scripts/gnt-backup 5 additions, 1 deletionscripts/gnt-backup
- scripts/gnt-instance 7 additions, 3 deletionsscripts/gnt-instance
Loading
Please register or sign in to comment