Debian / debiman

debiman generates a static manpage HTML repository out of a Debian archive
Apache License 2.0
185 stars 46 forks source link

nftables.Nftables() class instance is unusable if ONE call to json_cmd() fails #126

Closed remi-cbd closed 3 years ago

remi-cbd commented 3 years ago

In a python3 program, using the nftables python module

Trying to get a Table on an empty Ruleset returns an error, no problem. Trying to call another function on the same nftables.Nftables class instance after a function which returns an error (rc != 0) is not possible, any other call to json_cmd() just fails after the first error.

Here is a script showing the error

testNFTABLES.txt

stapelberg commented 3 years ago

You’re in the wrong place. This repository is about debiman, a manual page (documentation) static site generator.

You seem to be looking for an nftables-related repository instead.

remi-cbd commented 3 years ago

You are right, i followed the FAQ link in bottom of this page : https://manpages.debian.org/unstable/libnftables1/libnftables-json.5.en.html