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
Code: Select all
/ip firewall filter print
/ipv6 firewall filter print
We were looking to do something like that:
Code: Select all
/$ipVersion firewall filter print
Is possible to do that with scripts?