diff options
author | Benjamin Collet <bcollet@oxynux.org> | 2014-09-10 00:09:09 +0200 |
---|---|---|
committer | Benjamin Collet <bcollet@oxynux.org> | 2014-09-10 00:09:09 +0200 |
commit | dc518329397616c0b9596470bcbe66fa05f858b7 (patch) | |
tree | 88341b17cc26269b3af984894e7a0742f7870679 | |
parent | abdabda157d51d0641723594fe1f2148efe9a191 (diff) |
Fixing show route AS behaviour on Juniper platforms
-rw-r--r-- | routers/juniper.php | 4 |
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.'); } |