Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
$config->{$dev_name} = $dev;
$config->{$dev_name} = $dev;
- } else { # connect nodes to devices
+ } elsif ($command eq 'connect') { # connect nodes to devices
die "device '$dev_name' must be declared before you can connect to it\n"
if !$config->{$dev_name};
die "device '$dev_name' must be declared before you can connect to it\n"
if !$config->{$dev_name};
$sdev->{node_args}->{$node} = $arg_array;
$config->{$dev_name}->{sub_devs}->{$dev_number} = $sdev;
$sdev->{node_args}->{$node} = $arg_array;
$config->{$dev_name}->{sub_devs}->{$dev_number} = $sdev;
+ # } elsif ($command eq 'fence_all') { # FIXME: TODO
+ } else {
+ die "command '$command' not implemented!";