From 62b86071c6b549ca13c828ecf2619e2ba7750d7b Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 22 May 2020 13:28:25 +0200 Subject: nat: T2460: migrate to new Python implementation --- src/op_mode/show_nat_translations.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/op_mode/show_nat_translations.py') 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'] -- cgit v1.2.3