add a remote_dns port property
This commit is contained in:
@@ -387,6 +387,14 @@ Returns the interface index (C<ifIndex>) of the port.
|
||||
|
||||
sub ifindex { return (shift)->get_column('ifindex') }
|
||||
|
||||
=head2 remote_dns
|
||||
|
||||
Returns a hostname resolved from C<remote_ip> column.
|
||||
|
||||
=cut
|
||||
|
||||
sub remote_dns { return (shift)->get_column('remote_dns') }
|
||||
|
||||
=head2 remote_inventory
|
||||
|
||||
Returns a synthesized description of the remote LLDP device if inventory
|
||||
|
||||
@@ -27,6 +27,8 @@ __PACKAGE__->add_columns(
|
||||
{ data_type => "text", is_nullable => 1 },
|
||||
"remote_serial",
|
||||
{ data_type => "text", is_nullable => 1 },
|
||||
"remote_dns",
|
||||
{ data_type => "text", is_nullable => 1 },
|
||||
"raw_speed",
|
||||
{ data_type => "bigint", default_value => 0, is_nullable => 1 },
|
||||
"faststart",
|
||||
|
||||
@@ -136,6 +136,8 @@ will add the following additional synthesized columns to the result set:
|
||||
|
||||
=item remote_is_phone (boolean)
|
||||
|
||||
=item remote_dns
|
||||
|
||||
=item ifindex
|
||||
|
||||
=back
|
||||
@@ -154,11 +156,12 @@ sub with_properties {
|
||||
properties.remote_is_discoverable
|
||||
properties.remote_is_wap
|
||||
properties.remote_is_phone
|
||||
properties.remote_dns
|
||||
properties.ifindex
|
||||
/],
|
||||
'+as' => [qw/
|
||||
error_disable_cause
|
||||
remote_is_discoverable remote_is_wap remote_is_phone
|
||||
remote_is_discoverable remote_is_wap remote_is_phone remote_dns
|
||||
ifindex
|
||||
/],
|
||||
join => 'properties',
|
||||
|
||||
Reference in New Issue
Block a user