Documentation ¶
Index ¶
- type AFI
- type ASPathPrepend
- type AddPath
- type AddPathSend
- type BGP
- type BGPGroup
- type BGPNeighbor
- type Config
- type Multipath
- type NextHop
- type PolicyOptions
- type PolicyStatement
- type PolicyStatementTerm
- type PolicyStatementTermFrom
- type PolicyStatementTermThen
- type PrefixList
- type Protocols
- type RouteFilter
- type RoutingInstance
- type RoutingOptions
- type SAFI
- type StaticRoute
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ASPathPrepend ¶
type AddPath ¶
type AddPath struct { Receive bool `yaml:"receive"` Send *AddPathSend `yaml:"send"` }
type AddPathSend ¶
type BGPGroup ¶
type BGPGroup struct { Name string `yaml:"name"` LocalAddress string `yaml:"local_address"` LocalAddressIP *bnet.IP TTL uint8 `yaml:"ttl"` AuthenticationKey string `yaml:"authentication_key"` PeerAS uint32 `yaml:"peer_as"` LocalAS uint32 `yaml:"local_as"` HoldTime uint16 `yaml:"hold_time"` Multipath *Multipath `yaml:"multipath"` Import []string `yaml:"import"` Export []string `yaml:"export"` RouteServerClient bool `yaml:"route_server_client"` Passive bool `yaml:"passive"` Neighbors []*BGPNeighbor `yaml:"neighbors"` AFIs []*AFI `yaml:"afi"` }
type BGPNeighbor ¶
type BGPNeighbor struct { PeerAddress string `yaml:"peer_address"` PeerAddressIP *bnet.IP LocalAddress string `yaml:"local_address"` LocalAddressIP *bnet.IP TTL uint8 `yaml:"ttl"` AuthenticationKey string `yaml:"authentication_key"` PeerAS uint32 `yaml:"peer_as"` LocalAS uint32 `yaml:"local_as"` HoldTime uint16 `yaml:"hold_time"` HoldTimeDuration time.Duration Multipath *Multipath `yaml:"multipath"` Import []string `yaml:"import"` ImportFilterChain filter.Chain Export []string `yaml:"export"` ExportFilterChain filter.Chain RouteServerClient *bool `yaml:"route_server_client"` Passive *bool `yaml:"passive"` ClusterID string `yaml:"cluster_id"` ClusterIDIP *bnet.IP AFIs []*AFI `yaml:"afi"` }
type Config ¶
type Config struct { PolicyOptions *PolicyOptions `yaml:"policy_options"` RoutingInstances []*RoutingInstance `yaml:"routing_instances"` RoutingOptions *RoutingOptions `yaml:"routing_options"` Protocols *Protocols `yaml:"protocols"` }
type PolicyOptions ¶
type PolicyOptions struct { PolicyStatements []*PolicyStatement `yaml:"policy_statements"` PolicyStatementsFilter []*filter.Filter PrefixLists []PrefixList `yaml:"prefix_lists"` }
type PolicyStatement ¶
type PolicyStatement struct { Name string `yaml:"name"` Terms []*PolicyStatementTerm `yaml:"terms"` }
type PolicyStatementTerm ¶
type PolicyStatementTerm struct { Name string `yaml:"name"` From PolicyStatementTermFrom `yaml:"from"` Then PolicyStatementTermThen `yaml:"then"` }
type PolicyStatementTermFrom ¶
type PolicyStatementTermFrom struct {
RouteFilters []*RouteFilter `yaml:"route_filters"`
}
type PolicyStatementTermThen ¶
type PrefixList ¶
type PrefixList struct {
Prefixes []string `yaml:"prefixes"`
}
type RouteFilter ¶
type RoutingInstance ¶
type RoutingInstance struct { Name string RouteDistinguisher string InternalRouteDistinguisher uint64 RoutingOptions *RoutingOptions Protocols *Protocols }
type RoutingOptions ¶
type RoutingOptions struct { StaticRoutes []StaticRoute `yaml:"static_routes"` RouterID string `yaml:"router_id"` RouterIDUint32 uint32 AutonomousSystem uint32 `yaml:"autonomous_system"` }
Click to show internal directories.
Click to hide internal directories.