blob: 1bfda78fa1faf625cb51d31ceae894da48d9ec11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
<% configs[host][:networks].keys.each_with_index do |net, i| %>
set interface ethernet eth<%= i+1 %> address <%= configs[host][:networks][net] %>
<% end %>
commit
save
|