mirror of
https://github.com/napalm-automation-community/napalm-vyos.git
synced 2026-09-22 20:21:16 +00:00
Allows for using the module without peering-manager
This commit is contained in:
@@ -24,14 +24,15 @@ import re
|
|||||||
import tempfile
|
import tempfile
|
||||||
import textfsm
|
import textfsm
|
||||||
import vyattaconfparser
|
import vyattaconfparser
|
||||||
|
try:
|
||||||
|
import logging
|
||||||
|
logger = logging.getLogger("peering.manager.peering")
|
||||||
|
|
||||||
import logging
|
from django.core.cache import cache
|
||||||
logger = logging.getLogger("peering.manager.peering")
|
|
||||||
|
|
||||||
from django.core.cache import cache
|
|
||||||
|
|
||||||
cache.clear()
|
|
||||||
|
|
||||||
|
cache.clear()
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
# NAPALM base
|
# NAPALM base
|
||||||
import napalm.base.constants as C
|
import napalm.base.constants as C
|
||||||
from napalm.base.base import NetworkDriver
|
from napalm.base.base import NetworkDriver
|
||||||
|
|||||||
Reference in New Issue
Block a user