@staticmethod
  def _ConnectInstanceCommunicationNetwork(cfg, group_uuid, network_name):
    try:
      cfg.LookupNetwork(network_name)
      network_exists = True
    except errors.OpPrereqError:
      network_exists = False

    if network_exists:
      op = ConnectInstanceCommunicationNetworkOp(group_uuid, network_name)
      return ResultWithJobs([[op]])
    else:
      return None
Return a specific instance object.
dataset/ETHPy150Open ganeti/ganeti/lib/cmdlib/group.py/LUGroupAdd._ConnectInstanceCommunicationNetwork--crossover with--dataset/ETHPy150Open bmbouter/Opus/opus/lib/prov/deltacloud_old/deltacloud.py/Deltacloud.instance