From de1b1d24c2e62eee155fa3aa53f722ecb01858a0 Mon Sep 17 00:00:00 2001 From: Brad House Date: Tue, 16 Dec 2025 14:07:22 -0500 Subject: [PATCH] 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)])