This is an automated email from the ASF dual-hosted git repository.
dahn 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 de1b1d24c2e Python exception processing static routes fixed (#11967)
de1b1d24c2e is described below
commit de1b1d24c2e62eee155fa3aa53f722ecb01858a0
Author: Brad House <[email protected]>
AuthorDate: Tue Dec 16 14:07:22 2025 -0500
Python exception processing static routes fixed (#11967)
---
systemvm/debian/opt/cloud/bin/cs/CsAddress.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/systemvm/debian/opt/cloud/bin/cs/CsAddress.py
b/systemvm/debian/opt/cloud/bin/cs/CsAddress.py
index 3b4ad3d7472..c7dac4df47e 100755
--- a/systemvm/debian/opt/cloud/bin/cs/CsAddress.py
+++ b/systemvm/debian/opt/cloud/bin/cs/CsAddress.py
@@ -603,7 +603,7 @@ class CsIP:
if item == "id":
continue
static_route = static_routes.get_bag()[item]
- if static_route['ip_address'] == self.address['public_ip']
and not static_route['revoke']:
+ if 'ip_address' in static_route and
static_route['ip_address'] == self.address['public_ip'] and not
static_route['revoke']:
self.fw.append(["mangle", "",
"-A PREROUTING -m state --state NEW -i
%s -s %s ! -d %s/32 -j ACL_OUTBOUND_%s" %
(self.dev, static_route['network'],
static_route['ip_address'], self.dev)])