diff options
author | Guillaume Mazoyer <respawneral@gmail.com> | 2014-06-13 16:07:03 +0200 |
---|---|---|
committer | Guillaume Mazoyer <respawneral@gmail.com> | 2014-06-13 16:07:03 +0200 |
commit | c340d1a433cb7e4bd3cbeca5bc16566f746bd3fc (patch) | |
tree | 466b7fd9a7121a3ee57c7640a1952e1cf2e43a9a | |
parent | da73db1bf43b8950d33bd47b39b595f7f6e8756d (diff) |
Use quoted aspath-regex for Juniper.
-rw-r--r-- | routers/juniper.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/routers/juniper.php b/routers/juniper.php index ff42e41..c4bceb1 100644 --- a/routers/juniper.php +++ b/routers/juniper.php @@ -41,10 +41,10 @@ final class Juniper extends Router { case 'as-path-regex': if (match_aspath_regex($parameters)) { - $commands[] = 'show route aspath-regex '.$parameters. - ' protocol bgp table inet.0'; - $commands[] = 'show route aspath-regex '.$parameters. - ' protocol bgp table inet6.0'; + $commands[] = 'show route aspath-regex "'.$parameters. + '" protocol bgp table inet.0'; + $commands[] = 'show route aspath-regex "'.$parameters. + '" protocol bgp table inet6.0'; } else { throw new Exception('The parameter is not an AS-Path regular expression like ".*XXXX YYYY.*".'); } @@ -52,10 +52,10 @@ final class Juniper extends Router { case 'as': if (match_as($parameters)) { - $commands[] = 'show route aspath-regex ^'.$parameters. - '$ protocol bgp table inet.0'; - $commands[] = 'show route aspath-regex ^'.$parameters. - '$ protocol bgp table inet6.0'; + $commands[] = 'show route aspath-regex "^'.$parameters. + '$" protocol bgp table inet.0'; + $commands[] = 'show route aspath-regex "^'.$parameters. + '$" protocol bgp table inet6.0'; } else { throw new Exception('The parameter is not an AS number.'); } |