diff --git a/src/ax_interface/mib.py b/src/ax_interface/mib.py index 9aa9b7d62..5cfd39e2c 100644 --- a/src/ax_interface/mib.py +++ b/src/ax_interface/mib.py @@ -311,7 +311,9 @@ class MIBTable(dict): Simplistic LUT for Get/GetNext OID. Interprets iterables as keys and implements the same interfaces as dict's. """ - def __init__(self, mib_cls, enable_dynamic_frequency, update_frequency=DEFAULT_UPDATE_FREQUENCY): + def __init__(self, mib_cls, + enable_dynamic_frequency=DEFAULT_ENABLE_DYNAMIC_FREQUENCY, + update_frequency=DEFAULT_UPDATE_FREQUENCY): if type(mib_cls) is not MIBMeta: raise ValueError("Supplied object is not a MIB class instance.") super().__init__(getattr(mib_cls, MIBMeta.KEYSTORE)) diff --git a/tests/test_agent.py b/tests/test_agent.py index 6b16e0cd1..92e5ff7b7 100644 --- a/tests/test_agent.py +++ b/tests/test_agent.py @@ -22,6 +22,6 @@ async def delayed_shutdown(self, agent): def test_agent_loop(self): event_loop = asyncio.get_event_loop() - agent = ax_interface.Agent(SonicMIB, 5, event_loop) + agent = ax_interface.Agent(SonicMIB, False, 5, event_loop) event_loop.create_task(self.delayed_shutdown(agent)) event_loop.run_until_complete(agent.run_in_event_loop())