diff --git a/python/neutron-understack/neutron_understack/cisco_asa.py b/python/neutron-understack/neutron_understack/cisco_asa.py index 905a7632..539fde41 100644 --- a/python/neutron-understack/neutron_understack/cisco_asa.py +++ b/python/neutron-understack/neutron_understack/cisco_asa.py @@ -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) @@ -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)