Revision 6a94d553
b/lib/config.py | ||
---|---|---|
2391 | 2391 |
|
2392 | 2392 |
@locking.ssynchronized(_config_lock, shared=1) |
2393 | 2393 |
def GetAllNetworksInfo(self): |
2394 |
"""Get the configuration of all networks
|
|
2394 |
"""Get configuration info of all the networks.
|
|
2395 | 2395 |
|
2396 | 2396 |
""" |
2397 | 2397 |
return dict(self._config_data.networks) |
... | ... | |
2559 | 2559 |
|
2560 | 2560 |
@locking.ssynchronized(_config_lock, shared=1) |
2561 | 2561 |
def CheckIPInNodeGroup(self, ip, node): |
2562 |
"""Check for conflictig IP. |
|
2562 |
"""Check IP uniqueness in nodegroup. |
|
2563 |
|
|
2564 |
Check networks that are connected in the node's node group |
|
2565 |
if ip is contained in any of them. Used when creating/adding |
|
2566 |
a NIC to ensure uniqueness among nodegroups. |
|
2563 | 2567 |
|
2564 | 2568 |
@type ip: string |
2565 | 2569 |
@param ip: ip address |
Also available in: Unified diff