summaryrefslogtreecommitdiff
path: root/routers/quagga.php
diff options
context:
space:
mode:
Diffstat (limited to 'routers/quagga.php')
-rw-r--r--routers/quagga.php12
1 files changed, 2 insertions, 10 deletions
diff --git a/routers/quagga.php b/routers/quagga.php
index bc91cdf..01d4387 100644
--- a/routers/quagga.php
+++ b/routers/quagga.php
@@ -109,17 +109,9 @@ final class Quagga extends Router {
switch ($command) {
case 'bgp':
if (match_ipv6($parameter, false)) {
- if ($this->global_config['misc']['disable_ipv6']) {
- throw new Exception('IPv6 is disabled.');
- } else {
- $commands[] = $vtysh.'show bgp ipv6 unicast '.$parameter.'"';
- }
+ $commands[] = $vtysh.'show bgp ipv6 unicast '.$parameter.'"';
} else if (match_ipv4($parameter, false)) {
- if ($this->global_config['misc']['disable_ipv4']) {
- throw new Exception('IPv4 is disabled.');
- } else {
- $commands[] = $vtysh.'show bgp ipv4 unicast '.$parameter.'"';
- }
+ $commands[] = $vtysh.'show bgp ipv4 unicast '.$parameter.'"';
} else {
throw new Exception('The parameter is not an IP address.');
}