Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/lib/ipc/shmem/iftable_mib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ function init_snmp (objs, name, counters, directory, interval, log_date)
local logger = logger.new({ date = log_date,
module = 'iftable_mib' })
-- ifTable
--
-- Include a dummy ifIndex to signal to the SNMP agent that it
-- needs to instantiate this OID in the table. The value will be
-- discarded and replaced by the actual ifIndex by the agent.
ifTable:register('ifIndex', 'Integer32')
ifTable:register('ifDescr', 'OctetStr', objs.ifDescr)
ifTable:register('ifType', 'Integer32')
ifTable:set('ifType',
Expand Down