remove die() calls

This commit is contained in:
Oliver Gorwits
2017-10-07 11:39:17 +01:00
parent b8108986fb
commit 08b34e083d
3 changed files with 5 additions and 7 deletions

View File

@@ -152,7 +152,7 @@ sub get_vlan_list {
my $device = shift;
my $snmp = App::Netdisco::Transport::SNMP->reader_for($device)
or die "macsuck failed: could not SNMP connect to $device";
or return (); # already checked!
return () unless $snmp->cisco_comm_indexing;
@@ -269,7 +269,7 @@ sub walk_fwtable {
my $cache = {};
my $snmp = App::Netdisco::Transport::SNMP->reader_for($device)
or die "macsuck failed: could not SNMP connect to $device";
or return $cache; # already checked!
my $fw_mac = $snmp->fw_mac;
my $fw_port = $snmp->fw_port;