Skip to content

Commit

Permalink
Send route refresh with unsupported address family
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaopeng163 committed Mar 1, 2018
1 parent ee21377 commit 2692aee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions yabgp/api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ def send_route_refresh(peer_ip, afi, safi, res):
return {
'status': True
}
else:
return {
'status': False,
'code': 'address family unsupported, afi=%s,safi=%s' % (afi, safi)
}
except Exception as e:
LOG.error(e)
return {
Expand Down

0 comments on commit 2692aee

Please sign in to comment.