When the user is not using the integrated config and
has upgraded to a version of FRR with staticd, that
probably means that static routes are stored in zebra.conf.
Take advantage of the backup backup config option and read
those in.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
#include "static_routes.h"
#include "static_zebra.h"
+char backup_config_file[256];
+
bool mpls_enabled;
zebra_capabilities_t _caps_p[] = {
static_zebra_init();
static_vty_init();
+ snprintf(backup_config_file, sizeof(backup_config_file),
+ "%s/zebra.conf", frr_sysconfdir);
+ staticd_di.backup_config_file = backup_config_file;
+
frr_config_fork();
frr_run(master);