From d9a08e109daacf2736bb599281ea049a3a385527 Mon Sep 17 00:00:00 2001 From: jack9603301 Date: Sat, 13 Mar 2021 19:49:01 +0800 Subject: nat66: T2518: Modify the command line description of NAT/NAT66 --- op-mode-definitions/nat.xml.in | 6 +++--- op-mode-definitions/nat66.xml.in | 26 +++++++++++++------------- src/conf_mode/nat66.py | 1 - 3 files changed, 16 insertions(+), 17 deletions(-) diff --git a/op-mode-definitions/nat.xml.in b/op-mode-definitions/nat.xml.in index 949400eba..084e2e7e3 100644 --- a/op-mode-definitions/nat.xml.in +++ b/op-mode-definitions/nat.xml.in @@ -4,12 +4,12 @@ - Show Network Address Translation (NAT) information + Show IPv4 to IPv4 Network Address Translation (NAT) information - Show source Network Address Translation (NAT) information + Show source IPv4 to IPv4 Network Address Translation (NAT) information @@ -51,7 +51,7 @@ - Show destination Network Address Translation (NAT) information + Show destination IPv4 to IPv4 Network Address Translation (NAT) information diff --git a/op-mode-definitions/nat66.xml.in b/op-mode-definitions/nat66.xml.in index c57c7c8b3..1ec46eb11 100644 --- a/op-mode-definitions/nat66.xml.in +++ b/op-mode-definitions/nat66.xml.in @@ -4,34 +4,34 @@ - Show Network Address Translation (NAT) information + Show IPv6 to IPv6 Network Address Translation (NAT66) information - Show source Network Address Translation (NAT) information + Show source IPv6 to IPv6 Network Address Translation (NAT66) information - Show configured source NAT rules + Show configured source NAT66 rules ${vyos_op_scripts_dir}/show_nat66_rules.py --source - Show statistics for configured source NAT rules + Show statistics for configured source NAT66 rules ${vyos_op_scripts_dir}/show_nat66_statistics.py --source - Show active source NAT translations + Show active source NAT66 translations - Show active source NAT translations for an IP address + Show active source NAT66 translations for an IPv6 address <h:h:h:h:h:h:h:h> @@ -40,7 +40,7 @@ - Show active source NAT translations detail + Show active source NAT66 translations detail ${vyos_op_scripts_dir}/show_nat66_translations.py --type=source --verbose @@ -51,29 +51,29 @@ - Show destination Network Address Translation (NAT) information + Show destination IPv6 to IPv6 Network Address Translation (NAT66) information - Show configured destination NAT rules + Show configured destination NAT66 rules ${vyos_op_scripts_dir}/show_nat66_rules.py --destination - Show statistics for configured destination NAT rules + Show statistics for configured destination NAT66 rules ${vyos_op_scripts_dir}/show_nat66_statistics.py --destination - Show active destination NAT translations + Show active destination NAT66 translations - Show active NAT destination translations for an IP address + Show active NAT66 destination translations for an IPv6 address <h:h:h:h:h:h:h:h> @@ -82,7 +82,7 @@ - Show active destination NAT translations detail + Show active destination NAT66 translations detail ${vyos_op_scripts_dir}/show_nat66_translations.py --type=destination --verbose diff --git a/src/conf_mode/nat66.py b/src/conf_mode/nat66.py index 86c27c77a..e2bd6417d 100755 --- a/src/conf_mode/nat66.py +++ b/src/conf_mode/nat66.py @@ -28,7 +28,6 @@ from vyos.util import cmd from vyos.util import check_kmod from vyos.util import dict_search from vyos.template import is_ipv6 -from vyos.template import is_ip_network from vyos.xml import defaults from vyos import ConfigError from vyos import airbag -- cgit v1.2.3