Macros in in configuration mode


#1

Hi !

It would be nice to have macros feature.
Many repetitive code snippets like IP addresses, port list, port ranges, protocol lists can have meaningful aliases. It will allow to considerably reduce typing time and make it less prone to errors.

set macro WAN_IP1 xx.xx.xx.xx
set macro WAN_IP2 yy.yy.yy.yy

set macro WAN1_ETH_INTF eth0

set macro MY_ISPCONFIG_SERVER_PORTS ‘http,https,ftp,smtp,smtps,pop3,pop3s’

Since system runs in bash shell, it should not be a problem.