Skip to content

Commit

Permalink
[caclmgrd] Fix application of IPv6 service ACL rules (part 2) (sonic-…
Browse files Browse the repository at this point in the history
  • Loading branch information
jleveque authored and pphuchar committed Mar 9, 2020
1 parent a60481b commit 65e9834
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion files/image_config/caclmgrd/caclmgrd
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,9 @@ class ControlPlaneAclManager(object):
rule_cmd = "ip6tables" if table_ip_version == 6 else "iptables"
rule_cmd += " -A INPUT -p {}".format(ip_protocol)

if "SRC_IP" in rule_props and rule_props["SRC_IP"]:
if "SRC_IPV6" in rule_props and rule_props["SRC_IPV6"]:
rule_cmd += " -s {}".format(rule_props["SRC_IPV6"])
elif "SRC_IP" in rule_props and rule_props["SRC_IP"]:
rule_cmd += " -s {}".format(rule_props["SRC_IP"])

rule_cmd += " --dport {}".format(dst_port)
Expand Down

0 comments on commit 65e9834

Please sign in to comment.