google / google/nftables

[FEATURE] AST for .nft files

Open
#280 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
1.4k
Forks
184
PR merge metrics
No merged PRs in 30d

Description

It'd be useful, I think, to implement an AST for the `.nft` syntax files (e.g. [nftables scripts](https://wiki.nftables.org/wiki-nftables/index.php/Scripting)), and populating them as native types.

This would allow for rule evaluation and comparison against the current ruleset, identifying which file a rule is created in/included from, and even dumping representations to NFT snytax.

This would likely assist in tests and mocking as well.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.