nftset

package
v5.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const PluginType = "nftset"

Variables

This section is empty.

Functions

func QuickSetup

func QuickSetup(_ sequence.BQ, s string) (any, error)

QuickSetup format: [{ip|ip6|inet},table_name,set_name,{ipv4_addr|ipv6_addr},mask] *2 (can repeat once) e.g. "inet,my_table,my_set,ipv4_addr,24 inet,my_table,my_set,ipv6_addr,48"

Types

type Args

type Args struct {
	IPv4 SetArgs `yaml:"ipv4"`
	IPv6 SetArgs `yaml:"ipv6"`
}

type SetArgs

type SetArgs struct {
	TableFamily string `yaml:"table_family"`
	Table       string `yaml:"table_name"`
	Set         string `yaml:"set_name"`
	Mask        int    `yaml:"mask"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL