summaryrefslogtreecommitdiff
path: root/templates-op/show/nat/source
diff options
context:
space:
mode:
authorDaniil Baturin <daniil.baturin@vyatta.com>2011-12-15 22:54:11 +0700
committerDaniil Baturin <daniil.baturin@vyatta.com>2011-12-15 22:54:11 +0700
commitff7ef77c3bb149814a33353c2923badac4f6823c (patch)
tree9caf316851b4c26c51acf9f1a8b51538d946c70c /templates-op/show/nat/source
parent4f354f5e59fd4d771592640ee017c188c0e9cecf (diff)
downloadvyatta-nat-ff7ef77c3bb149814a33353c2923badac4f6823c.tar.gz
vyatta-nat-ff7ef77c3bb149814a33353c2923badac4f6823c.zip
Update op mode templates for "show nat <source|destination>
translations".
Diffstat (limited to 'templates-op/show/nat/source')
-rw-r--r--templates-op/show/nat/source/translations/address/node.def1
-rw-r--r--templates-op/show/nat/source/translations/address/node.tag/node.def11
-rw-r--r--templates-op/show/nat/source/translations/detail/node.def3
-rw-r--r--templates-op/show/nat/source/translations/node.def2
4 files changed, 17 insertions, 0 deletions
diff --git a/templates-op/show/nat/source/translations/address/node.def b/templates-op/show/nat/source/translations/address/node.def
new file mode 100644
index 0000000..5b2439c
--- /dev/null
+++ b/templates-op/show/nat/source/translations/address/node.def
@@ -0,0 +1 @@
+help: Show active NAT source translations for an IP address
diff --git a/templates-op/show/nat/source/translations/address/node.tag/node.def b/templates-op/show/nat/source/translations/address/node.tag/node.def
new file mode 100644
index 0000000..f2edbad
--- /dev/null
+++ b/templates-op/show/nat/source/translations/address/node.tag/node.def
@@ -0,0 +1,11 @@
+help: Show active source NAT translations for an IP address
+allowed: echo -n '<x.x.x.x>'
+run: if /opt/vyatta/sbin/vyatta-validate-type.pl -q ipv4 $6
+ then
+ sudo ${vyatta_bindir}/sudo-users/vyatta-nat-translations.pl \
+ --type=source \
+ --verbose \
+ --ipaddr="$6"
+ else
+ echo "Invalid IP address"
+ fi
diff --git a/templates-op/show/nat/source/translations/detail/node.def b/templates-op/show/nat/source/translations/detail/node.def
new file mode 100644
index 0000000..fdbc7fb
--- /dev/null
+++ b/templates-op/show/nat/source/translations/detail/node.def
@@ -0,0 +1,3 @@
+help: Show active source NAT translations detail
+run: sudo ${vyatta_bindir}/sudo-users/vyatta-nat-translations.pl --type=source \
+ --verbose
diff --git a/templates-op/show/nat/source/translations/node.def b/templates-op/show/nat/source/translations/node.def
new file mode 100644
index 0000000..e16d1e3
--- /dev/null
+++ b/templates-op/show/nat/source/translations/node.def
@@ -0,0 +1,2 @@
+help: Show active source NAT translations
+run: sudo ${vyatta_bindir}/sudo-users/vyatta-nat-translations.pl --type=source