diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-05-22 13:28:25 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-05-22 13:28:25 +0200 |
commit | 62b86071c6b549ca13c828ecf2619e2ba7750d7b (patch) | |
tree | 30ccd994d6327eb3da722585b129a5bef3c32547 /src/op_mode/show_nat_translations.py | |
parent | 42939bcb5dbc7adc86e185982283aa9fd404acbb (diff) | |
download | vyos-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-x | src/op_mode/show_nat_translations.py | 6 |
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'] |