mirror of
https://github.com/thatmattlove/hyperglass.git
synced 2026-04-17 21:38: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",
|
ge="8",
|
||||||
le="32",
|
le="32",
|
||||||
action="permit",
|
action="permit",
|
||||||
|
# v7
|
||||||
command="routing route print detail without-paging where {target} in dst-address bgp and dst-address !=0.0.0.0/0",
|
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(
|
RuleWithIPv6(
|
||||||
condition="::/0",
|
condition="::/0",
|
||||||
action="permit",
|
action="permit",
|
||||||
|
# v7
|
||||||
command="routing route print detail without-paging where {target} in dst-address bgp and dst-address !=::/0",
|
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"),
|
field=Text(description="IP Address, Prefix, or Hostname"),
|
||||||
|
|
@ -189,7 +195,10 @@ MikrotikBGPRouteTable = BuiltinDirective(
|
||||||
ge="8",
|
ge="8",
|
||||||
le="32",
|
le="32",
|
||||||
action="permit",
|
action="permit",
|
||||||
|
# v7
|
||||||
command="routing route print detail without-paging where {target} in dst-address bgp and dst-address !=0.0.0.0/0",
|
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
|
# REGRA DENY SITE LOCAL DEPRECIADO RFC 3879
|
||||||
RuleWithIPv6(
|
RuleWithIPv6(
|
||||||
|
|
@ -242,7 +251,10 @@ MikrotikBGPRouteTable = BuiltinDirective(
|
||||||
RuleWithIPv6(
|
RuleWithIPv6(
|
||||||
condition="::/0",
|
condition="::/0",
|
||||||
action="permit",
|
action="permit",
|
||||||
|
# v7
|
||||||
command="routing route print detail without-paging where {target} in dst-address bgp and dst-address !=::/0",
|
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"),
|
field=Text(description="IP Address, Prefix, or Hostname"),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue