diff options
author | Christian Poessinger <christian@poessinger.com> | 2023-01-03 15:22:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-03 15:22:39 +0100 |
commit | 457761d57e0c186d2ea6fe09cb7a6c0424810200 (patch) | |
tree | 5271513c99021d1818f95af6b1ed65f940931170 | |
parent | c55f36d47a9241402710528c8668a3d98bec571c (diff) | |
parent | 09be3e86f2171e8b090fd3270ce05ae67ade58ec (diff) | |
download | vyos-1x-457761d57e0c186d2ea6fe09cb7a6c0424810200.tar.gz vyos-1x-457761d57e0c186d2ea6fe09cb7a6c0424810200.zip |
Merge pull request #1736 from sever-sever/T4907
T4907: op-mode nat add missing option verbose
-rwxr-xr-x | src/op_mode/nat.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/op_mode/nat.py b/src/op_mode/nat.py index a46571bd5..cf06de0e9 100755 --- a/src/op_mode/nat.py +++ b/src/op_mode/nat.py @@ -316,14 +316,20 @@ def show_statistics(raw: bool, direction: str, family: str): @_verify -def show_translations(raw: bool, direction: str, family: str, address: typing.Optional[str]): +def show_translations(raw: bool, direction: + str, family: str, + address: typing.Optional[str], + verbose: typing.Optional[bool]): family = 'ipv6' if family == 'inet6' else 'ipv4' - nat_translation = _get_raw_translation(direction, family=family, address=address) + nat_translation = _get_raw_translation(direction, + family=family, + address=address) if raw: return nat_translation else: - return _get_formatted_translation(nat_translation, direction, family, verbose) + return _get_formatted_translation(nat_translation, direction, family, + verbose) if __name__ == '__main__': |