Esempio n. 1
0
	def __eq__ (self, other):
		return \
			NLRI.__eq__(self, other) and \
			CIDR.__eq__(self, other) and \
			self.path_info == other.path_info and \
			self.labels == other.labels and \
			self.rd == other.rd and \
			self.nexthop == other.nexthop and \
			self.action == other.action
Esempio n. 2
0
 def __eq__(self, other):
     return \
      NLRI.__eq__(self, other) and \
      CIDR.__eq__(self, other) and \
      self.path_info == other.path_info and \
      self.labels == other.labels and \
      self.rd == other.rd and \
      self.nexthop == other.nexthop and \
      self.action == other.action
Esempio n. 3
0
	def __eq__(self, other):
		# Note: BaGPipe needs an advertise and a withdraw for the same
		# RD:prefix to result in objects that are equal for Python,
		# this is why the test below does not look at self.labels nor
		# self.nexthop or self.action
		return \
			NLRI.__eq__(self, other) and \
			CIDR.__eq__(self, other) and \
			self.path_info == other.path_info and \
			self.rd == other.rd
Esempio n. 4
0
 def __eq__(self, other):
     # Note: BaGPipe needs an advertise and a withdraw for the same
     # RD:prefix to result in objects that are equal for Python,
     # this is why the test below does not look at self.labels nor
     # self.nexthop or self.action
     return \
      NLRI.__eq__(self, other) and \
      CIDR.__eq__(self, other) and \
      self.path_info == other.path_info and \
      self.rd == other.rd
Esempio n. 5
0
	def __eq__ (self, other):
		return \
			NLRI.__eq__(self, other) and \
			CIDR.__eq__(self, other) and \
			self.path_info == other.path_info and \
			self.nexthop == other.nexthop