From 5a089a033bf684583ad75d3c7b5687d72aabded9 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 23 Dec 2022 17:30:22 +0100 Subject: nat: T4545: implement missing functionality from old script to new op-mode script Remaining functionality to filter NAT translations for a given address got implemented to nat.py - with this cahnge we can drop the old files show_nat*.py --- op-mode-definitions/nat66.xml.in | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) (limited to 'op-mode-definitions/nat66.xml.in') diff --git a/op-mode-definitions/nat66.xml.in b/op-mode-definitions/nat66.xml.in index 25aa04d59..6a8a39000 100644 --- a/op-mode-definitions/nat66.xml.in +++ b/op-mode-definitions/nat66.xml.in @@ -4,7 +4,7 @@ - Show IPv6 to IPv6 Network Address Translation (NAT66) information + Show IPv6 Network Address Translation (NAT66) information @@ -22,7 +22,7 @@ Show statistics for configured source NAT66 rules - ${vyos_op_scripts_dir}/show_nat66_statistics.py --source + sudo ${vyos_op_scripts_dir}/nat.py show_statistics --direction source --family inet6 @@ -36,14 +36,8 @@ <h:h:h:h:h:h:h:h> - ${vyos_op_scripts_dir}/show_nat66_translations.py --type=source --verbose --ipaddr="$6" + sudo ${vyos_op_scripts_dir}/nat.py show_translations --direction source --family inet6 --address "$6" - - - Show active source NAT66 translations detail - - ${vyos_op_scripts_dir}/show_nat66_translations.py --type=source --verbose - ${vyos_op_scripts_dir}/nat.py show_translations --direction source --family inet6 @@ -64,7 +58,7 @@ Show statistics for configured destination NAT66 rules - ${vyos_op_scripts_dir}/show_nat66_statistics.py --destination + sudo ${vyos_op_scripts_dir}/nat.py show_statistics --direction destination --family inet6 @@ -78,14 +72,8 @@ <h:h:h:h:h:h:h:h> - ${vyos_op_scripts_dir}/show_nat66_translations.py --type=destination --verbose --ipaddr="$6" + sudo ${vyos_op_scripts_dir}/nat.py show_translations --direction destination --family inet6 --address "$6" - - - Show active destination NAT66 translations detail - - ${vyos_op_scripts_dir}/show_nat66_translations.py --type=destination --verbose - ${vyos_op_scripts_dir}/nat.py show_translations --direction destination --family inet6 -- cgit v1.2.3