Ejemplo n.º 1
0
	def __eq__ (self, other):
		return \
			NLRI.__eq__(self,other) and \
			self.action == other.action and \
			self.nexthop == other.action and \
			self.origin == other.origin and \
			self.rt == other.rt
Ejemplo 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
Ejemplo n.º 3
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
Ejemplo 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
Ejemplo n.º 5
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
Ejemplo n.º 6
0
	def __eq__ (self, other):
		return \
			NLRI.__eq__(self,other) and \
			self.origin == other.origin and \
			self.rt == other.rt
Ejemplo n.º 7
0
	def __eq__ (self, other):
		return \
			NLRI.__eq__(self, other) and \
			self.cidr == other.cidr and \
			self.path_info == other.path_info and \
			self.nexthop == other.nexthop
Ejemplo n.º 8
0
Archivo: inet.py Proyecto: doddt/exabgp
 def __eq__(self, other):
     return \
      NLRI.__eq__(self, other) and \
      self.cidr == other.cidr and \
      self.path_info == other.path_info and \
      self.nexthop == other.nexthop
Ejemplo n.º 9
0
 def __eq__(self, other):
     return \
      NLRI.__eq__(self,other) and \
      self.origin == other.origin and \
      self.rt == other.rt
Ejemplo n.º 10
0
	def __eq__ (self, other):
		return \
			NLRI.__eq__(self,other) and \
			self.CODE == other.CODE and \
			self.packed == other.packed