summaryrefslogtreecommitdiff
path: root/spec/ospf/vyos3_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/vyos3_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/vyos3_script.sh')
-rw-r--r--spec/ospf/vyos3_script.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/ospf/vyos3_script.sh b/spec/ospf/vyos3_script.sh
new file mode 100644
index 0000000..3db2539
--- /dev/null
+++ b/spec/ospf/vyos3_script.sh
@@ -0,0 +1,12 @@
+#!/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 static route 10.0.3.0/24 next-hop 10.0.2.11
+
+commit
+save