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 <lorenzo.bianc...@redhat.com> --- ovn/controller/pinctrl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ovn/controller/pinctrl.c b/ovn/controller/pinctrl.c index 655a85f74..100a20ff2 100644 --- a/ovn/controller/pinctrl.c +++ b/ovn/controller/pinctrl.c @@ -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; } -- 2.20.1 _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev