\PluginFusioninventoryNetworkPort

Manage the network ports display and parse the inventory to add / update in database.

Summary

Methods
Properties
Constants
getSearchOptions()
loadNetworkport()
disconnectDB()
addVlan()
getUniqueObjectfieldsByportID()
getValue()
getNetworkPortsID()
getPortIDfromDeviceIP()
getPortIDfromSysmacandPortnumber()
isPortHasMultipleMac()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$portDB
$portModif
$plugin_fusinvsnmp_networkports_id
$portVlans
N/A

Properties

$portDB

$portDB : array

Initialize the port of database

Type

array

$portModif

$portModif : array

Initialize the port information from inventory

Type

array

$plugin_fusinvsnmp_networkports_id

$plugin_fusinvsnmp_networkports_id : integer

Initialize network port id

Type

integer

$portVlans

$portVlans : array

Initialize VLANs (number and name) of port

Type

array

Methods

getSearchOptions()

getSearchOptions() : array

Get search function for the class

Returns

array

loadNetworkport()

loadNetworkport(integer  $networkports_id) 

Load an optionnaly existing port

Parameters

integer $networkports_id

disconnectDB()

disconnectDB(  $p_port) : \nothing

Disconnect a port in DB

Parameters

$p_port

Port id to disconnect

Returns

\nothing

addVlan()

addVlan(  $p_number,   $p_name) : \nothing

Add vlan

Parameters

$p_number

Vlan number

$p_name

Vlan name

Returns

\nothing

getUniqueObjectfieldsByportID()

getUniqueObjectfieldsByportID(integer  $id) : array

Get unique object fields by id of network port

Parameters

integer $id

Returns

array

getValue()

getValue(string  $name) : string

Get a value

Parameters

string $name

Returns

string

getNetworkPortsID()

getNetworkPortsID() : integer

Get the network port id

Returns

integer

getPortIDfromDeviceIP()

getPortIDfromDeviceIP(string  $IP, string  $ifDescr, string  $sysdescr, string  $sysname, string  $model) : integer

Search networkport with IP and ifdescr

Parameters

string $IP
string $ifDescr
string $sysdescr
string $sysname
string $model

Returns

integer

getPortIDfromSysmacandPortnumber()

getPortIDfromSysmacandPortnumber(string  $sysmac, integer  $ifnumber, array  $params = array()) : integer

Find a port of a device with MAC address and port number (from LLDP information)

Parameters

string $sysmac
integer $ifnumber
array $params

Returns

integer

isPortHasMultipleMac()

isPortHasMultipleMac(integer  $networkports_id) : boolean

Function used to detect if port has multiple mac connected

Parameters

integer $networkports_id

Returns

boolean