enftables
=========

Erlang API bindings for libnftables, with JSON I/O.

Build
-----

```
$ rebar3 compile
```

Usage
-----

```
Eshell V15.2.7 (press Ctrl+G to abort, type help(). for help)
1> {ok, Tables} = enftables:run_cmd("list tables", text).
{ok,[#{<<"table">> =>
           #{<<"family">> => <<"inet">>,<<"handle">> => 9,
             <<"name">> => <<"filter">>}}]}

2> enftables:run_cmd([#{list => #{tables => null}}]).
{ok,[#{<<"table">> =>
           #{<<"family">> => <<"inet">>,<<"handle">> => 9,
             <<"name">> => <<"filter">>}}]}
3> enftables:run_cmd([enftables:nft_cmd_list_tables()]).
{ok,[#{<<"table">> =>
           #{<<"family">> => <<"inet">>,<<"handle">> => 9,
             <<"name">> => <<"filter">>}}]}
```
