From 6a94d553c43c471f09903541bd9b9e89ae59f492 Mon Sep 17 00:00:00 2001 From: Dimitris Aragiorgis <dimara@grnet.gr> Date: Mon, 29 Oct 2012 21:11:59 +0200 Subject: [PATCH] Fix a few docstrings Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by: Iustin Pop <iustin@google.com> --- lib/config.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/config.py b/lib/config.py index c84c1f112..9d87c2b6f 100644 --- a/lib/config.py +++ b/lib/config.py @@ -2391,7 +2391,7 @@ class ConfigWriter: @locking.ssynchronized(_config_lock, shared=1) def GetAllNetworksInfo(self): - """Get the configuration of all networks + """Get configuration info of all the networks. """ return dict(self._config_data.networks) @@ -2559,7 +2559,11 @@ class ConfigWriter: @locking.ssynchronized(_config_lock, shared=1) def CheckIPInNodeGroup(self, ip, node): - """Check for conflictig IP. + """Check IP uniqueness in nodegroup. + + Check networks that are connected in the node's node group + if ip is contained in any of them. Used when creating/adding + a NIC to ensure uniqueness among nodegroups. @type ip: string @param ip: ip address -- GitLab