mirror of
https://github.com/thatmattlove/hyperglass.git
synced 2026-01-17 00:38:06 +00:00
Update mikrotik.py (#292)
Fixed Mikrotik_BGPRoute to print all routes that contain {target} instead of having to be an exact match to {target}.
This commit is contained in:
parent
2ba8b2c67c
commit
e6e11ee058
1 changed files with 2 additions and 2 deletions
|
|
@ -27,12 +27,12 @@ Mikrotik_BGPRoute = BuiltinDirective(
|
|||
RuleWithIPv4(
|
||||
condition="0.0.0.0/0",
|
||||
action="permit",
|
||||
command="ip route print where dst-address={target}",
|
||||
command="ip route print where {target} in dst-address",
|
||||
),
|
||||
RuleWithIPv6(
|
||||
condition="::/0",
|
||||
action="permit",
|
||||
command="ipv6 route print where dst-address={target}",
|
||||
command="ipv6 route print where {target} in dst-address",
|
||||
),
|
||||
],
|
||||
field=Text(description="IP Address, Prefix, or Hostname"),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue