Skip to content

Commit 15d3bf4

Browse files
authored
Merge branch 'master' into cacl_fabricns
2 parents d4bb96d + de54082 commit 15d3bf4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/caclmgrd

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,8 @@ class ControlPlaneAclManager(daemon_base.DaemonBase):
555555
ip_protocols = self.ACL_SERVICES[acl_service]["ip_protocols"]
556556
if "dst_ports" in self.ACL_SERVICES[acl_service]:
557557
dst_ports = self.ACL_SERVICES[acl_service]["dst_ports"]
558+
else:
559+
dst_ports = []
558560

559561
acl_rules = {}
560562

@@ -608,6 +610,12 @@ class ControlPlaneAclManager(daemon_base.DaemonBase):
608610
self.log_warning("Unable to determine if ACL table '{}' contains IPv4 or IPv6 rules. Skipping table..."
609611
.format(table_name))
610612
continue
613+
# If no destination port found for this ACL table,
614+
# log a message and skip processing this table.
615+
if len(dst_ports) == 0:
616+
self.log_warning("Required destination port not found for ACL table '{}'. Skipping table..."
617+
.format(table_name))
618+
continue
611619
ipv4_src_ip_set = set()
612620
ipv6_src_ip_set = set()
613621
# For each ACL rule in this table (in descending order of priority)

0 commit comments

Comments
 (0)