]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: check for bgp instance before processing interfaces 1315/head
authorDon Slice <dslice@cumulusnetworks.com>
Mon, 9 Oct 2017 15:22:52 +0000 (15:22 +0000)
committerDon Slice <dslice@cumulusnetworks.com>
Mon, 9 Oct 2017 16:41:58 +0000 (16:41 +0000)
commit2f9123e06920a96797a9e139ee3af0dab52f6639
tree92e66799fa3008d2a78bf7ed414ac54c026c09fa
parentf4dd8c46200b91fd589cb462739f3aca6b1a766f
bgpd: check for bgp instance before processing interfaces

Problem reported with the log displaying error messages if bgpd was
enabled in /etc/frr/daemons but bgp wasn't actually configured.  The
problem was due to operating on interfaces before if_create had been
called (which happens at "router bgp" not at frr starting.  Moved the
checks for the bgp instance before operating on interfaces.  Manual
testing successful and bgp-smoke completed with no new issues.

Ticket: CM-13504
Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
Reviewed-by: CCR-6738
bgpd/bgp_zebra.c