This is an automated email from the ASF dual-hosted git repository.

dahn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/main by this push:
     new 43a5d6260f0 Enable CPU cap in VRs (#7234)
43a5d6260f0 is described below

commit 43a5d6260f024052af7d0407b7776c2894e54f7e
Author: SadiJr <[email protected]>
AuthorDate: Tue May 23 17:39:42 2023 -0300

    Enable CPU cap in VRs (#7234)
    
    Co-authored-by: SadiJr <[email protected]>
---
 server/src/main/java/com/cloud/network/router/NetworkHelperImpl.java | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/server/src/main/java/com/cloud/network/router/NetworkHelperImpl.java 
b/server/src/main/java/com/cloud/network/router/NetworkHelperImpl.java
index 934336066cc..99d3e7d9492 100644
--- a/server/src/main/java/com/cloud/network/router/NetworkHelperImpl.java
+++ b/server/src/main/java/com/cloud/network/router/NetworkHelperImpl.java
@@ -542,6 +542,7 @@ public class NetworkHelperImpl implements NetworkHelper {
 
                 
router.setDynamicallyScalable(template.isDynamicallyScalable());
                 router.setRole(Role.VIRTUAL_ROUTER);
+                router.setLimitCpuUse(routerOffering.getLimitCpuUse());
                 router = _routerDao.persist(router);
 
                 reallocateRouterNetworks(routerDeploymentDefinition, router, 
template, null);

Reply via email to