diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-01-03 11:36:13 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-01-03 11:36:13 +0000 |
commit | 09be3e86f2171e8b090fd3270ce05ae67ade58ec (patch) | |
tree | 5271513c99021d1818f95af6b1ed65f940931170 /src/op_mode/nat.py | |
parent | c55f36d47a9241402710528c8668a3d98bec571c (diff) | |
download | vyos-1x-09be3e86f2171e8b090fd3270ce05ae67ade58ec.tar.gz vyos-1x-09be3e86f2171e8b090fd3270ce05ae67ade58ec.zip |
T4907: op-mode nat add missing option verbose
Add missing option "verbose" for op-mode NAT
Diffstat (limited to 'src/op_mode/nat.py')
-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__': |