GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
App::Netdisco::Util::Port(3) User Contributed Perl Documentation App::Netdisco::Util::Port(3)

App::Netdisco::Util::Port

A set of helper subroutines to support parts of the Netdisco application.

There are no default exports, however the ":all" tag will export all subroutines.

  • Sanity check that $port is not a vlan subinterface.
  • Permission check that "vlanctl" is true in Netdisco config.

Will return nothing if these checks pass OK.

  • Permission check that "portctl_nameonly" is false in Netdisco config.
  • Permission check that "portctl_uplinks" is true in Netdisco config, if $port is an uplink.
  • Permission check that "portctl_nophones" is not true in Netdisco config, if $port has a phone connected.
  • Permission check that "portctl_vlans" is true if $port is a vlan subinterface.

Will return nothing if these checks pass OK.

Given a device IP address and a port name, returns a DBIx::Class::Row object for the Port on the Device in the Netdisco database.

The device IP can also be passed as a Device "DBIx::Class" object.

Returns "undef" if the device or port are not known to Netdisco.

Given an SNMP::Info instance for a device, and the name of a port, returns the current interface table index for that port. This can be used in further SNMP requests on attributes of the port.

Returns "undef" if there is no such port name on the device.

Given an SNMP::Info instance for a device, and the name of a port, returns the current PoE table index for the port. This can be used in further SNMP requests on PoE attributes of the port.

Returns "undef" if there is no such port name on the device.

Returns true if the $port DBIx::Class object represents a vlan subinterface.

This uses simple checks on the port type and descr, and therefore might sometimes returns a false-negative result.

Returns true if the $port DBIx::Class object has a phone connected.
2022-06-08 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.