diff options
Diffstat (limited to 'scripts/vyatta-policy-action-verify.pl')
-rw-r--r-- | scripts/vyatta-policy-action-verify.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/vyatta-policy-action-verify.pl b/scripts/vyatta-policy-action-verify.pl index 5ddd2974..1154f5c7 100644 --- a/scripts/vyatta-policy-action-verify.pl +++ b/scripts/vyatta-policy-action-verify.pl @@ -31,6 +31,8 @@ use strict; use POSIX; use File::Copy; +my $VTYSH='/usr/bin/vtysh'; + #solution: put a commit statement in the rule node that does the action test and squirt out delete hook in rule node on a delete. my $route_map = shift; @@ -55,5 +57,5 @@ foreach my $qualifiers (@qualifiers) { #need to get a count of what's left and if action is deleted, but other nodes are present then reject if (-e "/tmp/delete-policy-route-map-$route_map-rule-$rule") { - system "/usr/bin/vyatta-vtysh -c \"configure terminal\" -c \"no route-map $route_map $action $rule\""; + system "$VTYSH -c \"configure terminal\" -c \"no route-map $route_map $action $rule\""; } |