Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
wang.wangqiang committed Apr 17, 2024
1 parent 78e16c7 commit ab21fc2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cli_creator/firewall/forti.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,20 +184,20 @@ def configure_policy_modify(self, policy_id, select):
udp_port_str += "UDP-%s " %l
if src_address_str != "":
srcaddr = "%s srcaddr %s" % (select, src_address_str)
command += srcaddr
command += srcaddr + '\n'
else:
pass
if des_address_str != "":
dstaddr = "%s dstaddr %s" % (select, des_address_str)
command += dstaddr
command += dstaddr + '\n'
else:
pass
if (tcp_port_str + udp_port_str) != "":
service = "%s service %s" % (select, tcp_port_str + udp_port_str)
command += service
command += service + '\n'
else:
pass
end = "end"
end = "end" + '\n'
command += end
return command

Expand Down

0 comments on commit ab21fc2

Please sign in to comment.