Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken navoidverify on Linux #2737

Merged
Merged
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
6 changes: 6 additions & 0 deletions bin/navoidverify
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ NAV-monitored devices.

from __future__ import print_function

import platform
import sys
from itertools import cycle
from argparse import ArgumentParser
Expand All @@ -30,6 +31,11 @@ from nav.bootstrap import bootstrap_django

bootstrap_django(__file__)

if platform.system() == "Linux":
from nav.ipdevpoll.epollreactor2 import install

install()

from nav.ipdevpoll.snmp.common import snmp_parameter_factory, SnmpError
from nav.models.manage import Netbox, ManagementProfile
from nav.ipdevpoll.snmp import snmpprotocol, AgentProxy
Expand Down