summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/qos.py3
-rwxr-xr-xsrc/op_mode/nat.py12
2 files changed, 9 insertions, 6 deletions
diff --git a/src/conf_mode/qos.py b/src/conf_mode/qos.py
index 7e94e95bf..2eb03237c 100755
--- a/src/conf_mode/qos.py
+++ b/src/conf_mode/qos.py
@@ -139,9 +139,6 @@ def get_config(config=None):
qos['policy'][policy][p_name]['precedence'][precedence]['queue_limit'] = \
str(int(4 * max_thr))
- import pprint
- pprint.pprint(qos)
-
return qos
def verify(qos):
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__':