Commit 99dee6c3 authored by Dietmar Maurer's avatar Dietmar Maurer

check if ovs is installed when creation ovs network components

parent 6778c850
......@@ -241,6 +241,11 @@ __PACKAGE__->register_method({
$param->{method} = $param->{address} ? 'static' : 'manual';
if ($param->{type} =~ m/^OVS/) {
-x '/usr/bin/ovs-vsctl' ||
die "Open VSwitch is not installed (need package 'openvswitch-switch')\n";
}
if ($param->{type} eq 'OVSIntPort' || $param->{type} eq 'OVSBond') {
my $brname = $param->{ovs_bridge};
raise_param_exc({ ovs_bridge => "parameter is required" }) if !$brname;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment