Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ActionToIntMap = map[Action]int{ ACTION_PERMIT: 0, ACTION_DENY: 1, }
View Source
var IntToActionMap = map[int]Action{ 0: ACTION_PERMIT, 1: ACTION_DENY, }
Functions ¶
This section is empty.
Types ¶
type PrefixList ¶
type PrefixList struct {
// original -> plist:name
Name string `mapstructure:"name" json:"name,omitempty"`
// original -> plist:description
// Prefix-list specific description.
Description string `mapstructure:"description" json:"description,omitempty"`
// original -> plist:seq
// sequence number of an entry.
SeqList []Seq `mapstructure:"seq" json:"seq,omitempty"`
}
struct for container plist:prefix-list.
func (*PrefixList) Equal ¶
func (lhs *PrefixList) Equal(rhs *PrefixList) bool
type PrefixLists ¶
type PrefixLists []PrefixList
type Seq ¶
type Seq struct {
// original -> plist:number
Number uint32 `mapstructure:"number" json:"number,omitempty"`
// original -> plist:action
Action Action `mapstructure:"action" json:"action,omitempty"`
// original -> plist:prefix
// plist:prefix's original type is inet:ipv4-prefix.
Prefix string `mapstructure:"prefix" json:"prefix,omitempty"`
// original -> plist:ge
// Minimum prefix length to be matched.
Ge *int `mapstructure:"ge" json:"ge,omitempty"`
// original -> plist:le
// Maximum prefix length to be matched.
Le *int `mapstructure:"le" json:"le,omitempty"`
// original -> plist:eq
// Maximum prefix length to be matched.
Eq *int `mapstructure:"eq" json:"eq,omitempty"`
}
struct for container plist:seq. sequence number of an entry.
Click to show internal directories.
Click to hide internal directories.