From 0512ffb7f70f85223a71ffd539b74459793178af Mon Sep 17 00:00:00 2001 From: Guillaume Mazoyer Date: Wed, 3 Sep 2014 11:19:56 +0200 Subject: Add config to disallow the use of private and reserved IP ranges. --- routers/bird.php | 2 +- routers/cisco.php | 2 +- routers/juniper.php | 2 +- routers/quagga.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'routers') diff --git a/routers/bird.php b/routers/bird.php index a9fec59..25d7544 100644 --- a/routers/bird.php +++ b/routers/bird.php @@ -47,7 +47,7 @@ final class Bird extends Router { $commands[] = $birdc6.' \'show route where bgp_path ~ [= '. $parameters.' =]\''; } else { - throw new Exception('The parameter is not an AS-Path regular expression like ".*XXXX YYYY.*".'); + throw new Exception('The parameter is not an AS-Path regular expression.'); } break; diff --git a/routers/cisco.php b/routers/cisco.php index b7eb01c..304cb56 100644 --- a/routers/cisco.php +++ b/routers/cisco.php @@ -42,7 +42,7 @@ final class Cisco extends Router { $commands[] = 'show bgp ipv4 unicast quote-regexp "'.$parameters.'"'; $commands[] = 'show bgp ipv6 unicast quote-regexp "'.$parameters.'"'; } else { - throw new Exception('The parameter is not an AS-Path regular expression like ".*XXXX YYYY.*".'); + throw new Exception('The parameter is not an AS-Path regular expression.'); } break; diff --git a/routers/juniper.php b/routers/juniper.php index 99da240..d80b4f8 100644 --- a/routers/juniper.php +++ b/routers/juniper.php @@ -46,7 +46,7 @@ final class Juniper extends Router { $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.*".'); + throw new Exception('The parameter is not an AS-Path regular expression.'); } break; diff --git a/routers/quagga.php b/routers/quagga.php index 642ff4e..2dc7dc2 100644 --- a/routers/quagga.php +++ b/routers/quagga.php @@ -44,7 +44,7 @@ final class Quagga extends Router { $commands[] = $vtysh.'show ip bgp regexp '.$parameters.'"'; $commands[] = $vtysh.'show ipv6 bgp regexp '.$parameters.'"'; } else { - throw new Exception('The parameter is not an AS-Path regular expression like ".*XXXX YYYY.*".'); + throw new Exception('The parameter is not an AS-Path regular expression.'); } break; -- cgit v1.2.3