summaryrefslogtreecommitdiff
path: root/spec/ospf/vyos1_script.sh
diff options
context:
space:
mode:
authorYuya Kusakabe <yuya.kusakabe@gmail.com>2017-09-22 21:28:13 +0900
committerGitHub <noreply@github.com>2017-09-22 21:28:13 +0900
commit17fa6b1b227b3c46df8a344b88dfc559f2ad258a (patch)
treee8504025cc12dbc9dcf47eec7d5ac73824f7d0ad /spec/ospf/vyos1_script.sh
parent4110d2e31dc5403f4061d65161793b6accabb2b8 (diff)
parent1a32090164ba83424d0f8163b50328ef52ec4350 (diff)
downloadvyos-integration-test-17fa6b1b227b3c46df8a344b88dfc559f2ad258a.tar.gz
vyos-integration-test-17fa6b1b227b3c46df8a344b88dfc559f2ad258a.zip
Merge pull request #2 from micho7/feature/add-ospf
added ospf ipv4 test
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