add handke output
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 8s

This commit is contained in:
2026-01-11 17:54:37 +01:00
parent 80030ec07c
commit 73a945dbe3

View File

@@ -268,7 +268,7 @@ def build_handle_text_map(family: str, table: str, chain: str) -> Dict[int, str]
If the textual output cannot be retrieved, raises HTTPException. If the textual output cannot be retrieved, raises HTTPException.
""" """
ensure_nft_available() ensure_nft_available()
cmd = [NFT_BIN, "list", "chain", family, table, chain] cmd = [NFT_BIN, "--handle", "list", "chain", family, table, chain]
logger.debug("Listing chain text: %s", " ".join(cmd)) logger.debug("Listing chain text: %s", " ".join(cmd))
try: try:
out = subprocess.check_output(cmd, stderr=subprocess.PIPE).decode() out = subprocess.check_output(cmd, stderr=subprocess.PIPE).decode()