Lines Matching defs:name

18 # information: Portions Copyright [yyyy] [name of copyright owner]
48 name = "driver"
49 key_attr = "name"
51 ordinality = generic._orderdict[name]
71 # the same as the driver name. Correct any such instances
81 # name is the same as the driver name.
84 self.attrs["name"] + " " + cp)
96 ret = (self.attrs["name"] > other.attrs["name"]) - \
97 (self.attrs["name"] < other.attrs["name"])
102 if self.attrs["name"] == "clone":
104 elif other.attrs["name"] == "clone":
145 DriverAction.__call(args, "driver ({name}) upgrade (removal "
147 {"name": driver_name, "alias": i})
166 if fields[0] == self.attrs["name"]:
180 # driver of the same name as this one, we'll safely slurp it in
197 name, alias = fields
198 file_db.setdefault(name, set()).add(alias)
200 (name, len(lines)))
213 for name in driver_actions:
214 file_db.pop(name, None)
219 for alias, name in (
225 a2d.setdefault(alias, set()).add(name)
228 for name, aliases in six.iteritems(file_db):
230 a2d.setdefault(alias, set()).add(name)
238 assert self.attrs["name"] in names
245 name, line = alias_lines[alias_conflict][0]
247 "new": self.attrs["name"],
248 "old": name,
254 if name in driver_actions:
304 orig = self.__get_image_data(image, self.attrs["name"])
344 args += ( self.attrs["name"], )
346 self.__call(args, "driver ({name}) install",
347 {"name": self.attrs["name"]})
354 self.__call(args, "driver ({name}) clone permission "
355 "update", {"name": self.attrs["name"]})
413 self.attrs["name"])
414 self.__call(args, "driver ({name}) upgrade (addition "
416 {"name": self.attrs["name"], "alias": i})
438 arr[0] == self.attrs["name"] and \
444 self.attrs["name"], i)]
460 "{3} ({4})".format(self.name,
461 self.attrs["name"], e.args[1],
527 "{3} ({4})".format(self.name,
528 self.attrs["name"], e.args[1],
535 self.name, self.attrs["name"]) +
551 args = rem_base + ("-m", i, self.attrs["name"])
552 self.__call(args, "driver ({name}) upgrade (removal "
554 {"name": self.attrs["name"], "perm": i})
557 args = add_base + ("-m", i, self.attrs["name"])
558 self.__call(args, "driver ({name}) upgrade (addition "
560 {"name": self.attrs["name"], "perm": i})
563 args = add_base + ("-P", i, self.attrs["name"])
564 self.__call(args, "driver ({name}) upgrade (addition "
566 {"name": self.attrs["name"], "priv": i})
569 args = rem_base + ("-P", i, self.attrs["name"])
570 self.__call(args, "driver ({name}) upgrade (removal "
572 {"name": self.attrs["name"], "priv": i})
594 args = rem_base + ("-p", minornode, self.attrs["name"])
595 self.__call(args, "driver ({name}) upgrade (removal "
597 {"name": self.attrs["name"], "policy": i})
600 args = add_base + ("-p", i, self.attrs["name"])
601 self.__call(args, "driver ({name}) upgrade (addition "
603 {"name": self.attrs["name"], "policy": i})
607 self.__call(args, "driver ({name}) upgrade (removal "
609 {"name": self.attrs["name"], "perm": i})
613 self.__call(args, "driver ({name}) upgrade (addition "
615 {"name": self.attrs["name"], "perm": i})
656 def __get_image_data(cls, img, name, collect_errs = False):
670 if fields[0] == name:
689 "/etc/name_to_major".format(name))
696 act = cls(name=name)
703 if fields[0] == name:
717 if fields[0] == name:
741 if major == name and name != "clone":
744 elif major == "clone" and minor == name:
781 # name first.
787 if n == name:
812 if fields[0] == name:
832 name = self.attrs["name"]
835 self.__get_image_data(img, name, collect_errs = True)
843 name)
848 name)
921 self.attrs["name"]
924 self.__call(args, "driver ({name}) removal",
925 {"name": self.attrs["name"]})
932 self.__call(args, "driver ({name}) clone permission "
933 "update", {"name": self.attrs["name"]})
947 "{2} ({3})".format(self.name,
948 self.attrs["name"], e.args[0], e.args[1]))
967 self.name, self.attrs["name"]) +
982 "{2} ({3})".format(self.name,
983 self.attrs["name"], e.args[0], e.args[1]))
990 if "name" in self.attrs:
991 ret.append(("driver", "driver_name", self.attrs["name"],