Fixes to pass py-apidoc (make commit-check)
authorDimitris Aragiorgis <dimara@grnet.gr>
Fri, 12 Oct 2012 18:37:41 +0000 (21:37 +0300)
committerIustin Pop <iustin@google.com>
Tue, 20 Nov 2012 17:51:30 +0000 (18:51 +0100)
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Reviewed-by: Iustin Pop <iustin@google.com>

lib/client/gnt_network.py
lib/cmdlib.py
lib/rapi/client.py

index f56962a..5b0e8ad 100644 (file)
@@ -172,7 +172,6 @@ def ListNetworkFields(opts, args):
 def ShowNetworkConfig(_, args):
   """Show network information.
 
-  @param opts: the command line options selected by the user
   @type args: list
   @param args: should either be an empty list, in which case
       we show information about all nodes, or should contain
index 98467f1..f44628b 100644 (file)
@@ -1323,8 +1323,8 @@ def _BuildNetworkHookEnv(name, subnet, gateway, network6, gateway6,
 
   @type name: string
   @param name: the name of the network
-  @type network: string
-  @param network: the ipv4 subnet
+  @type subnet: string
+  @param subnet: the ipv4 subnet
   @type gateway: string
   @param gateway: the ipv4 gateway
   @type network6: string
@@ -1363,10 +1363,8 @@ def _BuildNetworkHookEnv(name, subnet, gateway, network6, gateway6,
 def _BuildNetworkHookEnvByObject(net):
   """Builds network related env varliables for hooks
 
-  @type lu: L{objects.LogicalUnit}
-  @param lu: the corresponding LU
-  @type network: L{objects.Network}
-  @param network: the network object
+  @type net: L{objects.Network}
+  @param net: the network object
 
   """
   args = {
index 9fd81f1..d84bcfe 100644 (file)
@@ -1712,8 +1712,8 @@ class GanetiRapiClient(object): # pylint: disable=R0904
   def GetNetwork(self, network):
     """Gets information about a network.
 
-    @type group: str
-    @param group: name of the network whose info to return
+    @type network: str
+    @param network: name of the network whose info to return
 
     @rtype: dict
     @return: info about the network
@@ -1728,8 +1728,8 @@ class GanetiRapiClient(object): # pylint: disable=R0904
                     add_reserved_ips=None, tags=None, dry_run=False):
     """Creates a new network.
 
-    @type name: str
-    @param name: the name of network to create
+    @type network_name: str
+    @param network_name: the name of network to create
     @type dry_run: bool
     @param dry_run: whether to peform a dry run
 
@@ -1811,8 +1811,8 @@ class GanetiRapiClient(object): # pylint: disable=R0904
   def DeleteNetwork(self, network, dry_run=False):
     """Deletes a network.
 
-    @type group: str
-    @param group: the network to delete
+    @type network: str
+    @param network: the network to delete
     @type dry_run: bool
     @param dry_run: whether to peform a dry run