Skip to content

Commit

Permalink
fix cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
cardoe committed Dec 18, 2024
1 parent fa94706 commit bb3b63d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/neutron-understack/neutron_understack/cisco_asa.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def _get_legacy_session():

def _cmd_str(cmds: list[str]) -> str:
"""Handles encoding of a list of commands to the URL string."""
encoded_cmds = [quote_plus(cmd, safe=",") for cmd in cmds]
encoded_cmds = [quote_plus(cmd) for cmd in cmds]
return "/".join(encoded_cmds)


Expand Down Expand Up @@ -95,7 +95,7 @@ def create_nat(
cmds = [
f"object network OBJ-{inside_ip_addr}",
f"host {inside_ip_addr}",
f"nat ({asa_inside_inf,asa_outside_inf}) static {float_ip_addr}",
f"nat ({asa_inside_inf},{asa_outside_inf}) static {float_ip_addr}",
]

return self._make_request("create_nat", cmds)
Expand Down

0 comments on commit bb3b63d

Please sign in to comment.