Skip to content

Commit

Permalink
Merge pull request FRRouting#29 from ranjanyash54/candidate_startup
Browse files Browse the repository at this point in the history
cmgd: Candidate DB and Running DB should be synced at startup
  • Loading branch information
pushpasis authored Aug 30, 2021
2 parents c7835f9 + 9dc4ace commit 35e7b03
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmgd/cmgd_db.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,10 @@ int cmgd_db_init(struct cmgd_master *cm)
}

running.root.cfg_root = running_config;
// running.root.cfg_root = nb_config_new(NULL);
running.config_db = true;
running.db_id = CMGD_DB_RUNNING;

candidate.root.cfg_root = nb_config_new(NULL);
candidate.root.cfg_root = nb_config_dup(running.root.cfg_root);
candidate.config_db = true;
candidate.db_id = CMGD_DB_CANDIDATE;

Expand Down

0 comments on commit 35e7b03

Please sign in to comment.