1
0
Fork 1
mirror of https://github.com/thatmattlove/hyperglass.git synced 2026-04-17 13:28:27 +00:00

Update mikrotik.py

This commit is contained in:
Carlos Santos 2025-09-13 15:53:27 -03:00 committed by GitHub
parent 65a4b3f369
commit 63da21b504
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"),