The follow script runs as expected both manually and as a task. The default route refreshes (hackingly). This is my current workaround to T1020.
#!/bin/vbash source /opt/vyatta/etc/functions/script-template configure delete protocols ospf default-information originate always commit set protocols ospf default-information originate always commit exit
But when run by cron, it breaks the ability to edit any configuration after it runs:
admin@edge1# set system task-scheduler task bounce-ospf-default interval 3m [edit] admin@edge1# commit save [edit] admin@edge1# save Saving configuration to '/config/config.boot'... Done [edit] admin@edge1# exit exit
wait 3 minutes
admin@edge:~$ conf [edit] admin@edge1# set system task-scheduler task bounce-ospf-default interval 25m Set failed [edit]
The same thing occurs with a "save" inserted, which was my only thought about something that might be missing.
#!/bin/vbash source /opt/vyatta/etc/functions/script-template configure delete protocols ospf default-information originate always commit set protocols ospf default-information originate always commit save exit