network %s
mynid %s
quit """ % (net, nid)
- self.run(cmds)
+ self.run(cmds)
# add an interface
def add_interface(self, net, ip, netmask = ""):
# create a new connection
def add_uuid(self, net_type, uuid, nid):
- cmds = "\n add_uuid %s %s@%s" %(uuid, nid, net_type)
+ cmds = "\n add_uuid %s %s" %(uuid, nid)
self.run(cmds)
def add_peer(self, net_type, nid, hostaddr, port):
+ """ noop """
# if net_type in ('tcp','openib','ra') and not config.lctl_dump:
# cmds = """
# network %s
# add a route to a range
def add_route(self, net, gw, lo, hi):
+ """ noop """
# cmds = """
# network %s
# add_route %s %s %s
# e.dump()
def del_route(self, net, gw, lo, hi):
+ """ noop """
# cmds = """
# ignore_errors
# network %s
# add a route to a host
def add_route_host(self, net, uuid, gw, tgt):
+ """ noop """
# self.add_uuid(net, uuid, tgt)
# cmds = """
# network %s
# add a route to a range
def del_route_host(self, net, uuid, gw, tgt):
+ """ noop """
# self.del_uuid(uuid)
# cmds = """
# ignore_errors
def del_peer(self, net_type, nid, hostaddr):
+ """ noop """
# if net_type in ('tcp',) and not config.lctl_dump:
# cmds = """
# ignore_errors
# disconnect all
def disconnectAll(self, net):
+ """ noop """
# cmds = """
# ignore_errors
# network %s