Documentation ¶
Index ¶
- type AFI
- type ASPathPrepend
- type AddPath
- type AddPathSend
- type BGP
- type BGPGroup
- type BGPNeighbor
- type Config
- type ISIS
- type ISISInterface
- type ISISInterfaceLevel
- type ISISLevel
- 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 ISIS ¶
type ISIS struct { NETs []string `yaml:"NETs"` Level1 *ISISLevel `yaml:"level1"` Level2 *ISISLevel `yaml:"level2"` Interfaces []*ISISInterface `yaml:"interfaces"` LSPLifetime uint16 `yaml:"lsp_lifetime"` }
ISIS config
func (*ISIS) InterfaceConfigured ¶
type ISISInterface ¶
type ISISInterface struct { Name string `yaml:"name"` Passive bool `yaml:"passive"` PointToPoint bool `yaml:"point_to_point"` Level1 *ISISInterfaceLevel `yaml:"level1"` Level2 *ISISInterfaceLevel `yaml:"level2"` }
ISISInterface interface config
type ISISInterfaceLevel ¶
type ISISInterfaceLevel struct { Disable bool `yaml:"disable"` HelloInterval uint16 `yaml:"hello_interval"` HoldTime uint16 `yaml:"hold_time"` Metric uint32 `yaml:"metric"` Passive bool `yaml:"passive"` Priority uint8 `yaml:"priority"` }
ISISInterfaceLevel interface level config
type ISISLevel ¶
type ISISLevel struct { Disable bool `yaml:"disable"` AuthenticationKey string `yaml:"authentication_key"` NoCSNPAuthentication bool `yaml:"no_csnp_authentication"` NoHelloAuthentication bool `yaml:"no_hello_authentication"` NoPSNPAuthentication bool `yaml:"no_psnp_authentication"` WideMetricsOnly bool `yaml:"wide_metrics_only"` }
ISISLevel level config
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.