Skip to content

Commit

Permalink
OVN: update RA next_announce according to {min, max}_interval
Browse files Browse the repository at this point in the history
Update RA next_announce whenever min_interval and/or max_interval are
updated in sbrec_port_binding option. In the current implementation
if ipv6_ra_configs:send_periodic is set to true before setting
ipv6_ra_configs:{min,max}_interval, next_announce will be set using
default values and it will not be updated until we send the first IPv6
router advertisement

Signed-off-by: Lorenzo Bianconi <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
LorenzoBianconi authored and blp committed Mar 4, 2019
1 parent e7f6ba2 commit ea4b45a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ovn/controller/pinctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1823,6 +1823,11 @@ send_ipv6_ras(struct ovsdb_idl_index *sbrec_port_binding_by_datapath,
ra->config->max_interval);
shash_add(&ipv6_ras, pb->logical_port, ra);
} else {
if (config->min_interval != ra->config->min_interval ||
config->max_interval != ra->config->max_interval)
ra->next_announce = ipv6_ra_calc_next_announce(
config->min_interval,
config->max_interval);
ipv6_ra_config_delete(ra->config);
ra->config = config;
}
Expand Down

0 comments on commit ea4b45a

Please sign in to comment.