Skip to content

Port range in sets #562

Description

@qdeslandes

Allow users to specify a port range in sets:

[...]
rule
    (tcp.dport) in { 11, 22, 33-44 }
    [...]

This rule would be converted to a set containing { 11, 22, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44 }.

That being said, what should be printed by bfcli ruleset get when printing such a set? Should we try to factorize the elements to print the range (keeping in mind the sets are not sorted)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions