« Previous | Next » 

Revision 11eeb1b9

ID11eeb1b95813f5347928d29487045c2f94148a25

Added by Jose A. Lopes about 10 years ago

Check prereq instance communication network in 'SetParams'

Later, the logical unit for 'OpClusterSetParams' will be responsible
for creating the instance communication network in case it does not
exist. For now, it is important to check whether the network the user
is requesting to become assigned to instance communication has the
right configuration and otherwise warn about potential security risks.

  • Add a new static method
    'LUClusterSetParams._CheckInstanceCommunicationNetwork' which checks
    if the user-supplied network is configured correctly and issues
    security warnings otherwise. A correctly configured instance
    communication network is link-local (i.e., 169.254.0.0/16 for IPv4
    and fe80::/64 for IPv6), has no gateways, and has a specific MAC
    prefix.
  • Extend 'LUClusterSetParams.CheckPrereq' to call the above method to
    check whether the user supplied network matches the intended
    configuration.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Helga Velroyen <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences