BGP: Fix BFD/GR interaction

The old code does not cause GR if BFD failed when GR is running,
session is re-established but not yet synchronized.
49 jobs for master in 6 minutes and 36 seconds (queued for 8 seconds)
Status Job ID Name Coverage
  Image
passed #155969
dind allowed to fail
docker_centos-6-amd64

00:00:20

passed #155970
dind allowed to fail
docker_centos-7-amd64

00:00:19

passed #155959
dind allowed to fail
docker_debian-7-amd64

00:00:24

passed #155963
dind allowed to fail
docker_debian-7-i386

00:00:22

passed #155960
dind allowed to fail
docker_debian-8-amd64

00:00:22

passed #155964
dind allowed to fail
docker_debian-8-i386

00:00:20

passed #155961
dind allowed to fail
docker_debian-9-amd64

00:00:24

passed #155965
dind allowed to fail
docker_debian-9-i386

00:00:20

passed #155962
dind allowed to fail
docker_debian-testing-amd64

00:00:24

passed #155966
dind allowed to fail
docker_debian-testing-i386

00:00:20

passed #155967
dind allowed to fail
docker_fedora-25-amd64

00:00:22

passed #155968
dind allowed to fail
docker_fedora-26-amd64

00:00:20

passed #155971
dind allowed to fail
docker_opensuse-42_3-amd64

00:00:19

passed #155972
dind allowed to fail
docker_ubuntu-14_04-amd64

00:00:21

passed #155973
dind allowed to fail
docker_ubuntu-16_04-amd64

00:00:21

 
  Build
passed #155986
docker linux amd64
build-centos-6-amd64

00:00:55

passed #155987
docker linux amd64
build-centos-6-amd64-v6

00:01:01

passed #155988
docker linux amd64
build-centos-7-amd64

00:01:30

passed #155989
docker linux amd64
build-centos-7-amd64-v6

00:01:03

passed #155974
docker linux amd64
build-debian-7-amd64

00:01:10

passed #155978
docker linux amd64
build-debian-7-amd64-v6

00:01:11

passed #155996
docker linux amd64
build-debian-7-i386

00:01:44

passed #155997
docker linux amd64
build-debian-7-i386-v6

00:01:04

passed #155975
docker linux amd64
build-debian-8-amd64

00:01:14

passed #155979
docker linux amd64
build-debian-8-amd64-v6

00:01:21

passed #155998
docker linux amd64
build-debian-8-i386

00:00:58

passed #155999
docker linux amd64
build-debian-8-i386-v6

00:01:02

passed #155976
docker linux amd64
build-debian-9-amd64

00:01:21

passed #155980
docker linux amd64
build-debian-9-amd64-v6

00:01:21

passed #156000
docker linux amd64
build-debian-9-i386

00:01:00

passed #156001
docker linux amd64
build-debian-9-i386-v6

00:01:05

passed #155977
docker linux amd64
build-debian-testing-amd64

00:01:21

passed #155981
docker linux amd64
build-debian-testing-amd64-v6

00:01:21

passed #156002
docker linux amd64
build-debian-testing-i386

00:01:00

passed #156003
docker linux amd64
build-debian-testing-i386-v6

00:01:03

passed #155982
docker linux amd64
build-fedora-25-amd64

00:01:16

passed #155983
docker linux amd64
build-fedora-25-amd64-v6

00:01:18

passed #155984
docker linux amd64
build-fedora-26-amd64

00:01:27

passed #155985
docker linux amd64
build-fedora-26-amd64-v6

00:01:03

passed #156004
freebsd amd64
build-freebsd-11-amd64

00:04:50

passed #156005
freebsd amd64
build-freebsd-11-amd64-v6

00:05:08

passed #156006
freebsd i386
build-freebsd-11-i386

00:01:47

passed #156007
freebsd i386
build-freebsd-i386-v6

00:01:46

passed #155990
docker linux amd64
build-opensuse-42_3-amd64

00:01:25

passed #155991
docker linux amd64
build-opensuse-42_3-amd64-v6

00:01:31

passed #155992
docker linux amd64
build-ubuntu-14_04-amd64

00:01:43

passed #155993
docker linux amd64
build-ubuntu-14_04-amd64-v6

00:01:47

passed #155994
docker linux amd64
build-ubuntu-16_04-amd64

00:01:44

passed #155995
docker linux amd64
build-ubuntu-16_04-amd64-v6

00:01:47