Esempio n. 1
0
	def new (cls, afi, safi, packed, mask, labels, rd, nexthop, action):
		instance = cls(afi,safi,OUT.ANNOUNCE)
		instance.cidr = CIDR(packed, mask)
		instance.labels = labels
		instance.rd = rd
		instance.nexthop = NextHop(IP.ntop(nexthop),nexthop)
		instance.action = action
		return instance
Esempio n. 2
0
 def new(cls, afi, safi, packed, mask, labels, rd, nexthop, action):
     instance = cls(afi, safi, OUT.ANNOUNCE)
     instance.cidr = CIDR(packed, mask)
     instance.labels = labels
     instance.rd = rd
     instance.nexthop = NextHop(IP.ntop(nexthop), nexthop)
     instance.action = action
     return instance
Esempio n. 3
0
	def top (self):
		if not self._ip:
			self._ip = IP.ntop(self._packed)
		return self._ip
Esempio n. 4
0
 def getip(self):
     if not self._ip:
         self._ip = IP.ntop(self.packed)
     return self._ip
Esempio n. 5
0
 def top(self, negotiated=None, afi=AFI.undefined):
     if not self._ip:
         self._ip = IP.ntop(self._packed)
     return self._ip
Esempio n. 6
0
	def getip (self):
		if not self._ip:
			self._ip = IP.ntop(self.packed)
		return self._ip
Esempio n. 7
0
	def top (self, negotiated=None, afi=AFI.undefined):
		if not self._ip:
			self._ip = IP.ntop(self._packed)
		return self._ip
Esempio n. 8
0
	def top (self):
		if not self._ip:
			self._ip = IP.ntop(self._packed)
		return self._ip