This is an automated email from the ASF dual-hosted git repository. Pearl1594 pushed a commit to branch fix-range-exhaustion-ext-provider in repository https://gitbox.apache.org/repos/asf/cloudstack.git
commit d94d065e78c1d3d396e7dbe4601a4d14e563ba42 Author: Pearl Dsilva <[email protected]> AuthorDate: Wed Jun 10 07:30:54 2026 -0400 systemvm: fix VPC VPN issue when network id is bigger than 1000 on Netris (#115) Co-authored-by: Wei Zhou <[email protected]> --- 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 834390dc657..caead5079a8 100755 --- a/systemvm/debian/opt/cloud/bin/cs/CsAddress.py +++ b/systemvm/debian/opt/cloud/bin/cs/CsAddress.py @@ -46,13 +46,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
