Documentation
¶
Overview ¶
snmp defines a controller that can read two values via SNMP that returns the bandwidth. Typically for use with VDSL/ADSL modems where the bitrate may change.
Index ¶
Constants ¶
View Source
const ( // ZyxelSNMPIngressOID is the OID used by Zyxel modems for the ingress rate. ZyxelSNMPIngressOID = "1.3.6.1.2.1.10.97.1.1.2.1.10.1" // ZyxelSNMPEgressOID is the OID used by Zyxel modems for the egress rate. ZyxelSNMPEgressOID = "1.3.6.1.2.1.10.97.1.1.2.1.10.2" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
snmpController defines the local information for this controller.
func NewSNMPController ¶
func NewSNMPController(ingressOID, egressOID, host string, data *datastore.Data, log *zap.SugaredLogger) Controller
NewSNMPController returns an instantiated SNMP controller.
func (Controller) Reconcile ¶
func (s Controller) Reconcile() error
Reconcile defines the reconciliation loop.
func (Controller) ReconcileDelete ¶
func (s Controller) ReconcileDelete()
ReconcileDelete defines what happens on shutdown.
Click to show internal directories.
Click to hide internal directories.