You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2024/05/10 14:20:12 UTC

(cloudstack-csbench) branch main updated: network: bypass vlan warning when creating shared networks

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

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


The following commit(s) were added to refs/heads/main by this push:
     new 73348c3  network: bypass vlan warning when creating shared networks
73348c3 is described below

commit 73348c3b0cf8736ba6204b83db700eb9abdb103a
Author: Rohit Yadav <ro...@shapeblue.com>
AuthorDate: Fri May 10 19:49:21 2024 +0530

    network: bypass vlan warning when creating shared networks
    
    This ensure the createNetwork APIs don't fail when creating shared
    networks using random VLANs which are bound to conflict in a large
    env.
    
    Signed-off-by: Rohit Yadav <ro...@shapeblue.com>
---
 network/network.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/network/network.go b/network/network.go
index c6d5f36..ceb995e 100644
--- a/network/network.go
+++ b/network/network.go
@@ -70,6 +70,7 @@ func CreateNetwork(cs *cloudstack.CloudStackClient, domainId string, count int)
 	p.SetStartip(startIP)
 	p.SetEndip(endIP)
 	p.SetVlan(strconv.Itoa(getRandomVlan()))
+	p.SetBypassvlanoverlapcheck(true)
 
 	resp, err := cs.Network.CreateNetwork(p)
 	if err != nil {