Skip to content

Commit

Permalink
do not group updates when they are not IPv4 Unicast
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-mangin committed Sep 12, 2016
1 parent be69f44 commit 7ff86d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/exabgp/rib/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"""

from exabgp.protocol.family import AFI
from exabgp.protocol.family import SAFI
from exabgp.bgp.message import IN
from exabgp.bgp.message import OUT
from exabgp.bgp.message import Update
Expand Down Expand Up @@ -217,6 +218,8 @@ def updates (self, grouped):
dict_change = {}
for nlri_index,change in full_dict_change.iteritems():
family = change.nlri.family()
if family != (AFI.ipv4,SAFI.unicast):
grouped = False
announced = self._seen.get(family,{})
if change.nlri.action == OUT.ANNOUNCE:
if nlri_index in announced:
Expand Down

0 comments on commit 7ff86d0

Please sign in to comment.