cvicente / Netdot

Network Documentation Tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

updatedevice halts with ERROR: 00005E000150 is VRRP

nicolatron opened this issue · comments

When getting forwarding table from an H3C switch via CLI. Process is halted with this error:

DEBUG - PhysAddr::format_address_db: MAC address (0000:5e00:0150) formatted for DB storage to: 00005E000150
ERROR: 00005E000150 is VRRP

It seems to come from ./lib/Netdot/Model/PhysAddr.pm (sub validate)

    elsif ( $addr =~ /^00005E00/io ){
        $class->throw_user("$displ is VRRP");
    }

throw_user is defined in lib/Netdot.pm

sub throw_user {
    my ($self, $msg) = @_;
    my $logger = $class->{_log}->get_logger('Netdot');
    $logger->error($msg);
    return Netdot::Util::Exception::User->throw(message=>$msg);
}

Not sure if halting the updatedevice process is the expected behavour, seems a bit drastic. For now i guess I'll just filter that kind of macs in my CLI/H3C.pm.

Best regards.