Oliver Gorwits > App-Netdisco-2.025000_001 > App::Netdisco::DB::ResultSet::Node

Download:
App-Netdisco-2.025000_001.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Source   Latest Release: App-Netdisco-2.029007

ADDITIONAL METHODS ^

search_by_mac( \%cond, \%attrs? )

 my $set = $rs->search_by_mac({mac => '00:11:22:33:44:55', active => 1});

Like search(), this returns a ResultSet of matching rows from the Node table.

To limit results only to active nodes, set {active => 1} in cond.

SPECIAL METHODS ^

delete( \%options? )

Overrides the built-in DBIx::Class delete method to more efficiently handle the removal or archiving of nodes.

with_multi_ips_as_hashref

This is a modifier for search() which returns a list of hash references for nodes within the search criteria with multiple IP addresses. Each hash reference contains the keys:

mac

Node MAC address.

switch

IP address of the device where the node is attached.

port

Port on the device where the node is attached.

dns

DNS name of the device where the node is attached.

name

sysName of the device where the node is attached.

ip_count

Count of IP addresses associated with the node.

vendor

Vendor string based upon the node OUI.

syntax highlighting: