summaryrefslogtreecommitdiff
path: root/src/op_mode/show_nat_translations.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-05-22 13:28:25 +0200
committerChristian Poessinger <christian@poessinger.com>2020-05-22 13:28:25 +0200
commit62b86071c6b549ca13c828ecf2619e2ba7750d7b (patch)
tree30ccd994d6327eb3da722585b129a5bef3c32547 /src/op_mode/show_nat_translations.py
parent42939bcb5dbc7adc86e185982283aa9fd404acbb (diff)
downloadvyos-1x-62b86071c6b549ca13c828ecf2619e2ba7750d7b.tar.gz
vyos-1x-62b86071c6b549ca13c828ecf2619e2ba7750d7b.zip
nat: T2460: migrate to new Python implementation
Diffstat (limited to 'src/op_mode/show_nat_translations.py')
-rwxr-xr-xsrc/op_mode/show_nat_translations.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/op_mode/show_nat_translations.py b/src/op_mode/show_nat_translations.py
index db3d2bf0a..e888f3509 100755
--- a/src/op_mode/show_nat_translations.py
+++ b/src/op_mode/show_nat_translations.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
-# Copyright (C) 2018 VyOS maintainers and contributors
+# Copyright (C) 2020 VyOS maintainers and contributors
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 or later as
@@ -84,7 +84,7 @@ def pipe():
def process(data, stats, protocol, pipe, verbose, flowtype=''):
if not data:
return
-
+
parsed = xmltodict.parse(data)
print(headers(verbose, pipe))
@@ -104,7 +104,7 @@ def process(data, stats, protocol, pipe, verbose, flowtype=''):
timeout, use = 0, 0
rule_type = rule.get('type', '')
-
+
for meta in rule['meta']:
# print(meta)
direction = meta['@direction']