Feature: /export with a term match
Posted: Thu Mar 10, 2016 11:47 am
I would like to ask that some more power be added to the export facility on the Mikrotik to include the ability to match particular configuration only and with their respective grouping. This would allow one to filter all configuration that matches a particular term which could be an ip, comment, interface etc.
For example,
You have applied a comment to each configuration attribute related to a customers configuration. You would like to only export the configuration where this comment is matched but in the same way also include the group configuration headers.
-------OUTPUT----------
For example,
You have applied a comment to each configuration attribute related to a customers configuration. You would like to only export the configuration where this comment is matched but in the same way also include the group configuration headers.
Code: Select all
/export where comment="CUSTOMER"
Code: Select all
/interface ethernet
set [ find default-name=ether1 ] comment="CUSTOMER" name=ether2
/ip address
add address=192.168.1.1/24 comment=CUSTOMER interface=ether2 network=192.168.1.0