beacons: fix pyroute2 import statement

Use public "root" imports -- `from pyroute2 import ...`

The public API is guaranteed to stay the same despite any
internal layout changes.

Bug-Url: https://github.com/saltstack/salt/issues/34978
This commit is contained in:
Peter V. Saveliev 2016-08-09 12:29:21 +02:00
parent fe7c399b54
commit 3fa9c10136

View File

@ -8,7 +8,7 @@ Beacon to monitor network adapter setting changes on Linux
from __future__ import absolute_import
# Import third party libs
try:
from pyroute2.ipdb import IPDB
from pyroute2 import IPDB
IP = IPDB()
HAS_PYROUTE2 = True
except ImportError: