Ejemplo n.º 1
0
Archivo: ipvpn.py Proyecto: qoke/exabgp
 def _internal(self, announced=True):
     r = Labelled._internal(self, announced)
     if announced and self.rd:
         r.append(self.rd.json())
     return r
Ejemplo n.º 2
0
Archivo: ipvpn.py Proyecto: qoke/exabgp
 def __len__(self):
     return Labelled.__len__(self) + len(self.rd)
Ejemplo n.º 3
0
Archivo: ipvpn.py Proyecto: qoke/exabgp
 def __eq__(self, other):
     return \
      Labelled.__eq__(self, other) and \
      self.rd == other.rd
Ejemplo n.º 4
0
 def eq(self, other):
     return \
      Labelled.eq(self, other) and \
      self.rd == other.rd
Ejemplo n.º 5
0
Archivo: ipvpn.py Proyecto: qoke/exabgp
 def __init__(self, afi, safi, action=OUT.UNSET):
     Labelled.__init__(self, afi, safi, action)
     self.rd = RouteDistinguisher.NORD
Ejemplo n.º 6
0
	def _internal (self, announced=True):
		r = Labelled._internal(self,announced)
		if announced and self.rd:
			r.append(self.rd.json())
		return r
Ejemplo n.º 7
0
	def __eq__ (self, other):
		return \
			Labelled.__eq__(self, other) and \
			self.rd == other.rd
Ejemplo n.º 8
0
	def __len__ (self):
		return Labelled.__len__(self) + len(self.rd)
Ejemplo n.º 9
0
	def __init__ (self, afi, safi, action=OUT.UNSET):
		Labelled.__init__(self, afi, safi, action)
		self.rd = RouteDistinguisher.NORD
Ejemplo n.º 10
0
	def eq (self, other):
		return \
			Labelled.eq(self, other) and \
			self.rd == other.rd