Compare commits
2 Commits
d3723352a7
...
439712479c
| Author | SHA1 | Date | |
|---|---|---|---|
| 439712479c | |||
| fc99d52341 |
@@ -23,9 +23,8 @@ from enum import Enum
|
|||||||
import asyncio
|
import asyncio
|
||||||
import subprocess
|
import subprocess
|
||||||
import re
|
import re
|
||||||
import os
|
|
||||||
|
|
||||||
from backend.src.Models.ip_protocol import IPProtocolEnum, protocol_from_number
|
from src.Models.ip_protocol import IPProtocolEnum, protocol_from_number
|
||||||
|
|
||||||
# ---------------------- main module (resilient wrapper + API) ----------------------
|
# ---------------------- main module (resilient wrapper + API) ----------------------
|
||||||
# Try to import NFTables binding (various pyroute2 layouts)
|
# Try to import NFTables binding (various pyroute2 layouts)
|
||||||
@@ -38,7 +37,7 @@ except Exception:
|
|||||||
NFTablesBinding = None # will fall back to subprocess wrapper
|
NFTablesBinding = None # will fall back to subprocess wrapper
|
||||||
|
|
||||||
# Router + logger
|
# Router + logger
|
||||||
router = APIRouter(prefix="/nft", tags=["nftables"])
|
router = APIRouter()
|
||||||
logger = logging.getLogger("nftables")
|
logger = logging.getLogger("nftables")
|
||||||
logger.debug("nftables router module loaded")
|
logger.debug("nftables router module loaded")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user