summaryrefslogtreecommitdiff
path: root/spec/ospf/vyos1_script.sh
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ospf/vyos1_script.sh')
-rw-r--r--spec/ospf/vyos1_script.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/ospf/vyos1_script.sh b/spec/ospf/vyos1_script.sh
new file mode 100644
index 0000000..65b1c05
--- /dev/null
+++ b/spec/ospf/vyos1_script.sh
@@ -0,0 +1,14 @@
+#!/bin/vbash
+
+if [ "$(id -g -n)" != 'vyattacfg' ] ; then
+ exec sg vyattacfg -c "/bin/vbash $(readlink -f $0) $@"
+fi
+
+source /opt/vyatta/etc/functions/script-template
+
+set protocols ospf area 0.0.0.0 network 10.0.1.0/24
+set protocols ospf area 0.0.0.0 network 10.0.2.0/24
+set protocols ospf passive-interface eth2
+
+commit
+save