예제 #1
0
파일: ipvpn.py 프로젝트: qoke/exabgp
 def _internal(self, announced=True):
     r = Labelled._internal(self, announced)
     if announced and self.rd:
         r.append(self.rd.json())
     return r
예제 #2
0
파일: ipvpn.py 프로젝트: qoke/exabgp
 def __len__(self):
     return Labelled.__len__(self) + len(self.rd)
예제 #3
0
파일: ipvpn.py 프로젝트: qoke/exabgp
 def __eq__(self, other):
     return \
      Labelled.__eq__(self, other) and \
      self.rd == other.rd
예제 #4
0
 def eq(self, other):
     return \
      Labelled.eq(self, other) and \
      self.rd == other.rd
예제 #5
0
파일: ipvpn.py 프로젝트: qoke/exabgp
 def __init__(self, afi, safi, action=OUT.UNSET):
     Labelled.__init__(self, afi, safi, action)
     self.rd = RouteDistinguisher.NORD
예제 #6
0
파일: ipvpn.py 프로젝트: CadeLaRen/exabgp
	def _internal (self, announced=True):
		r = Labelled._internal(self,announced)
		if announced and self.rd:
			r.append(self.rd.json())
		return r
예제 #7
0
파일: ipvpn.py 프로젝트: CadeLaRen/exabgp
	def __eq__ (self, other):
		return \
			Labelled.__eq__(self, other) and \
			self.rd == other.rd
예제 #8
0
파일: ipvpn.py 프로젝트: CadeLaRen/exabgp
	def __len__ (self):
		return Labelled.__len__(self) + len(self.rd)
예제 #9
0
파일: ipvpn.py 프로젝트: CadeLaRen/exabgp
	def __init__ (self, afi, safi, action=OUT.UNSET):
		Labelled.__init__(self, afi, safi, action)
		self.rd = RouteDistinguisher.NORD
예제 #10
0
파일: ipvpn.py 프로젝트: earies/exabgp
	def eq (self, other):
		return \
			Labelled.eq(self, other) and \
			self.rd == other.rd