diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2010-02-03 16:35:29 -0800 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2010-02-03 16:35:29 -0800 |
commit | cf6127d4091e50b3c7817e78947529ca599e6781 (patch) | |
tree | fab0daefd9fc9a7b5ed302bfb2b42a49811328d8 /templates-op | |
parent | 19c6713d5d505cde98eee49031e7d7403bdad994 (diff) | |
download | vyatta-nat-cf6127d4091e50b3c7817e78947529ca599e6781.tar.gz vyatta-nat-cf6127d4091e50b3c7817e78947529ca599e6781.zip |
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
Diffstat (limited to 'templates-op')
-rw-r--r-- | templates-op/clear/nat/counters/node.def | 2 | ||||
-rw-r--r-- | templates-op/clear/nat/counters/rule/node.tag/node.def | 4 | ||||
-rw-r--r-- | templates-op/clear/nat/translations/node.def | 2 |
3 files changed, 3 insertions, 5 deletions
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 |