Hello everyone,
We are making a script to configure our MikroTik’s firewalls, but we have an issue including vars within the path.
Our firewalls filters are pretty the same for IPv4 and IPv6, only address lists are different.
So we don’t want to make a script for each and it look an useless if/else to select the path, so we are looking if it is possible to add a var into the path.
Example
/ip firewall filter print
/ipv6 firewall filter print
have only difference of /ip | /ipv6
We were looking to do something like that:
/$ipVersion firewall filter print
But it doesn’t work…
Is possible to do that with scripts?