Allows for using the module without peering-manager

This commit is contained in:
Hanarion 2025-04-20 22:51:18 +02:00 committed by GitHub
parent 0946f18ddb
commit 4b7c914633
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 6 deletions

View File

@ -24,14 +24,15 @@ import re
import tempfile
import textfsm
import vyattaconfparser
try:
import logging
logger = logging.getLogger("peering.manager.peering")
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