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
@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
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 = {
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
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
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