Documentation
¶
Index ¶
- type LocateOptions
- type PathQueryOptions
- func (o *PathQueryOptions) WithDestination(dst *network.NetworkList) *PathQueryOptions
- func (o *PathQueryOptions) WithECMP(enable bool) *PathQueryOptions
- func (o *PathQueryOptions) WithMaxPaths(maxPaths int) *PathQueryOptions
- func (o *PathQueryOptions) WithSource(src *network.NetworkList) *PathQueryOptions
- func (o *PathQueryOptions) WithVRF(vrf string) *PathQueryOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocateOptions ¶
LocateOptions 节点定位选项
type PathQueryOptions ¶
type PathQueryOptions struct {
Source *network.NetworkList
Destination *network.NetworkList
VRF string
Gateway string
Area string
SourceNode string
IPFamily network.IPFamily
MaxPaths int // 最大路径数量(0表示无限制)
EnableECMP bool // 是否启用ECMP
MaxDepth int // 最大路径深度(0表示无限制)
}
PathQueryOptions 路径查询选项
func NewPathQueryOptions ¶
func NewPathQueryOptions() *PathQueryOptions
NewPathQueryOptions 创建路径查询选项
func (*PathQueryOptions) WithDestination ¶
func (o *PathQueryOptions) WithDestination(dst *network.NetworkList) *PathQueryOptions
WithDestination 设置目标网络
func (*PathQueryOptions) WithECMP ¶
func (o *PathQueryOptions) WithECMP(enable bool) *PathQueryOptions
WithECMP 启用/禁用ECMP
func (*PathQueryOptions) WithMaxPaths ¶
func (o *PathQueryOptions) WithMaxPaths(maxPaths int) *PathQueryOptions
WithMaxPaths 设置最大路径数
func (*PathQueryOptions) WithSource ¶
func (o *PathQueryOptions) WithSource(src *network.NetworkList) *PathQueryOptions
WithSource 设置源网络
func (*PathQueryOptions) WithVRF ¶
func (o *PathQueryOptions) WithVRF(vrf string) *PathQueryOptions
WithVRF 设置VRF
Click to show internal directories.
Click to hide internal directories.