Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1from .snmp import BaseSnmpPDU
4class PDU41004(BaseSnmpPDU):
5 OID_OUTLETS = "SNMPv2-SMI::enterprises.3808.1.1.3.3.3.1.1"
7 def __init__(self, name, config):
8 hostname = config.get('hostname')
10 if hostname is None:
11 raise ValueError("Config: Missing the 'hostname' parameter")
13 super().__init__(name, hostname,
14 oid_outlets_label_base=f"{self.OID_OUTLETS}.2")
16 def port_oid(self, port_id):
17 return f"{self.OID_OUTLETS}.4.{port_id}"