summaryrefslogtreecommitdiff
path: root/spec/interface_script.erb
diff options
context:
space:
mode:
authorYuya Kusakabe <yuya.kusakabe@gmail.com>2017-01-16 23:12:09 +0900
committerYuya Kusakabe <yuya.kusakabe@gmail.com>2017-01-16 23:21:07 +0900
commitc4d05c44e50a7ce29a721231073105791e5924b9 (patch)
tree41cbf68d9539e9b28b6b9470cca96a1209919b1f /spec/interface_script.erb
parent7a5b02d617568aed329aca249bc279d9756a7373 (diff)
downloadvyos-integration-test-c4d05c44e50a7ce29a721231073105791e5924b9.tar.gz
vyos-integration-test-c4d05c44e50a7ce29a721231073105791e5924b9.zip
Add bgp6 test
Diffstat (limited to 'spec/interface_script.erb')
-rw-r--r--spec/interface_script.erb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/interface_script.erb b/spec/interface_script.erb
new file mode 100644
index 0000000..d2000e7
--- /dev/null
+++ b/spec/interface_script.erb
@@ -0,0 +1,10 @@
+#!/bin/vbash
+
+source /opt/vyatta/etc/functions/script-template
+
+<% configs[host][:networks].keys.each_with_index do |net, i| %>
+set interface ethernet eth<%= i+1 %> address <%= configs[host][:networks][net] %>
+<% end %>
+
+commit
+save