From cf6127d4091e50b3c7817e78947529ca599e6781 Mon Sep 17 00:00:00 2001 From: Mohit Mehta Date: Wed, 3 Feb 2010 16:35:29 -0800 Subject: fix bug 4115 'clear nat translations' does not clear nat translations * removed command 'clear nat translations'. connection tracking entries can be flushed using 'clear connection-tracking' command * use perl api to get currently active NAT rules --- templates-op/clear/nat/counters/node.def | 2 +- templates-op/clear/nat/counters/rule/node.tag/node.def | 4 ++-- templates-op/clear/nat/translations/node.def | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-) delete mode 100644 templates-op/clear/nat/translations/node.def (limited to 'templates-op') diff --git a/templates-op/clear/nat/counters/node.def b/templates-op/clear/nat/counters/node.def index 3327eda..12a37df 100644 --- a/templates-op/clear/nat/counters/node.def +++ b/templates-op/clear/nat/counters/node.def @@ -1,2 +1,2 @@ help: Clear NAT counters -run: /opt/vyatta/sbin/vyatta-clear-nat-counters.pl --clirule=all +run: /opt/vyatta/sbin/vyatta-clear-nat-counters.pl --action=clear-counters --clirule=all diff --git a/templates-op/clear/nat/counters/rule/node.tag/node.def b/templates-op/clear/nat/counters/rule/node.tag/node.def index 2d1b4a9..b8a07fe 100644 --- a/templates-op/clear/nat/counters/rule/node.tag/node.def +++ b/templates-op/clear/nat/counters/rule/node.tag/node.def @@ -1,3 +1,3 @@ help: Clear counters for a specific NAT rule -allowed: ls /opt/vyatta/config/active/service/nat/rule/ 2>/dev/null -run: /opt/vyatta/sbin/vyatta-clear-nat-counters.pl --clirule="$5" +allowed: /opt/vyatta/sbin/vyatta-clear-nat-counters.pl --action=print-nat-rules --clirule=all +run: /opt/vyatta/sbin/vyatta-clear-nat-counters.pl --action=clear-counters --clirule="$5" diff --git a/templates-op/clear/nat/translations/node.def b/templates-op/clear/nat/translations/node.def deleted file mode 100644 index b096905..0000000 --- a/templates-op/clear/nat/translations/node.def +++ /dev/null @@ -1,2 +0,0 @@ -help: Clear NAT translations -run: sudo ${vyatta_bindir}/sudo-users/vyatta-clear-nat -- cgit v1.2.3