Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LsLink ¶
type LsNode ¶
type LsNode struct { Asn uint32 // primary key, in MP_REACH_NLRI Attr RouterId string // primary key, in MP_REACH_NLRI Attr IsisAreaId string // in BGP-LS Attr Hostname string // in BGP-LS Attr SrgbBegin uint32 // in BGP-LS Attr SrgbEnd uint32 // in BGP-LS Attr Links []*LsLink Prefixes []*LsPrefixV4 }
type LsPrefixV4 ¶
type LsPrefixV4 struct { LocalNode *LsNode // primary key, in MP_REACH_NLRI Attr Prefix *net.IPNet // in MP_REACH_NLRI Attr SidIndex uint32 // in BGP-LS Attr (only for Lo Address Prefix) }
func NewLsPrefixV4 ¶
func NewLsPrefixV4(localNode *LsNode) *LsPrefixV4
func (*LsPrefixV4) UpdateTed ¶
func (lsPrefix *LsPrefixV4) UpdateTed(ted *LsTed)
type LsTed ¶
type LsTed struct { Id int Nodes map[uint32]map[string]*LsNode // { ASN1: {"NodeID1": node1, "NodeID2": node2}, ASN2: {"NodeID3": node3, "NodeID4": node4}} }
func (LsTed) GetRouterIdFromSid ¶
type Metric ¶
type Metric struct { Type MetricType Value uint32 }
func NewMetric ¶
func NewMetric(metricType MetricType, value uint32) *Metric
type MetricType ¶
type MetricType int
const ( IGP_METRIC MetricType = iota TE_METRIC DELAY_METRIC HOPCOUNT_METRIC )
func (MetricType) String ¶
func (m MetricType) String() string
Click to show internal directories.
Click to hide internal directories.