> + my $bridge_hash = {}; > + > + eval { $bridge_hash = read_openvswitch_config() }; > + > + die "$bridge is not an linux bridge or openvswitch switch" if > !$bridge_hash->{$bridge}; I wonder if we really need that code - can't we query /etc/network/interfaces for that instead?