From 63da21b504fdc3e4d8bbc72e02e4396849a470a9 Mon Sep 17 00:00:00 2001 From: Carlos Santos <125412989+CarlosSuporteISP@users.noreply.github.com> Date: Sat, 13 Sep 2025 15:53:27 -0300 Subject: [PATCH] Update mikrotik.py --- hyperglass/defaults/directives/mikrotik.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hyperglass/defaults/directives/mikrotik.py b/hyperglass/defaults/directives/mikrotik.py index 56cbe5c..4f05c28 100644 --- a/hyperglass/defaults/directives/mikrotik.py +++ b/hyperglass/defaults/directives/mikrotik.py @@ -32,12 +32,18 @@ Mikrotik_BGPRoute = BuiltinDirective( ge="8", le="32", action="permit", + # v7 command="routing route print detail without-paging where {target} in dst-address bgp and dst-address !=0.0.0.0/0", + # v6 + #command="ip route print detail without-paging where {target} in dst-address bgp and dst-address !=0.0.0.0/0", ), RuleWithIPv6( condition="::/0", action="permit", + # v7 command="routing route print detail without-paging where {target} in dst-address bgp and dst-address !=::/0", + # v6 + #command="ipv6 route print detail without-paging where {target} in dst-address bgp and dst-address !=::/0", ), ], field=Text(description="IP Address, Prefix, or Hostname"), @@ -189,7 +195,10 @@ MikrotikBGPRouteTable = BuiltinDirective( ge="8", le="32", action="permit", + # v7 command="routing route print detail without-paging where {target} in dst-address bgp and dst-address !=0.0.0.0/0", + # v6 + #command="ip route print detail without-paging where {target} in dst-address bgp and dst-address !=0.0.0.0/0", ), # REGRA DENY SITE LOCAL DEPRECIADO RFC 3879 RuleWithIPv6( @@ -242,7 +251,10 @@ MikrotikBGPRouteTable = BuiltinDirective( RuleWithIPv6( condition="::/0", action="permit", + # v7 command="routing route print detail without-paging where {target} in dst-address bgp and dst-address !=::/0", + # v6 + #command="ipv6 route print detail without-paging where {target} in dst-address bgp and dst-address !=::/0", ), ], field=Text(description="IP Address, Prefix, or Hostname"),