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

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


The following commit(s) were added to refs/heads/4.22 by this push:
     new 2ba02c1a4a3 systemvm: fix VPC VPN issue when network id is bigger than 
1000 on Netris (#13346)
2ba02c1a4a3 is described below

commit 2ba02c1a4a3974cfddf28697cfe56d95cf5f7360
Author: Wei Zhou <[email protected]>
AuthorDate: Mon Jun 29 16:52:14 2026 +0200

    systemvm: fix VPC VPN issue when network id is bigger than 1000 on Netris 
(#13346)
---
 systemvm/debian/opt/cloud/bin/cs/CsAddress.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/systemvm/debian/opt/cloud/bin/cs/CsAddress.py 
b/systemvm/debian/opt/cloud/bin/cs/CsAddress.py
index bde4a976e31..37ca8979edc 100755
--- a/systemvm/debian/opt/cloud/bin/cs/CsAddress.py
+++ b/systemvm/debian/opt/cloud/bin/cs/CsAddress.py
@@ -47,13 +47,13 @@ class CsAddress(CsDataBag):
 
     def get_guest_if_by_network_id(self):
         guest_interface = None
-        lowest_network_id = 1000
+        lowest_network_id = None
         for interface in self.get_interfaces():
             if interface.is_guest() and interface.is_added():
                 if not self.config.is_vpc():
                     return interface
                 network_id = 
self.config.guestnetwork().get_network_id(interface.get_device())
-                if network_id and network_id < lowest_network_id:
+                if network_id and (lowest_network_id is None or network_id < 
lowest_network_id):
                     lowest_network_id = network_id
                     guest_interface = interface
         return guest_interface

Reply via email to