Revision ddfa03fd
ID | ddfa03fdfbe9d2bd841c688c9892559ababa1e08 |
Add Check method in network module
This checks if the given address/network pair is valid.
If not it raises OpPrereqError. This is used in LUNetworkSetParams
to check if a modification is valid. This is done in CheckPrereq
and not in Exec via pool.Validate because in case of invalid pool
we will have an corrupt configuration between memory and permanent
storage (network object in memory will hold modifications but they
will not be written back to permanent storage because Validate
will raise an Assertion).
To this end make Validate a private method (rename -> _Validate).
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Files
- added
- modified
- copied
- renamed
- deleted