summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Collet <bcollet@oxynux.org>2014-09-10 00:09:09 +0200
committerBenjamin Collet <bcollet@oxynux.org>2014-09-10 00:09:09 +0200
commitdc518329397616c0b9596470bcbe66fa05f858b7 (patch)
tree88341b17cc26269b3af984894e7a0742f7870679
parentabdabda157d51d0641723594fe1f2148efe9a191 (diff)
Fixing show route AS behaviour on Juniper platforms
-rw-r--r--routers/juniper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/juniper.php b/routers/juniper.php
index d80b4f8..d29161b 100644
--- a/routers/juniper.php
+++ b/routers/juniper.php
@@ -53,9 +53,9 @@ final class Juniper extends Router {
case 'as':
if (match_as($parameters)) {
$commands[] = 'show route aspath-regex "^'.$parameters.
- '$" protocol bgp table inet.0';
+ ' .*" protocol bgp table inet.0';
$commands[] = 'show route aspath-regex "^'.$parameters.
- '$" protocol bgp table inet6.0';
+ ' .*" protocol bgp table inet6.0';
} else {
throw new Exception('The parameter is not an AS number.');
}