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:
parent
65a4b3f369
commit
63da21b504
1 changed files with 12 additions and 0 deletions
|
|
@ -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"),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue