Skip to content

Commit 2bfb12c

Browse files
committed
Have rVPCs use the router.redundant.vrrp.interval setting
It defaults to 1, which is hardcoded in the template: ./cosmic/cosmic-core/systemvm/patches/debian/config/opt/cloud/templates/keepalived.conf.templ As non-VPC redundant routers use this setting, I think it makes sense to use it for rVPCs as well. We also need a change to pickup the cmd_line parameter and use it in the Python code that configures the router.
1 parent bbb2dd0 commit 2bfb12c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1598,6 +1598,9 @@ protected StringBuilder createRedundantRouterArgs(final NicProfile nic, final Do
15981598
if (isRedundant) {
15991599
buf.append(" redundant_router=1");
16001600

1601+
final int advertInt = NumbersUtil.parseInt(_configDao.getValue(Config.RedundantRouterVrrpInterval.key()), 1);
1602+
buf.append(" advert_int=").append(advertInt);
1603+
16011604
final Long vpcId = router.getVpcId();
16021605
final List<DomainRouterVO> routers;
16031606
if (vpcId != null) {

0 commit comments

Comments
 (0)