summaryrefslogtreecommitdiff
path: root/routers/juniper.php
diff options
context:
space:
mode:
Diffstat (limited to 'routers/juniper.php')
-rw-r--r--routers/juniper.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/routers/juniper.php b/routers/juniper.php
index 3e04921..7ec2470 100644
--- a/routers/juniper.php
+++ b/routers/juniper.php
@@ -76,11 +76,11 @@ final class Juniper extends Router {
case 'as-path-regex':
if (match_aspath_regex($parameter)) {
- if (!$this->global_config['misc']['disable_ipv6']) {
+ if (!$this->config['disable_ipv6']) {
$commands[] = 'show route aspath-regex "'.$parameter.
'" protocol bgp table inet6.0';
}
- if (!$this->global_config['misc']['disable_ipv4']) {
+ if (!$this->config['disable_ipv4']) {
$commands[] = 'show route aspath-regex "'.$parameter.
'" protocol bgp table inet.0';
}
@@ -91,11 +91,11 @@ final class Juniper extends Router {
case 'as':
if (match_as($parameter)) {
- if (!$this->global_config['misc']['disable_ipv6']) {
+ if (!$this->config['disable_ipv6']) {
$commands[] = 'show route aspath-regex "^'.$parameter.
' .*" protocol bgp table inet6.0';
}
- if (!$this->global_config['misc']['disable_ipv4']) {
+ if (!$this->config['disable_ipv4']) {
$commands[] = 'show route aspath-regex "^'.$parameter.
' .*" protocol bgp table inet.0';
}