This is an automated email from the ASF dual-hosted git repository.
dahn pushed a commit to branch 4.20
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.20 by this push:
new 393b5d2b779 VR: consider NICs for remote access VPN when apply dhcp
entry (#11681)
393b5d2b779 is described below
commit 393b5d2b7791a9ab280337047fd577a609cbd2b7
Author: Wei Zhou <[email protected]>
AuthorDate: Mon Sep 22 10:25:21 2025 +0200
VR: consider NICs for remote access VPN when apply dhcp entry (#11681)
---
systemvm/debian/opt/cloud/bin/cs/CsDhcp.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/systemvm/debian/opt/cloud/bin/cs/CsDhcp.py
b/systemvm/debian/opt/cloud/bin/cs/CsDhcp.py
index 35849e4c5f8..574a352b5f3 100755
--- a/systemvm/debian/opt/cloud/bin/cs/CsDhcp.py
+++ b/systemvm/debian/opt/cloud/bin/cs/CsDhcp.py
@@ -226,7 +226,7 @@ class CsDhcp(CsDataBag):
i = IPAddress(entry['ipv4_address'])
# Calculate the device
for v in self.devinfo:
- if i > v['network'].network and i < v['network'].broadcast:
+ if i > v['network'].network and v['network'].broadcast and i <
v['network'].broadcast:
v['dnsmasq'] = True
# Virtual Router
v['gateway'] = entry['default_gateway']