Allows for using the module without peering-manager
This commit is contained in:
parent
0946f18ddb
commit
4b7c914633
|
|
@ -24,14 +24,15 @@ import re
|
|||
import tempfile
|
||||
import textfsm
|
||||
import vyattaconfparser
|
||||
try:
|
||||
import logging
|
||||
logger = logging.getLogger("peering.manager.peering")
|
||||
|
||||
import logging
|
||||
logger = logging.getLogger("peering.manager.peering")
|
||||
|
||||
from django.core.cache import cache
|
||||
|
||||
cache.clear()
|
||||
from django.core.cache import cache
|
||||
|
||||
cache.clear()
|
||||
except Exception:
|
||||
pass
|
||||
# NAPALM base
|
||||
import napalm.base.constants as C
|
||||
from napalm.base.base import NetworkDriver
|
||||
|
|
|
|||
Loading…
Reference in New Issue