summaryrefslogtreecommitdiff
path: root/routers/quagga.php
diff options
context:
space:
mode:
authorGuillaume Mazoyer <gmazoyer@gravitons.in>2016-06-13 11:23:09 +0200
committerGuillaume Mazoyer <gmazoyer@gravitons.in>2016-06-13 11:23:09 +0200
commit931788ad45b4f1114e97e6ac2869ab84efa767e2 (patch)
tree6d93fee8a118e67843222278e0cbe95494d8b74d /routers/quagga.php
parent669fb2ebd03ac5e9b0806acb1c200e71e69b3d47 (diff)
Per router options to disable/enable IP versions.
Remove the global options to disable/enable IPv6 or IPv4. These options can now be used on the router configuration level, which seems more appropriate.
Diffstat (limited to 'routers/quagga.php')
-rw-r--r--routers/quagga.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/routers/quagga.php b/routers/quagga.php
index 01d4387..d451e94 100644
--- a/routers/quagga.php
+++ b/routers/quagga.php
@@ -119,10 +119,10 @@ final class Quagga extends Router {
case 'as-path-regex':
if (match_aspath_regex($parameter)) {
- if (!$this->global_config['misc']['disable_ipv6']) {
+ if (!$this->config['disable_ipv6']) {
$commands[] = $vtysh.'show ipv6 bgp regexp '.$parameter.'"';
}
- if (!$this->global_config['misc']['disable_ipv4']) {
+ if (!$this->config['disable_ipv4']) {
$commands[] = $vtysh.'show ip bgp regexp '.$parameter.'"';
}
} else {
@@ -132,10 +132,10 @@ final class Quagga extends Router {
case 'as':
if (match_as($parameter)) {
- if (!$this->global_config['misc']['disable_ipv6']) {
+ if (!$this->config['disable_ipv6']) {
$commands[] = $vtysh.'show ipv6 bgp regexp ^'.$parameter.'_'.'"';
}
- if (!$this->global_config['misc']['disable_ipv4']) {
+ if (!$this->config['disable_ipv4']) {
$commands[] = $vtysh.'show ip bgp regexp ^'.$parameter.'_'.'"';
}
} else {