I am using the Rundeck job options in order to receive variables/commands which will be re-used by a script for the configuration of Cisco routers. One of the tasks to be carried out is to configure an access-lists or NAT entries. The syntax of these commands to send to the routers is shown in the examples below. I have provided below an example of an access-list and NAT commands with for 4 entries but it could be 40 entries for each.
Access list example:
10 ip permit 220.127.116.11 0.0.15.255 10.0.0.0 0.255.255.255 <--- acces-list entry example
20 ip permit 192.168.0.0 0.0.0.255 10.0.0.0 0.255.255.255
40 ip deny 18.104.22.168 0.0.255.255 192.168.24.0 0.0.0.255
30 ip permit host 22.214.171.124 host 126.96.36.199
ip nat inside source static 10.10.10.1 172.16.131.1 <--- NAT entry example
ip nat inside source static 10.10.10.2 172.16.131.2
ip nat inside source static 10.10.10.3 172.16.131.3
ip nat inside source static 10.10.10.4 172.16.131.4
As you would note using an access-list or a NAT with 20 or 40 entries is not manageable with the multi-valued job option. Is there a block text job option that could be used for such input? That could allow the return a list on which I could iterate in order to recover each entry one by one?
Thank you for any feedback.