From e6e11ee058dfc9e437ab557cd74ddb25cb1d773e Mon Sep 17 00:00:00 2001 From: GrandArcher Date: Fri, 6 Jun 2025 05:36:54 -0400 Subject: [PATCH] Update mikrotik.py (#292) Fixed Mikrotik_BGPRoute to print all routes that contain {target} instead of having to be an exact match to {target}. --- hyperglass/defaults/directives/mikrotik.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hyperglass/defaults/directives/mikrotik.py b/hyperglass/defaults/directives/mikrotik.py index 16c948a..4ea96fd 100644 --- a/hyperglass/defaults/directives/mikrotik.py +++ b/hyperglass/defaults/directives/mikrotik.py @@ -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"),