summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2008-01-09 13:12:36 -0800
committerStig Thormodsrud <stig@vyatta.com>2008-01-09 13:12:36 -0800
commitb45e64b20f356afb629ff78aecedb00e417a18e1 (patch)
tree32e0c540cd2dba0043e1c2ae1898c576a2155478 /scripts
parenta0fc98e8243c7ccaf2019f0cc5697041e6c6133b (diff)
downloadvyatta-cfg-quagga-b45e64b20f356afb629ff78aecedb00e417a18e1.tar.gz
vyatta-cfg-quagga-b45e64b20f356afb629ff78aecedb00e417a18e1.zip
Fix for bug 2615 "as-path-list configuration was not sent to the routing engine".
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/policy/vyatta-policy.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/policy/vyatta-policy.pl b/scripts/policy/vyatta-policy.pl
index 563cae0d..51aa163a 100755
--- a/scripts/policy/vyatta-policy.pl
+++ b/scripts/policy/vyatta-policy.pl
@@ -3,7 +3,7 @@ use lib "/opt/vyatta/share/perl5/";
use VyattaConfig;
use VyattaMisc;
use Getopt::Long;
-$VTYSH='/usr/bin/vtysh';
+$VTYSH='/opt/vyatta/sbin/vyatta-vtysh.pl';
GetOptions("update-access-list=s" => \$accesslist,
"update-aspath-list=s" => \$aspathlist,
@@ -32,7 +32,7 @@ sub check_peer_syntax() {
sub is_community_list {
my $list = shift;
- my $count = `vtysh -c \"show ip community-list $list\" | grep $list | wc -l`;
+ my $count = `$VTYSH -c \"show ip community-list $list\" | grep $list | wc -l`;
if ($count > 0) {
return 1;
} else {
@@ -82,7 +82,7 @@ sub update_community_list() {
sub is_as_path_list {
my $list = shift;
- my $count = `vtysh -c \"show ip as-path-access-list $list\" | grep $list | wc -l`;
+ my $count = `$VTYSH -c \"show ip as-path-access-list $list\" | grep $list | wc -l`;
if ($count > 0) {
return 1;
} else {
@@ -132,7 +132,7 @@ sub update_as_path() {
sub is_access_list {
my $list = shift;
- my $count = `vtysh -c \"show ip access-list $list\" | grep $list | wc -l`;
+ my $count = `$VTYSH -c \"show ip access-list $list\" | grep $list | wc -l`;
if ($count > 0) {
return 1;
} else {