OVSBond was missing
OvsintPort under ethx interfaces
loopback => 100000,
eth => 200000,
OVSPort => 200000,
loopback => 100000,
eth => 200000,
OVSPort => 200000,
- OVSIntPort => 200000,
- bond => 300000,
- bridge => 400000,
- OVSBridge => 400000,
- vlan => 500000,
- vxlan => 500000,
+ OVSIntPort => 300000,
+ OVSBond => 400000,
+ bond => 400000,
+ bridge => 500000,
+ OVSBridge => 500000,
+ vlan => 600000,
+ vxlan => 600000,
};
my $lookup_type_prio = sub {
};
my $lookup_type_prio = sub {
/proc/net/dev
r(load('brbase'));
/proc/net/dev
r(load('brbase'));
+iface eth4 inet manual
+
+iface eth5 inet manual
+
+iface eth4 inet manual
+
+iface eth5 inet manual
+
+iface eth4 inet manual
+
+iface eth5 inet manual
+
+iface eth4 inet manual
+
+iface eth5 inet manual
+
+$config->{ifaces}->{vmbr6} = {
+ ovs_mtu => 1400,
+ type => 'OVSBridge',
+ ovs_ports => 'bond1 ovsintvlan',
+ method => 'manual',
+ families => ['inet'],
+ autostart => 1
+};
+
+$config->{ifaces}->{bond1} = {
+ ovs_mtu => 1300,
+ type => 'OVSBond',
+ ovs_bridge => 'vmbr6',
+ ovs_bonds => 'eth4 eth5',
+ ovs_options => 'bond_mode=active-backup',
+ method => 'manual',
+ families => ['inet'],
+ autostart => 1
+};
+
+$config->{ifaces}->{ovsintvlan} = {
+ ovs_mtu => 1300,
+ type => 'OVSIntPort',
+ ovs_bridge => 'vmbr6',
+ ovs_options => 'tag=14',
+ method => 'manual',
+ families => ['inet'],
+ autostart => 1
+};
+
expect load('loopback') . <<"CHECK";
source-directory interfaces.d
expect load('loopback') . <<"CHECK";
source-directory interfaces.d
+iface eth4 inet manual
+
+iface eth5 inet manual
+
auto eth1.100
iface eth1.100 inet manual
mtu 1400
auto eth1.100
iface eth1.100 inet manual
mtu 1400
+allow-vmbr6 ovsintvlan
+iface ovsintvlan inet manual
+ ovs_type OVSIntPort
+ ovs_bridge vmbr6
+ ovs_mtu 1300
+ ovs_options tag=14
+
+allow-vmbr6 bond1
+iface bond1 inet manual
+ ovs_bonds eth4 eth5
+ ovs_type OVSBond
+ ovs_bridge vmbr6
+ ovs_mtu 1300
+ ovs_options bond_mode=active-backup
+
auto bond0.100
iface bond0.100 inet manual
mtu 1300
auto bond0.100
iface bond0.100 inet manual
mtu 1300
+allow-ovs vmbr6
+iface vmbr6 inet manual
+ ovs_type OVSBridge
+ ovs_ports bond1 ovsintvlan
+ ovs_mtu 1400
+
auto vmbr1.100
iface vmbr1.100 inet manual
mtu 1300
auto vmbr1.100
iface vmbr1.100 inet manual
mtu 1300
+iface eth4 inet manual
+
+iface eth5 inet manual
+
auto vmbr0
iface vmbr0 inet static
address 10.0.0.2/24
auto vmbr0
iface vmbr0 inet static
address 10.0.0.2/24