Exemplo n.º 1
0
 def new_eors(self):
     # Send EOR to let our peer know he can perform a RIB update
     if self.negotiated.families:
         for afi, safi in self.negotiated.families:
             eor = EOR(afi, safi).message()
             for _ in self.write(eor):
                 yield _NOP
             yield _UPDATE
     else:
         # If we are not sending an EOR, send a keepalive as soon as when finished
         # So the other routers knows that we have no (more) routes to send ...
         # (is that behaviour documented somewhere ??)
         for eor in self.new_keepalive('EOR'):
             yield _NOP
         yield _UPDATE
Exemplo n.º 2
0
 def new_eor(self, afi, safi):
     eor = EOR(afi, safi)
     for _ in self.write(eor.message()):
         yield _NOP
     self.logger.message(self.me('>> EOR %s %s' % (afi, safi)))
     yield eor
Exemplo n.º 3
0
	def new_eor (self,afi,safi):
		eor = EOR(afi,safi)
		for _ in self.write(eor.message()):
			yield _NOP
		self.logger.message(self.me('>> EOR %s %s' % (afi,safi)))
		yield eor