Skip to content

Commit

Permalink
northd: Synchronize the FDB age threshold
Browse files Browse the repository at this point in the history
Synchrinoize the FDB age threashold to SB datapath.

This is a preparation for the FDB refresh mechanism.

Signed-off-by: Ales Musil <amusil@redhat.com>
Signed-off-by: Mark Michelson <mmichels@redhat.com>
  • Loading branch information
almusil authored and putnopvut committed Aug 24, 2023
1 parent e1ab41e commit bfbf32f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions northd/northd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1134,6 +1134,13 @@ ovn_datapath_update_external_ids(struct ovn_datapath *od)
if (ts) {
smap_add(&ids, "interconn-ts", ts);
}

uint32_t age_threshold = smap_get_uint(&od->nbs->other_config,
"fdb_age_threshold", 0);
if (age_threshold) {
smap_add_format(&ids, "fdb_age_threshold",
"%u", age_threshold);
}
}

/* Set snat-ct-zone */
Expand Down

0 comments on commit bfbf32f

Please sign in to comment.