summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Mazoyer <gmazoyer@gravitons.in>2014-09-10 09:23:58 +0200
committerGuillaume Mazoyer <gmazoyer@gravitons.in>2014-09-10 09:23:58 +0200
commitcb1b79ba4f9e764ed3904c10e575a0dcbf35e55b (patch)
tree88341b17cc26269b3af984894e7a0742f7870679
parentabdabda157d51d0641723594fe1f2148efe9a191 (diff)
parentdc518329397616c0b9596470bcbe66fa05f858b7 (diff)
Merge pull request #12 from bcollet/master
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.');
}