forked from stove/dataset
18 lines
494 B
Text
18 lines
494 B
Text
|
%echo "#!/bin/bash"
|
||
|
|
||
|
%set %%name = %%normalize_family(%%rougail_variable)
|
||
|
%set %%container = %%machined['machine_' + %%name]
|
||
|
%set zones = %%container['zones_' + %%name]
|
||
|
%if %%len(%%zones) > 1
|
||
|
%for %%idx, %%zone in %%enumerate(%%zones)
|
||
|
%if not %%idx
|
||
|
%continue
|
||
|
%end if
|
||
|
%set %%intname = "vc-" + %%str(%%idx) + %%rougail_variable
|
||
|
echo "configuration de %intname"
|
||
|
/usr/sbin/ip link set dev %%intname[:15] master %%zone
|
||
|
/usr/sbin/ip link set dev %%intname[:15] up
|
||
|
%end for
|
||
|
%end if
|
||
|
exit 0
|