diff --git a/docs/STRUCTURE.md b/docs/STRUCTURE.md index 45986e7..68c86f7 100644 --- a/docs/STRUCTURE.md +++ b/docs/STRUCTURE.md @@ -52,9 +52,13 @@ driver knows how each step is done on its device; the caller supplies every valu ```python class SnmpAgentMixin: def configure_snmp_agent(self, settings: SnmpAgentSettingsDict) -> FixResultDict: - steps = [self._install_snmp_agent, self._write_snmp_agent_config, - self._enable_snmp_agent, self._verify_snmp_agent] - ... # runs them in order, stops at the first failure + steps = [ + self._install_snmp_agent, + self._write_snmp_agent_config, + self._enable_snmp_agent, + self._verify_snmp_agent, + ] + ... # runs them in order, stops at the first failure # declared only; napalm-unix implements them for net-snmp def _install_snmp_agent(self) -> FixStepDict: ... @@ -95,8 +99,7 @@ proprietary OIDs declares them as data, in a class attribute of a type defined h class ProcurveDriver(SwitchDriver): SNMP_HEALTH_PROFILE: ClassVar[SnmpHealthProfile] = { "uptime": {"oids": ["1.3.6.1.4.1.11.2.14.11.1.2.4.1.5.1"], "format": "ticks"}, - "cpu": {"oids": ["1.3.6.1.4.1.11.2.14.11.5.1.9.6.1.0", - "1.3.6.1.4.1.11.2.3.7.8.6.1.0"]}, + "cpu": {"oids": ["1.3.6.1.4.1.11.2.14.11.5.1.9.6.1.0", "1.3.6.1.4.1.11.2.3.7.8.6.1.0"]}, "memory": {"total": "...", "free": "...", "unit": "bytes"}, } ```