support for storing remote_is_discoverable on a port

This commit is contained in:
Oliver Gorwits
2022-05-15 22:17:36 +01:00
parent 96f3923ab0
commit 1a810d89f3
5 changed files with 21 additions and 2 deletions

View File

@@ -331,6 +331,15 @@ state, or else `undef` if the port is not in an error state.
sub error_disable_cause { return (shift)->get_column('error_disable_cause') }
=head2 remote_is_discoverable
Returns true if Netdisco is permitted to discover the remote device with
the configuration of the local poller doing the local device discovery.
=cut
sub remote_is_discoverable { return (shift)->get_column('remote_is_discoverable') }
=head2 remote_is_wap
Returns true if the remote LLDP neighbor has reported Wireless Access Point

View File

@@ -13,6 +13,8 @@ __PACKAGE__->add_columns(
{ data_type => "text", is_nullable => 0 },
"error_disable_cause",
{ data_type => "text", is_nullable => 1 },
"remote_is_discoverable",
{ data_type => "boolean", default_value => \"true", is_nullable => 1 },
"remote_is_wap",
{ data_type => "boolean", default_value => \"false", is_nullable => 1 },
"remote_is_phone",