code: def parse_config(contents):
      
      for identity_str, curve_name in re.findall(r'\<(.*?)\|(.*?)\>', contents):
          yield device.interface.Identity(identity_str=identity_str,
                                          curve_name=curve_name)
docs: Parse config file into a list of Identity objects.