#!/bin/vbash
# Clear malformed opaque LSAs introduced by EdgeOS
# Author: DakotaPro Engineering
# Version: 1.0
# License: Proprietary - Internal Use Only

source /opt/vyatta/etc/functions/script-template

configure

# Disable and re-enable OSPF to flush all opaque LSAs
delete protocols ospf parameters opaque-lsa
commit

set protocols ospf parameters opaque-lsa
commit

delete protocols ospf parameters opaque-lsa
commit

exit

