my $raw = '';
$raw .= "iface $iface $family " . $d->{"method$suffix"} . "\n";
- $raw .= "\taddress " . $d->{"address$suffix"} . "\n" if $d->{"address$suffix"};
- $raw .= "\tgateway " . $d->{"gateway$suffix"} . "\n" if $d->{"gateway$suffix"};
+ $raw .= "\taddress " . $d->{"address$suffix"} . "\n" if $d->{"address$suffix"};
+ $raw .= "\tgateway " . $d->{"gateway$suffix"} . "\n" if $d->{"gateway$suffix"};
my $done = { type => 1, priority => 1, method => 1, active => 1, exists => 1,
comments => 1, autostart => 1, options => 1,
expect load('base') . <<"EOF";
iface vmbr0 inet static
- address $ip
- gateway $gw
+ address $ip
+ gateway $gw
bridge-ports eth0
bridge-stp off
bridge-fd 0
expect load('with-ipv4') . <<"EOF";
iface vmbr0 inet6 static
- address $ip6
- gateway $gw6
+ address $ip6
+ gateway $gw6
EOF
# bridge ports must now appear in the inet6 block
expect load('base') . <<"EOF";
iface vmbr0 inet6 static
- address $ip6
- gateway $gw6
+ address $ip6
+ gateway $gw6
bridge-ports eth0
bridge-stp off
bridge-fd 0
auto bond1
iface bond1 inet static
- address 10.10.10.$ip/24
+ address 10.10.10.$ip/24
bond-slaves eth2 eth3
bond-miimon 100
bond-mode balance-alb
# Private networking
iface unknown3 inet static
- address 0.0.0.0
+ address 0.0.0.0
iface unknown4 inet static
- address 0.0.0.0
+ address 0.0.0.0
iface unknown5 inet static
- address 0.0.0.0
+ address 0.0.0.0
auto vmbr0
iface vmbr0 inet static
- address 192.168.100.13/24
- gateway 192.168.100.1
+ address 192.168.100.13/24
+ gateway 192.168.100.1
bridge-ports bond0
bridge-stp off
bridge-fd 0
auto unknown6
iface unknown6 inet static
- address 10.10.11.13/24
+ address 10.10.11.13/24
pre-up ifconfig bond0 up
auto vmbr3