1
0
Fork 1
mirror of https://github.com/thatmattlove/hyperglass.git synced 2026-01-17 08:48:05 +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:
GrandArcher 2025-06-06 05:36:54 -04:00 committed by GitHub
parent 2ba8b2c67c
commit e6e11ee058
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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