Documentation ¶
Index ¶
- Constants
- func CheckPolicyDifference(currentPolicy *RoutingPolicy, newPolicy *RoutingPolicy) bool
- func CreateRfMap(p *Neighbor) map[bgp.RouteFamily]bool
- func IsConfederationMember(g *Global, p *Neighbor) bool
- func IsEBGPPeer(g *Global, p *Neighbor) bool
- func ReadConfigfileServe(path string, configCh chan BgpConfigSet, reloadCh chan bool)
- func SetDefaultConfigValues(md toml.MetaData, bt *Bgp) error
- func UpdateConfig(curC *Bgp, newC *Bgp) (*Bgp, []Neighbor, []Neighbor, []Neighbor)
- type Actions
- type AddPaths
- type AddPathsConfig
- type AddPathsState
- type AfiSafi
- type AfiSafiConfig
- type AfiSafiState
- type AfiSafis
- type ApplyPolicy
- type ApplyPolicyConfig
- type ApplyPolicyState
- type AsPath
- type AsPathLength
- type AsPathOptions
- type AsPathOptionsConfig
- type AsPathOptionsState
- type AsPathSet
- type AsPathSets
- type Bgp
- type BgpActions
- type BgpAsPathPrependRepeat
- type BgpCommunityRegexpType
- type BgpConditions
- type BgpConfigSet
- type BgpDefinedSets
- type BgpExtCommunityType
- type BgpNextHopType
- type BgpOriginAttrType
- type BgpSessionDirection
- type BgpSetCommunityOptionType
- type BgpSetMedType
- type BgpStdCommunityType
- type BmpServer
- type BmpServerConfig
- type BmpServerState
- type BmpServers
- type Community
- type CommunityCount
- type CommunitySet
- type CommunitySets
- type CommunityType
- type Conditions
- type Confederation
- type ConfederationConfig
- type ConfederationState
- type DefaultPolicyType
- type DefaultRouteDistance
- type DefaultRouteDistanceConfig
- type DefaultRouteDistanceState
- type DefinedSets
- type Ebgp
- type EbgpConfig
- type EbgpMultihop
- type EbgpMultihopConfig
- type EbgpMultihopState
- type EbgpState
- type ErrorHandling
- type ErrorHandlingConfig
- type ErrorHandlingState
- type ExtCommunity
- type ExtCommunitySet
- type ExtCommunitySets
- type Global
- type GlobalConfig
- type GlobalState
- type GracefulRestart
- type GracefulRestartConfig
- type GracefulRestartState
- type Ibgp
- type IbgpConfig
- type IbgpState
- type IgpActions
- type IgpConditions
- type Ipv4LabelledUnicast
- type Ipv4Unicast
- type Ipv4UnicastConfig
- type Ipv4UnicastState
- type Ipv6LabelledUnicast
- type Ipv6Unicast
- type Ipv6UnicastConfig
- type Ipv6UnicastState
- type L2vpnEvpn
- type L2vpnVpls
- type L3vpnIpv4Multicast
- type L3vpnIpv4Unicast
- type L3vpnIpv6Multicast
- type L3vpnIpv6Unicast
- type LoggingOptions
- type LoggingOptionsConfig
- type LoggingOptionsState
- type MatchAsPathSet
- type MatchCommunitySet
- type MatchExtCommunitySet
- type MatchNeighborSet
- type MatchPrefixSet
- type MatchSetOptionsRestrictedType
- type MatchSetOptionsType
- type MatchTagSet
- type Messages
- type MpGracefulRestart
- type MpGracefulRestartConfig
- type MpGracefulRestartState
- type MplsLabelRange
- type Mrt
- type Neighbor
- type NeighborConfig
- type NeighborInfo
- type NeighborSet
- type NeighborSets
- type NeighborState
- type Neighbors
- type PeerGroup
- type PeerGroupConfig
- type PeerGroupState
- type PeerGroups
- type PeerTypeDef
- type Percentage
- type PolicyDefinition
- type PolicyDefinitions
- type Prefix
- type PrefixLimit
- type PrefixLimitConfig
- type PrefixLimitState
- type PrefixSet
- type PrefixSets
- type Prefixes
- type Queues
- type Received
- type RedistributeRouteType
- type RemovePrivateAsOption
- type RouteDisposition
- type RouteReflector
- type RouteReflectorConfig
- type RouteReflectorState
- type RouteSelectionOptions
- type RouteSelectionOptionsConfig
- type RouteSelectionOptionsState
- type RouteServer
- type RouteServerConfig
- type RouteServerState
- type RoutingPolicy
- type RpkiMessages
- type RpkiReceived
- type RpkiSent
- type RpkiServer
- type RpkiServerConfig
- type RpkiServerState
- type RpkiServers
- type RpkiValidationResultType
- type RrClusterIdType
- type Sent
- type SetAsPathPrepend
- type SetCommunity
- type SetCommunityMethod
- type SetExtCommunity
- type SetExtCommunityMethod
- type Statement
- type Statements
- type Tag
- type TagSet
- type TagSets
- type TagType
- type Timers
- type TimersConfig
- type TimersState
- type Transport
- type TransportConfig
- type TransportState
- type UseMultiplePaths
- type UseMultiplePathsConfig
- type UseMultiplePathsState
- type Zebra
Constants ¶
const ( BGP_ORIGIN_ATTR_TYPE_IGP BgpOriginAttrType = 0 BGP_ORIGIN_ATTR_TYPE_EGP = 1 BGP_ORIGIN_ATTR_TYPE_INCOMPLETE = 2 )
const ( DEFAULT_HOLDTIME = 90 DEFAULT_IDLE_HOLDTIME_AFTER_RESET = 30 DEFAULT_CONNECT_RETRY = 120 DEFAULT_MPLS_LABEL_MIN = 16000 DEFAULT_MPLS_LABEL_MAX = 1048575 )
Variables ¶
This section is empty.
Functions ¶
func CheckPolicyDifference ¶
func CheckPolicyDifference(currentPolicy *RoutingPolicy, newPolicy *RoutingPolicy) bool
func CreateRfMap ¶
func IsConfederationMember ¶
func IsEBGPPeer ¶
func ReadConfigfileServe ¶
func ReadConfigfileServe(path string, configCh chan BgpConfigSet, reloadCh chan bool)
Types ¶
type Actions ¶
type Actions struct { // original -> rpol:route-disposition RouteDisposition RouteDisposition // original -> rpol:igp-actions IgpActions IgpActions // original -> bgp-pol:bgp-actions BgpActions BgpActions }
struct for container rpol:actions
type AddPaths ¶
type AddPaths struct { // original -> bgp:add-paths-config AddPathsConfig AddPathsConfig // original -> bgp:add-paths-state AddPathsState AddPathsState }
struct for container bgp:add-paths
type AddPathsConfig ¶
type AddPathsConfig struct { // original -> bgp:receive //bgp:receive's original type is boolean Receive bool // original -> bgp:send-max SendMax uint8 }
struct for container bgp:config
type AddPathsState ¶
type AddPathsState struct { // original -> bgp:receive //bgp:receive's original type is boolean Receive bool // original -> bgp:send-max SendMax uint8 }
struct for container bgp:state
type AfiSafi ¶
type AfiSafi struct { // original -> bgp-mp:afi-safi-name //bgp-mp:afi-safi-name's original type is identityref AfiSafiName string // original -> bgp-mp:mp-graceful-restart MpGracefulRestart MpGracefulRestart // original -> bgp-mp:afi-safi-config AfiSafiConfig AfiSafiConfig // original -> bgp-mp:afi-safi-state AfiSafiState AfiSafiState // original -> rpol:apply-policy ApplyPolicy ApplyPolicy // original -> bgp-mp:ipv4-unicast Ipv4Unicast Ipv4Unicast // original -> bgp-mp:ipv6-unicast Ipv6Unicast Ipv6Unicast // original -> bgp-mp:ipv4-labelled-unicast Ipv4LabelledUnicast Ipv4LabelledUnicast // original -> bgp-mp:ipv6-labelled-unicast Ipv6LabelledUnicast Ipv6LabelledUnicast // original -> bgp-mp:l3vpn-ipv4-unicast L3vpnIpv4Unicast L3vpnIpv4Unicast // original -> bgp-mp:l3vpn-ipv6-unicast L3vpnIpv6Unicast L3vpnIpv6Unicast // original -> bgp-mp:l3vpn-ipv4-multicast L3vpnIpv4Multicast L3vpnIpv4Multicast // original -> bgp-mp:l3vpn-ipv6-multicast L3vpnIpv6Multicast L3vpnIpv6Multicast // original -> bgp-mp:l2vpn-vpls L2vpnVpls L2vpnVpls // original -> bgp-mp:l2vpn-evpn L2vpnEvpn L2vpnEvpn // original -> bgp-mp:route-selection-options RouteSelectionOptions RouteSelectionOptions // original -> bgp-mp:use-multiple-paths UseMultiplePaths UseMultiplePaths }
struct for container bgp-mp:afi-safi
type AfiSafiConfig ¶
type AfiSafiConfig struct { // original -> bgp-mp:afi-safi-name AfiSafiName string // original -> bgp-mp:enabled //bgp-mp:enabled's original type is boolean Enabled bool }
struct for container bgp-mp:config
type AfiSafiState ¶
type AfiSafiState struct { // original -> bgp-mp:afi-safi-name AfiSafiName string // original -> bgp-mp:enabled //bgp-mp:enabled's original type is boolean Enabled bool // original -> bgp-op:total-paths TotalPaths uint32 // original -> bgp-op:total-prefixes TotalPrefixes uint32 }
struct for container bgp-mp:state
type AfiSafis ¶
type AfiSafis struct { // original -> bgp-mp:afi-safi AfiSafiList []AfiSafi }
struct for container bgp:afi-safis
type ApplyPolicy ¶
type ApplyPolicy struct { // original -> rpol:apply-policy-config ApplyPolicyConfig ApplyPolicyConfig // original -> rpol:apply-policy-state ApplyPolicyState ApplyPolicyState }
struct for container rpol:apply-policy
type ApplyPolicyConfig ¶
type ApplyPolicyConfig struct { // original -> rpol:import-policy ImportPolicy []string // original -> rpol:default-import-policy DefaultImportPolicy DefaultPolicyType // original -> rpol:export-policy ExportPolicy []string // original -> rpol:default-export-policy DefaultExportPolicy DefaultPolicyType // original -> gobgp:in-policy InPolicy []string // original -> gobgp:default-in-policy DefaultInPolicy DefaultPolicyType }
struct for container rpol:config
type ApplyPolicyState ¶
type ApplyPolicyState struct { // original -> rpol:import-policy ImportPolicy []string // original -> rpol:default-import-policy DefaultImportPolicy DefaultPolicyType // original -> rpol:export-policy ExportPolicy []string // original -> rpol:default-export-policy DefaultExportPolicy DefaultPolicyType // original -> gobgp:in-policy InPolicy []string // original -> gobgp:default-in-policy DefaultInPolicy DefaultPolicyType }
struct for container rpol:state
type AsPath ¶
type AsPath struct { // original -> gobgp:as-path AsPath string }
struct for container gobgp:as-path
type AsPathLength ¶
type AsPathLength struct { // original -> ptypes:operator Operator string // original -> ptypes:value Value uint32 }
struct for container bgp-pol:as-path-length
type AsPathOptions ¶
type AsPathOptions struct { // original -> bgp:as-path-options-config AsPathOptionsConfig AsPathOptionsConfig // original -> bgp:as-path-options-state AsPathOptionsState AsPathOptionsState }
struct for container bgp:as-path-options
type AsPathOptionsConfig ¶
type AsPathOptionsConfig struct { // original -> bgp:allow-own-as AllowOwnAs uint8 // original -> bgp:replace-peer-as //bgp:replace-peer-as's original type is boolean ReplacePeerAs bool }
struct for container bgp:config
type AsPathOptionsState ¶
type AsPathOptionsState struct { // original -> bgp:allow-own-as AllowOwnAs uint8 // original -> bgp:replace-peer-as //bgp:replace-peer-as's original type is boolean ReplacePeerAs bool }
struct for container bgp:state
type AsPathSet ¶
type AsPathSet struct { // original -> bgp-pol:as-path-set-name AsPathSetName string // original -> gobgp:as-path AsPathList []AsPath }
struct for container bgp-pol:as-path-set
type AsPathSets ¶
type AsPathSets struct { // original -> bgp-pol:as-path-set AsPathSetList []AsPathSet }
struct for container bgp-pol:as-path-sets
type Bgp ¶
type Bgp struct { // original -> bgp:global Global Global // original -> bgp:neighbors Neighbors Neighbors // original -> bgp:peer-groups PeerGroups PeerGroups // original -> gobgp:rpki-servers RpkiServers RpkiServers // original -> gobgp:bmp-servers BmpServers BmpServers }
struct for container bgp:bgp
type BgpActions ¶
type BgpActions struct { // original -> bgp-pol:set-as-path-prepend SetAsPathPrepend SetAsPathPrepend // original -> bgp-pol:set-community SetCommunity SetCommunity // original -> bgp-pol:set-ext-community SetExtCommunity SetExtCommunity // original -> bgp-pol:set-route-origin SetRouteOrigin BgpOriginAttrType // original -> bgp-pol:set-local-pref SetLocalPref uint32 // original -> bgp-pol:set-next-hop SetNextHop BgpNextHopType // original -> bgp-pol:set-med SetMed BgpSetMedType }
struct for container bgp-pol:bgp-actions
type BgpAsPathPrependRepeat ¶
type BgpAsPathPrependRepeat uint8
typedef for typedef bgp-pol:bgp-as-path-prepend-repeat
type BgpCommunityRegexpType ¶
type BgpCommunityRegexpType string
typedef for typedef bgp-types:bgp-community-regexp-type
type BgpConditions ¶
type BgpConditions struct { // original -> bgp-pol:match-community-set MatchCommunitySet MatchCommunitySet // original -> bgp-pol:match-ext-community-set MatchExtCommunitySet MatchExtCommunitySet // original -> bgp-pol:match-as-path-set MatchAsPathSet MatchAsPathSet // original -> bgp-pol:med-eq MedEq uint32 // original -> bgp-pol:origin-eq OriginEq BgpOriginAttrType // original -> bgp-pol:next-hop-in //original type is list of inet:ip-address NextHopIn []net.IP // original -> bgp-pol:local-pref-eq LocalPrefEq uint32 // original -> bgp-pol:community-count CommunityCount CommunityCount // original -> bgp-pol:as-path-length AsPathLength AsPathLength // original -> bgp-pol:route-type //bgp-pol:route-type's original type is enumeration RouteType uint32 // original -> gobgp:rpki-validation-result RpkiValidationResult RpkiValidationResultType }
struct for container bgp-pol:bgp-conditions
type BgpConfigSet ¶
type BgpConfigSet struct { Bgp Bgp Policy RoutingPolicy }
type BgpDefinedSets ¶
type BgpDefinedSets struct { // original -> bgp-pol:community-sets CommunitySets CommunitySets // original -> bgp-pol:ext-community-sets ExtCommunitySets ExtCommunitySets // original -> bgp-pol:as-path-sets AsPathSets AsPathSets }
struct for container bgp-pol:bgp-defined-sets
type BgpExtCommunityType ¶
type BgpExtCommunityType string
typedef for typedef bgp-types:bgp-ext-community-type
type BgpSessionDirection ¶
type BgpSessionDirection int
typedef for typedef bgp-types:bgp-session-direction
const ( BGP_SESSION_DIRECTION_INBOUND BgpSessionDirection = iota BGP_SESSION_DIRECTION_OUTBOUND )
type BgpSetCommunityOptionType ¶
type BgpSetCommunityOptionType int
typedef for typedef bgp-pol:bgp-set-community-option-type
const ( BGP_SET_COMMUNITY_OPTION_TYPE_ADD BgpSetCommunityOptionType = iota BGP_SET_COMMUNITY_OPTION_TYPE_REMOVE BGP_SET_COMMUNITY_OPTION_TYPE_REPLACE )
type BgpStdCommunityType ¶
type BgpStdCommunityType string
typedef for typedef bgp-types:bgp-std-community-type
type BmpServer ¶
type BmpServer struct { // original -> gobgp:bmp-server-config BmpServerConfig BmpServerConfig // original -> gobgp:bmp-server-state BmpServerState BmpServerState }
struct for container gobgp:bmp-server
type BmpServerConfig ¶
type BmpServerConfig struct { // original -> gobgp:address //gobgp:address's original type is inet:ip-address Address net.IP // original -> gobgp:port Port uint32 }
struct for container gobgp:config
type BmpServers ¶
type BmpServers struct { // original -> gobgp:bmp-server BmpServerList []BmpServer }
struct for container gobgp:bmp-servers
type Community ¶
type Community struct { // original -> gobgp:community Community string }
struct for container gobgp:community
type CommunityCount ¶
type CommunityCount struct { // original -> ptypes:operator Operator string // original -> ptypes:value Value uint32 }
struct for container bgp-pol:community-count
type CommunitySet ¶
type CommunitySet struct { // original -> bgp-pol:community-set-name CommunitySetName string // original -> gobgp:community CommunityList []Community }
struct for container bgp-pol:community-set
type CommunitySets ¶
type CommunitySets struct { // original -> bgp-pol:community-set CommunitySetList []CommunitySet }
struct for container bgp-pol:community-sets
type CommunityType ¶
type CommunityType int
typedef for typedef bgp-types:community-type
const ( COMMUNITY_TYPE_STANDARD CommunityType = iota COMMUNITY_TYPE_EXTENDED COMMUNITY_TYPE_BOTH COMMUNITY_TYPE_NONE )
type Conditions ¶
type Conditions struct { // original -> rpol:call-policy CallPolicy string // original -> rpol:match-prefix-set MatchPrefixSet MatchPrefixSet // original -> rpol:match-neighbor-set MatchNeighborSet MatchNeighborSet // original -> rpol:match-tag-set MatchTagSet MatchTagSet // original -> rpol:install-protocol-eq InstallProtocolEq string // original -> rpol:igp-conditions IgpConditions IgpConditions // original -> bgp-pol:bgp-conditions BgpConditions BgpConditions }
struct for container rpol:conditions
type Confederation ¶
type Confederation struct { // original -> bgp:confederation-config ConfederationConfig ConfederationConfig // original -> bgp:confederation-state ConfederationState ConfederationState }
struct for container bgp:confederation
type ConfederationConfig ¶
type ConfederationConfig struct { // original -> bgp:enabled //bgp:enabled's original type is boolean Enabled bool // original -> bgp:identifier //bgp:identifier's original type is inet:as-number Identifier uint32 // original -> bgp:member-as //original type is list of inet:as-number MemberAs []uint32 }
struct for container bgp:config
type ConfederationState ¶
type ConfederationState struct { // original -> bgp:enabled //bgp:enabled's original type is boolean Enabled bool // original -> bgp:identifier //bgp:identifier's original type is inet:as-number Identifier uint32 // original -> bgp:member-as //original type is list of inet:as-number MemberAs []uint32 }
struct for container bgp:state
type DefaultPolicyType ¶
type DefaultPolicyType int
typedef for typedef rpol:default-policy-type
const ( DEFAULT_POLICY_TYPE_ACCEPT_ROUTE DefaultPolicyType = iota DEFAULT_POLICY_TYPE_REJECT_ROUTE )
type DefaultRouteDistance ¶
type DefaultRouteDistance struct { // original -> bgp:default-route-distance-config DefaultRouteDistanceConfig DefaultRouteDistanceConfig // original -> bgp:default-route-distance-state DefaultRouteDistanceState DefaultRouteDistanceState }
struct for container bgp:default-route-distance
type DefaultRouteDistanceConfig ¶
type DefaultRouteDistanceConfig struct { // original -> bgp:external-route-distance ExternalRouteDistance uint8 // original -> bgp:internal-route-distance InternalRouteDistance uint8 }
struct for container bgp:config
type DefaultRouteDistanceState ¶
type DefaultRouteDistanceState struct { // original -> bgp:external-route-distance ExternalRouteDistance uint8 // original -> bgp:internal-route-distance InternalRouteDistance uint8 }
struct for container bgp:state
type DefinedSets ¶
type DefinedSets struct { // original -> rpol:prefix-sets PrefixSets PrefixSets // original -> rpol:neighbor-sets NeighborSets NeighborSets // original -> rpol:tag-sets TagSets TagSets // original -> bgp-pol:bgp-defined-sets BgpDefinedSets BgpDefinedSets }
struct for container rpol:defined-sets
type Ebgp ¶
type Ebgp struct { // original -> bgp-mp:ebgp-config EbgpConfig EbgpConfig // original -> bgp-mp:ebgp-state EbgpState EbgpState }
struct for container bgp-mp:ebgp
type EbgpConfig ¶
type EbgpConfig struct { // original -> bgp-mp:allow-multiple-as //bgp-mp:allow-multiple-as's original type is boolean AllowMultipleAs bool // original -> bgp-mp:maximum-paths MaximumPaths uint32 }
struct for container bgp-mp:config
type EbgpMultihop ¶
type EbgpMultihop struct { // original -> bgp:ebgp-multihop-config EbgpMultihopConfig EbgpMultihopConfig // original -> bgp:ebgp-multihop-state EbgpMultihopState EbgpMultihopState }
struct for container bgp:ebgp-multihop
type EbgpMultihopConfig ¶
type EbgpMultihopConfig struct { // original -> bgp:enabled //bgp:enabled's original type is boolean Enabled bool // original -> bgp:multihop-ttl MultihopTtl uint8 }
struct for container bgp:config
type EbgpMultihopState ¶
type EbgpMultihopState struct { // original -> bgp:enabled //bgp:enabled's original type is boolean Enabled bool // original -> bgp:multihop-ttl MultihopTtl uint8 }
struct for container bgp:state
type EbgpState ¶
type EbgpState struct { // original -> bgp-mp:allow-multiple-as //bgp-mp:allow-multiple-as's original type is boolean AllowMultipleAs bool // original -> bgp-mp:maximum-paths MaximumPaths uint32 }
struct for container bgp-mp:state
type ErrorHandling ¶
type ErrorHandling struct { // original -> bgp:error-handling-config ErrorHandlingConfig ErrorHandlingConfig // original -> bgp:error-handling-state ErrorHandlingState ErrorHandlingState }
struct for container bgp:error-handling
type ErrorHandlingConfig ¶
type ErrorHandlingConfig struct { // original -> bgp:treat-as-withdraw //bgp:treat-as-withdraw's original type is boolean TreatAsWithdraw bool }
struct for container bgp:config
type ErrorHandlingState ¶
type ErrorHandlingState struct { // original -> bgp:treat-as-withdraw //bgp:treat-as-withdraw's original type is boolean TreatAsWithdraw bool // original -> bgp-op:erroneous-update-messages ErroneousUpdateMessages uint32 }
struct for container bgp:state
type ExtCommunity ¶
type ExtCommunity struct { // original -> gobgp:ext-community ExtCommunity string }
struct for container gobgp:ext-community
type ExtCommunitySet ¶
type ExtCommunitySet struct { // original -> bgp-pol:ext-community-set-name ExtCommunitySetName string // original -> gobgp:ext-community ExtCommunityList []ExtCommunity }
struct for container bgp-pol:ext-community-set
type ExtCommunitySets ¶
type ExtCommunitySets struct { // original -> bgp-pol:ext-community-set ExtCommunitySetList []ExtCommunitySet }
struct for container bgp-pol:ext-community-sets
type Global ¶
type Global struct { // original -> bgp:global-config GlobalConfig GlobalConfig // original -> bgp:global-state GlobalState GlobalState // original -> bgp-mp:route-selection-options RouteSelectionOptions RouteSelectionOptions // original -> bgp:default-route-distance DefaultRouteDistance DefaultRouteDistance // original -> bgp:confederation Confederation Confederation // original -> bgp-mp:use-multiple-paths UseMultiplePaths UseMultiplePaths // original -> bgp:graceful-restart GracefulRestart GracefulRestart // original -> bgp:afi-safis AfiSafis AfiSafis // original -> rpol:apply-policy ApplyPolicy ApplyPolicy // original -> gobgp:mrt Mrt Mrt // original -> gobgp:zebra Zebra Zebra // original -> gobgp:mpls-label-range MplsLabelRange MplsLabelRange }
struct for container bgp:global
type GlobalConfig ¶
type GlobalConfig struct { // original -> bgp:as //bgp:as's original type is inet:as-number As uint32 // original -> bgp:router-id //bgp:router-id's original type is inet:ipv4-address RouterId net.IP }
struct for container bgp:config
type GlobalState ¶
type GlobalState struct { // original -> bgp:as //bgp:as's original type is inet:as-number As uint32 // original -> bgp:router-id //bgp:router-id's original type is inet:ipv4-address RouterId net.IP // original -> bgp-op:total-paths TotalPaths uint32 // original -> bgp-op:total-prefixes TotalPrefixes uint32 }
struct for container bgp:state
type GracefulRestart ¶
type GracefulRestart struct { // original -> bgp:graceful-restart-config GracefulRestartConfig GracefulRestartConfig // original -> bgp:graceful-restart-state GracefulRestartState GracefulRestartState }
struct for container bgp:graceful-restart
type GracefulRestartConfig ¶
type GracefulRestartConfig struct { // original -> bgp:enabled //bgp:enabled's original type is boolean Enabled bool // original -> bgp:restart-time RestartTime uint16 // original -> bgp:stale-routes-time //bgp:stale-routes-time's original type is decimal64 StaleRoutesTime float64 // original -> bgp:helper-only //bgp:helper-only's original type is boolean HelperOnly bool }
struct for container bgp:config
type GracefulRestartState ¶
type GracefulRestartState struct { // original -> bgp:enabled //bgp:enabled's original type is boolean Enabled bool // original -> bgp:restart-time RestartTime uint16 // original -> bgp:stale-routes-time //bgp:stale-routes-time's original type is decimal64 StaleRoutesTime float64 // original -> bgp:helper-only //bgp:helper-only's original type is boolean HelperOnly bool // original -> bgp-op:peer-restart-time PeerRestartTime uint16 // original -> bgp-op:peer-restarting //bgp-op:peer-restarting's original type is boolean PeerRestarting bool // original -> bgp-op:local-restarting //bgp-op:local-restarting's original type is boolean LocalRestarting bool // original -> bgp-op:mode //bgp-op:mode's original type is enumeration Mode uint32 }
struct for container bgp:state
type Ibgp ¶
type Ibgp struct { // original -> bgp-mp:ibgp-config IbgpConfig IbgpConfig // original -> bgp-mp:ibgp-state IbgpState IbgpState }
struct for container bgp-mp:ibgp
type IbgpConfig ¶
type IbgpConfig struct { // original -> bgp-mp:maximum-paths MaximumPaths uint32 }
struct for container bgp-mp:config
type IbgpState ¶
type IbgpState struct { // original -> bgp-mp:maximum-paths MaximumPaths uint32 }
struct for container bgp-mp:state
type IgpActions ¶
type IgpActions struct { // original -> rpol:set-tag SetTag TagType }
struct for container rpol:igp-actions
type Ipv4LabelledUnicast ¶
type Ipv4LabelledUnicast struct { // original -> bgp-mp:prefix-limit PrefixLimit PrefixLimit }
struct for container bgp-mp:ipv4-labelled-unicast
type Ipv4Unicast ¶
type Ipv4Unicast struct { // original -> bgp-mp:prefix-limit PrefixLimit PrefixLimit // original -> bgp-mp:ipv4-unicast-config Ipv4UnicastConfig Ipv4UnicastConfig // original -> bgp-mp:ipv4-unicast-state Ipv4UnicastState Ipv4UnicastState }
struct for container bgp-mp:ipv4-unicast
type Ipv4UnicastConfig ¶
type Ipv4UnicastConfig struct { // original -> bgp-mp:send-default-route //bgp-mp:send-default-route's original type is boolean SendDefaultRoute bool }
struct for container bgp-mp:config
type Ipv4UnicastState ¶
type Ipv4UnicastState struct { // original -> bgp-mp:send-default-route //bgp-mp:send-default-route's original type is boolean SendDefaultRoute bool }
struct for container bgp-mp:state
type Ipv6LabelledUnicast ¶
type Ipv6LabelledUnicast struct { // original -> bgp-mp:prefix-limit PrefixLimit PrefixLimit }
struct for container bgp-mp:ipv6-labelled-unicast
type Ipv6Unicast ¶
type Ipv6Unicast struct { // original -> bgp-mp:prefix-limit PrefixLimit PrefixLimit // original -> bgp-mp:ipv6-unicast-config Ipv6UnicastConfig Ipv6UnicastConfig // original -> bgp-mp:ipv6-unicast-state Ipv6UnicastState Ipv6UnicastState }
struct for container bgp-mp:ipv6-unicast
type Ipv6UnicastConfig ¶
type Ipv6UnicastConfig struct { // original -> bgp-mp:send-default-route //bgp-mp:send-default-route's original type is boolean SendDefaultRoute bool }
struct for container bgp-mp:config
type Ipv6UnicastState ¶
type Ipv6UnicastState struct { // original -> bgp-mp:send-default-route //bgp-mp:send-default-route's original type is boolean SendDefaultRoute bool }
struct for container bgp-mp:state
type L2vpnEvpn ¶
type L2vpnEvpn struct { // original -> bgp-mp:prefix-limit PrefixLimit PrefixLimit }
struct for container bgp-mp:l2vpn-evpn
type L2vpnVpls ¶
type L2vpnVpls struct { // original -> bgp-mp:prefix-limit PrefixLimit PrefixLimit }
struct for container bgp-mp:l2vpn-vpls
type L3vpnIpv4Multicast ¶
type L3vpnIpv4Multicast struct { // original -> bgp-mp:prefix-limit PrefixLimit PrefixLimit }
struct for container bgp-mp:l3vpn-ipv4-multicast
type L3vpnIpv4Unicast ¶
type L3vpnIpv4Unicast struct { // original -> bgp-mp:prefix-limit PrefixLimit PrefixLimit }
struct for container bgp-mp:l3vpn-ipv4-unicast
type L3vpnIpv6Multicast ¶
type L3vpnIpv6Multicast struct { // original -> bgp-mp:prefix-limit PrefixLimit PrefixLimit }
struct for container bgp-mp:l3vpn-ipv6-multicast
type L3vpnIpv6Unicast ¶
type L3vpnIpv6Unicast struct { // original -> bgp-mp:prefix-limit PrefixLimit PrefixLimit }
struct for container bgp-mp:l3vpn-ipv6-unicast
type LoggingOptions ¶
type LoggingOptions struct { // original -> bgp:logging-options-config LoggingOptionsConfig LoggingOptionsConfig // original -> bgp:logging-options-state LoggingOptionsState LoggingOptionsState }
struct for container bgp:logging-options
type LoggingOptionsConfig ¶
type LoggingOptionsConfig struct { // original -> bgp:log-neighbor-state-changes //bgp:log-neighbor-state-changes's original type is boolean LogNeighborStateChanges bool }
struct for container bgp:config
type LoggingOptionsState ¶
type LoggingOptionsState struct { // original -> bgp:log-neighbor-state-changes //bgp:log-neighbor-state-changes's original type is boolean LogNeighborStateChanges bool }
struct for container bgp:state
type MatchAsPathSet ¶
type MatchAsPathSet struct { // original -> bgp-pol:as-path-set AsPathSet string // original -> rpol:match-set-options MatchSetOptions MatchSetOptionsType }
struct for container bgp-pol:match-as-path-set
type MatchCommunitySet ¶
type MatchCommunitySet struct { // original -> bgp-pol:community-set CommunitySet string // original -> rpol:match-set-options MatchSetOptions MatchSetOptionsType }
struct for container bgp-pol:match-community-set
type MatchExtCommunitySet ¶
type MatchExtCommunitySet struct { // original -> bgp-pol:ext-community-set ExtCommunitySet string // original -> rpol:match-set-options MatchSetOptions MatchSetOptionsType }
struct for container bgp-pol:match-ext-community-set
type MatchNeighborSet ¶
type MatchNeighborSet struct { // original -> rpol:neighbor-set NeighborSet string // original -> rpol:match-set-options MatchSetOptions MatchSetOptionsRestrictedType }
struct for container rpol:match-neighbor-set
type MatchPrefixSet ¶
type MatchPrefixSet struct { // original -> rpol:prefix-set PrefixSet string // original -> rpol:match-set-options MatchSetOptions MatchSetOptionsRestrictedType }
struct for container rpol:match-prefix-set
type MatchSetOptionsRestrictedType ¶
type MatchSetOptionsRestrictedType int
typedef for typedef ptypes:match-set-options-restricted-type
const ( MATCH_SET_OPTIONS_RESTRICTED_TYPE_ANY MatchSetOptionsRestrictedType = iota MATCH_SET_OPTIONS_RESTRICTED_TYPE_INVERT )
type MatchSetOptionsType ¶
type MatchSetOptionsType int
typedef for typedef ptypes:match-set-options-type
const ( MATCH_SET_OPTIONS_TYPE_ANY MatchSetOptionsType = iota MATCH_SET_OPTIONS_TYPE_ALL MATCH_SET_OPTIONS_TYPE_INVERT )
type MatchTagSet ¶
type MatchTagSet struct { // original -> rpol:tag-set TagSet string // original -> rpol:match-set-options MatchSetOptions MatchSetOptionsRestrictedType }
struct for container rpol:match-tag-set
type Messages ¶
type Messages struct { // original -> bgp:sent Sent Sent // original -> bgp:received Received Received }
struct for container bgp:messages
type MpGracefulRestart ¶
type MpGracefulRestart struct { // original -> bgp-mp:mp-graceful-restart-config MpGracefulRestartConfig MpGracefulRestartConfig // original -> bgp-mp:mp-graceful-restart-state MpGracefulRestartState MpGracefulRestartState }
struct for container bgp-mp:graceful-restart
type MpGracefulRestartConfig ¶
type MpGracefulRestartConfig struct { // original -> bgp-mp:enabled //bgp-mp:enabled's original type is boolean Enabled bool }
struct for container bgp-mp:config
type MpGracefulRestartState ¶
type MpGracefulRestartState struct { // original -> bgp-mp:enabled //bgp-mp:enabled's original type is boolean Enabled bool // original -> bgp-op:received //bgp-op:received's original type is boolean Received bool // original -> bgp-op:advertised //bgp-op:advertised's original type is boolean Advertised bool }
struct for container bgp-mp:state
type MplsLabelRange ¶
type MplsLabelRange struct { // original -> gobgp:min-label MinLabel uint32 // original -> gobgp:max-label MaxLabel uint32 }
struct for container gobgp:mpls-label-range
type Mrt ¶
type Mrt struct { // original -> gobgp:file-name FileName string }
struct for container gobgp:mrt
type Neighbor ¶
type Neighbor struct { // original -> bgp:neighbor-address //bgp:neighbor-address's original type is inet:ip-address NeighborAddress net.IP // original -> bgp:neighbor-config NeighborConfig NeighborConfig // original -> bgp:neighbor-state NeighborState NeighborState // original -> bgp:timers Timers Timers // original -> bgp:transport Transport Transport // original -> bgp:error-handling ErrorHandling ErrorHandling // original -> bgp:logging-options LoggingOptions LoggingOptions // original -> bgp:ebgp-multihop EbgpMultihop EbgpMultihop // original -> bgp:route-reflector RouteReflector RouteReflector // original -> bgp:as-path-options AsPathOptions AsPathOptions // original -> bgp:add-paths AddPaths AddPaths // original -> bgp:afi-safis AfiSafis AfiSafis // original -> bgp:graceful-restart GracefulRestart GracefulRestart // original -> rpol:apply-policy ApplyPolicy ApplyPolicy // original -> bgp-mp:use-multiple-paths UseMultiplePaths UseMultiplePaths // original -> gobgp:route-server RouteServer RouteServer }
struct for container bgp:neighbor
type NeighborConfig ¶
type NeighborConfig struct { // original -> bgp:peer-as //bgp:peer-as's original type is inet:as-number PeerAs uint32 // original -> bgp:local-as //bgp:local-as's original type is inet:as-number LocalAs uint32 // original -> bgp:peer-type PeerType PeerTypeDef // original -> bgp:auth-password AuthPassword string // original -> bgp:remove-private-as RemovePrivateAs RemovePrivateAsOption // original -> bgp:route-flap-damping //bgp:route-flap-damping's original type is boolean RouteFlapDamping bool // original -> bgp:send-community SendCommunity CommunityType // original -> bgp:description Description string // original -> bgp:peer-group PeerGroup string // original -> bgp:neighbor-address //bgp:neighbor-address's original type is inet:ip-address NeighborAddress net.IP }
struct for container bgp:config
type NeighborInfo ¶
type NeighborInfo struct { // original -> gobgp:address //gobgp:address's original type is inet:ip-address Address net.IP }
struct for container gobgp:neighbor-info
type NeighborSet ¶
type NeighborSet struct { // original -> rpol:neighbor-set-name NeighborSetName string // original -> gobgp:neighbor-info NeighborInfoList []NeighborInfo }
struct for container rpol:neighbor-set
type NeighborSets ¶
type NeighborSets struct { // original -> rpol:neighbor-set NeighborSetList []NeighborSet }
struct for container rpol:neighbor-sets
type NeighborState ¶
type NeighborState struct { // original -> bgp:peer-as //bgp:peer-as's original type is inet:as-number PeerAs uint32 // original -> bgp:local-as //bgp:local-as's original type is inet:as-number LocalAs uint32 // original -> bgp:peer-type PeerType PeerTypeDef // original -> bgp:auth-password AuthPassword string // original -> bgp:remove-private-as RemovePrivateAs RemovePrivateAsOption // original -> bgp:route-flap-damping //bgp:route-flap-damping's original type is boolean RouteFlapDamping bool // original -> bgp:send-community SendCommunity CommunityType // original -> bgp:description Description string // original -> bgp:peer-group PeerGroup string // original -> bgp:neighbor-address //bgp:neighbor-address's original type is inet:ip-address NeighborAddress net.IP // original -> bgp-op:session-state //bgp-op:session-state's original type is enumeration SessionState uint32 // original -> bgp-op:supported-capabilities //original type is list of identityref SupportedCapabilities []string // original -> bgp:messages Messages Messages // original -> bgp:queues Queues Queues // original -> gobgp:admin-down //gobgp:admin-down's original type is boolean AdminDown bool // original -> gobgp:established-count EstablishedCount uint32 // original -> gobgp:flops Flops uint32 }
struct for container bgp:state
type Neighbors ¶
type Neighbors struct { // original -> bgp:neighbor NeighborList []Neighbor }
struct for container bgp:neighbors
type PeerGroup ¶
type PeerGroup struct { // original -> bgp:peer-group-name PeerGroupName string // original -> bgp:peer-group-config PeerGroupConfig PeerGroupConfig // original -> bgp:peer-group-state PeerGroupState PeerGroupState // original -> bgp:timers Timers Timers // original -> bgp:transport Transport Transport // original -> bgp:error-handling ErrorHandling ErrorHandling // original -> bgp:logging-options LoggingOptions LoggingOptions // original -> bgp:ebgp-multihop EbgpMultihop EbgpMultihop // original -> bgp:route-reflector RouteReflector RouteReflector // original -> bgp:as-path-options AsPathOptions AsPathOptions // original -> bgp:add-paths AddPaths AddPaths // original -> bgp:afi-safis AfiSafis AfiSafis // original -> bgp:graceful-restart GracefulRestart GracefulRestart // original -> rpol:apply-policy ApplyPolicy ApplyPolicy // original -> bgp-mp:use-multiple-paths UseMultiplePaths UseMultiplePaths // original -> gobgp:route-server RouteServer RouteServer }
struct for container bgp:peer-group
type PeerGroupConfig ¶
type PeerGroupConfig struct { // original -> bgp:peer-as //bgp:peer-as's original type is inet:as-number PeerAs uint32 // original -> bgp:local-as //bgp:local-as's original type is inet:as-number LocalAs uint32 // original -> bgp:peer-type PeerType PeerTypeDef // original -> bgp:auth-password AuthPassword string // original -> bgp:remove-private-as RemovePrivateAs RemovePrivateAsOption // original -> bgp:route-flap-damping //bgp:route-flap-damping's original type is boolean RouteFlapDamping bool // original -> bgp:send-community SendCommunity CommunityType // original -> bgp:description Description string // original -> bgp:peer-group-name PeerGroupName string }
struct for container bgp:config
type PeerGroupState ¶
type PeerGroupState struct { // original -> bgp:peer-as //bgp:peer-as's original type is inet:as-number PeerAs uint32 // original -> bgp:local-as //bgp:local-as's original type is inet:as-number LocalAs uint32 // original -> bgp:peer-type PeerType PeerTypeDef // original -> bgp:auth-password AuthPassword string // original -> bgp:remove-private-as RemovePrivateAs RemovePrivateAsOption // original -> bgp:route-flap-damping //bgp:route-flap-damping's original type is boolean RouteFlapDamping bool // original -> bgp:send-community SendCommunity CommunityType // original -> bgp:description Description string // original -> bgp:peer-group-name PeerGroupName string // original -> bgp-op:total-paths TotalPaths uint32 // original -> bgp-op:total-prefixes TotalPrefixes uint32 }
struct for container bgp:state
type PeerGroups ¶
type PeerGroups struct { // original -> bgp:peer-group PeerGroupList []PeerGroup }
struct for container bgp:peer-groups
type PeerTypeDef ¶
type PeerTypeDef int
typedef for typedef bgp-types:peer-type
const ( PEER_TYPE_INTERNAL PeerTypeDef = iota PEER_TYPE_EXTERNAL )
type PolicyDefinition ¶
type PolicyDefinition struct { // original -> rpol:name Name string // original -> rpol:statements Statements Statements }
struct for container rpol:policy-definition
type PolicyDefinitions ¶
type PolicyDefinitions struct { // original -> rpol:policy-definition PolicyDefinitionList []PolicyDefinition }
struct for container rpol:policy-definitions
type Prefix ¶
type Prefix struct { // original -> rpol:ip-prefix //rpol:ip-prefix's original type is inet:ip-prefix IpPrefix string // original -> rpol:masklength-range MasklengthRange string }
struct for container rpol:prefix
type PrefixLimit ¶
type PrefixLimit struct { // original -> bgp-mp:prefix-limit-config PrefixLimitConfig PrefixLimitConfig // original -> bgp-mp:prefix-limit-state PrefixLimitState PrefixLimitState }
struct for container bgp-mp:prefix-limit
type PrefixLimitConfig ¶
type PrefixLimitConfig struct { // original -> bgp-mp:max-prefixes MaxPrefixes uint32 // original -> bgp-mp:shutdown-threshold-pct ShutdownThresholdPct Percentage // original -> bgp-mp:restart-timer //bgp-mp:restart-timer's original type is decimal64 RestartTimer float64 }
struct for container bgp-mp:config
type PrefixLimitState ¶
type PrefixLimitState struct { // original -> bgp-mp:max-prefixes MaxPrefixes uint32 // original -> bgp-mp:shutdown-threshold-pct ShutdownThresholdPct Percentage // original -> bgp-mp:restart-timer //bgp-mp:restart-timer's original type is decimal64 RestartTimer float64 }
struct for container bgp-mp:state
type PrefixSet ¶
type PrefixSet struct { // original -> rpol:prefix-set-name PrefixSetName string // original -> rpol:prefix PrefixList []Prefix }
struct for container rpol:prefix-set
type PrefixSets ¶
type PrefixSets struct { // original -> rpol:prefix-set PrefixSetList []PrefixSet }
struct for container rpol:prefix-sets
type Prefixes ¶
type Prefixes struct { // original -> bgp-op:received Received uint32 // original -> bgp-op:sent Sent uint32 // original -> bgp-op:installed Installed uint32 }
struct for container bgp-op:prefixes
type Queues ¶
type Queues struct { // original -> bgp-op:input Input uint32 // original -> bgp-op:output Output uint32 }
struct for container bgp:queues
type Received ¶
type Received struct { // original -> bgp-op:UPDATE Update uint64 // original -> bgp-op:NOTIFICATION Notification uint64 // original -> gobgp:OPEN Open uint64 // original -> gobgp:REFRESH Refresh uint64 // original -> gobgp:KEEPALIVE Keepalive uint64 // original -> gobgp:DYNAMIC-CAP DynamicCap uint64 // original -> gobgp:DISCARDED Discarded uint64 // original -> gobgp:TOTAL Total uint64 }
struct for container bgp:received
type RedistributeRouteType ¶
type RedistributeRouteType struct { // original -> gobgp:route-type //gobgp:route-type's original type is ptypes:install-protocol-type RouteType string }
struct for container gobgp:redistribute-route-type
type RemovePrivateAsOption ¶
type RemovePrivateAsOption int
typedef for typedef bgp-types:remove-private-as-option
const ( REMOVE_PRIVATE_AS_OPTION_ALL RemovePrivateAsOption = iota REMOVE_PRIVATE_AS_OPTION_REPLACE )
type RouteDisposition ¶
type RouteDisposition struct { // original -> rpol:accept-route //rpol:accept-route's original type is empty AcceptRoute bool // original -> rpol:reject-route //rpol:reject-route's original type is empty RejectRoute bool }
struct for container rpol:route-disposition
type RouteReflector ¶
type RouteReflector struct { // original -> bgp:route-reflector-config RouteReflectorConfig RouteReflectorConfig // original -> bgp:route-reflector-state RouteReflectorState RouteReflectorState }
struct for container bgp:route-reflector
type RouteReflectorConfig ¶
type RouteReflectorConfig struct { // original -> bgp:route-reflector-cluster-id RouteReflectorClusterId RrClusterIdType // original -> bgp:route-reflector-client //bgp:route-reflector-client's original type is boolean RouteReflectorClient bool }
struct for container bgp:config
type RouteReflectorState ¶
type RouteReflectorState struct { // original -> bgp:route-reflector-cluster-id RouteReflectorClusterId RrClusterIdType // original -> bgp:route-reflector-client //bgp:route-reflector-client's original type is boolean RouteReflectorClient bool }
struct for container bgp:state
type RouteSelectionOptions ¶
type RouteSelectionOptions struct { // original -> bgp-mp:route-selection-options-config RouteSelectionOptionsConfig RouteSelectionOptionsConfig // original -> bgp-mp:route-selection-options-state RouteSelectionOptionsState RouteSelectionOptionsState }
struct for container bgp-mp:route-selection-options
type RouteSelectionOptionsConfig ¶
type RouteSelectionOptionsConfig struct { // original -> bgp-mp:always-compare-med //bgp-mp:always-compare-med's original type is boolean AlwaysCompareMed bool // original -> bgp-mp:ignore-as-path-length //bgp-mp:ignore-as-path-length's original type is boolean IgnoreAsPathLength bool // original -> bgp-mp:external-compare-router-id //bgp-mp:external-compare-router-id's original type is boolean ExternalCompareRouterId bool // original -> bgp-mp:advertise-inactive-routes //bgp-mp:advertise-inactive-routes's original type is boolean AdvertiseInactiveRoutes bool // original -> bgp-mp:enable-aigp //bgp-mp:enable-aigp's original type is boolean EnableAigp bool // original -> bgp-mp:ignore-next-hop-igp-metric //bgp-mp:ignore-next-hop-igp-metric's original type is boolean IgnoreNextHopIgpMetric bool }
struct for container bgp-mp:config
type RouteSelectionOptionsState ¶
type RouteSelectionOptionsState struct { // original -> bgp-mp:always-compare-med //bgp-mp:always-compare-med's original type is boolean AlwaysCompareMed bool // original -> bgp-mp:ignore-as-path-length //bgp-mp:ignore-as-path-length's original type is boolean IgnoreAsPathLength bool // original -> bgp-mp:external-compare-router-id //bgp-mp:external-compare-router-id's original type is boolean ExternalCompareRouterId bool // original -> bgp-mp:advertise-inactive-routes //bgp-mp:advertise-inactive-routes's original type is boolean AdvertiseInactiveRoutes bool // original -> bgp-mp:enable-aigp //bgp-mp:enable-aigp's original type is boolean EnableAigp bool // original -> bgp-mp:ignore-next-hop-igp-metric //bgp-mp:ignore-next-hop-igp-metric's original type is boolean IgnoreNextHopIgpMetric bool }
struct for container bgp-mp:state
type RouteServer ¶
type RouteServer struct { // original -> gobgp:route-server-config RouteServerConfig RouteServerConfig // original -> gobgp:route-server-state RouteServerState RouteServerState }
struct for container gobgp:route-server
type RouteServerConfig ¶
type RouteServerConfig struct { // original -> gobgp:route-server-client //gobgp:route-server-client's original type is boolean RouteServerClient bool }
struct for container gobgp:config
type RouteServerState ¶
type RouteServerState struct { // original -> gobgp:route-server-client //gobgp:route-server-client's original type is boolean RouteServerClient bool }
struct for container gobgp:state
type RoutingPolicy ¶
type RoutingPolicy struct { // original -> rpol:defined-sets DefinedSets DefinedSets // original -> rpol:policy-definitions PolicyDefinitions PolicyDefinitions }
struct for container rpol:routing-policy
type RpkiMessages ¶
type RpkiMessages struct { // original -> gobgp:rpki-sent RpkiSent RpkiSent // original -> gobgp:rpki-received RpkiReceived RpkiReceived }
struct for container gobgp:rpki-messages
type RpkiReceived ¶
type RpkiReceived struct { // original -> gobgp:serial-notify SerialNotify int64 // original -> gobgp:cache-reset CacheReset int64 // original -> gobgp:cache-response CacheResponse int64 // original -> gobgp:ipv4-prefix Ipv4Prefix int64 // original -> gobgp:ipv6-prefix Ipv6Prefix int64 // original -> gobgp:end-of-data EndOfData int64 // original -> gobgp:error Error int64 }
struct for container gobgp:rpki-received
type RpkiSent ¶
type RpkiSent struct { // original -> gobgp:serial-query SerialQuery int64 // original -> gobgp:reset-query ResetQuery int64 // original -> gobgp:error Error int64 }
struct for container gobgp:rpki-sent
type RpkiServer ¶
type RpkiServer struct { // original -> gobgp:rpki-server-config RpkiServerConfig RpkiServerConfig // original -> gobgp:rpki-server-state RpkiServerState RpkiServerState }
struct for container gobgp:rpki-server
type RpkiServerConfig ¶
type RpkiServerConfig struct { // original -> gobgp:address //gobgp:address's original type is inet:ip-address Address net.IP // original -> gobgp:port Port uint32 // original -> gobgp:refresh-time RefreshTime int64 // original -> gobgp:hold-time HoldTime int64 // original -> gobgp:record-lifetime RecordLifetime int64 // original -> gobgp:preference Preference uint8 }
struct for container gobgp:config
type RpkiServerState ¶
type RpkiServerState struct { // original -> gobgp:uptime Uptime int64 // original -> gobgp:downtime Downtime int64 // original -> gobgp:last-pdu-recv-time LastPduRecvTime int64 // original -> gobgp:rpki-messages RpkiMessages RpkiMessages }
struct for container gobgp:state
type RpkiServers ¶
type RpkiServers struct { // original -> gobgp:rpki-server RpkiServerList []RpkiServer }
struct for container gobgp:rpki-servers
type RpkiValidationResultType ¶
type RpkiValidationResultType int
typedef for typedef gobgp:rpki-validation-result-type
const ( RPKI_VALIDATION_RESULT_TYPE_NONE RpkiValidationResultType = iota RPKI_VALIDATION_RESULT_TYPE_NOT_FOUND RPKI_VALIDATION_RESULT_TYPE_VALID RPKI_VALIDATION_RESULT_TYPE_INVALID )
type Sent ¶
type Sent struct { // original -> bgp-op:UPDATE Update uint64 // original -> bgp-op:NOTIFICATION Notification uint64 // original -> gobgp:OPEN Open uint64 // original -> gobgp:REFRESH Refresh uint64 // original -> gobgp:KEEPALIVE Keepalive uint64 // original -> gobgp:DYNAMIC-CAP DynamicCap uint64 // original -> gobgp:DISCARDED Discarded uint64 // original -> gobgp:TOTAL Total uint64 }
struct for container bgp:sent
type SetAsPathPrepend ¶
type SetAsPathPrepend struct { // original -> bgp-pol:repeat-n RepeatN uint8 // original -> gobgp:as //gobgp:as's original type is union As string }
struct for container bgp-pol:set-as-path-prepend
type SetCommunity ¶
type SetCommunity struct { // original -> bgp-pol:set-community-method SetCommunityMethod SetCommunityMethod // original -> bgp-pol:options //bgp-pol:options's original type is bgp-set-community-option-type Options string }
struct for container bgp-pol:set-community
type SetCommunityMethod ¶
type SetCommunityMethod struct { // original -> bgp-pol:communities //original type is list of union Communities []string // original -> bgp-pol:community-set-ref CommunitySetRef string }
struct for container bgp-pol:set-community-method
type SetExtCommunity ¶
type SetExtCommunity struct { // original -> bgp-pol:set-ext-community-method SetExtCommunityMethod SetExtCommunityMethod // original -> bgp-pol:options //bgp-pol:options's original type is bgp-set-community-option-type Options string }
struct for container bgp-pol:set-ext-community
type SetExtCommunityMethod ¶
type SetExtCommunityMethod struct { // original -> bgp-pol:communities //original type is list of union Communities []string // original -> bgp-pol:ext-community-set-ref ExtCommunitySetRef string }
struct for container bgp-pol:set-ext-community-method
type Statement ¶
type Statement struct { // original -> rpol:name Name string // original -> rpol:conditions Conditions Conditions // original -> rpol:actions Actions Actions }
struct for container rpol:statement
type Statements ¶
type Statements struct { // original -> rpol:statement StatementList []Statement }
struct for container rpol:statements
type Tag ¶
type Tag struct { // original -> rpol:value Value TagType }
struct for container rpol:tag
type TagSet ¶
type TagSet struct { // original -> rpol:tag-set-name TagSetName string // original -> rpol:tag TagList []Tag }
struct for container rpol:tag-set
type TagSets ¶
type TagSets struct { // original -> rpol:tag-set TagSetList []TagSet }
struct for container rpol:tag-sets
type Timers ¶
type Timers struct { // original -> bgp:timers-config TimersConfig TimersConfig // original -> bgp:timers-state TimersState TimersState }
struct for container bgp:timers
type TimersConfig ¶
type TimersConfig struct { // original -> bgp:connect-retry //bgp:connect-retry's original type is decimal64 ConnectRetry float64 // original -> bgp:hold-time //bgp:hold-time's original type is decimal64 HoldTime float64 // original -> bgp:keepalive-interval //bgp:keepalive-interval's original type is decimal64 KeepaliveInterval float64 // original -> bgp:minimum-advertisement-interval //bgp:minimum-advertisement-interval's original type is decimal64 MinimumAdvertisementInterval float64 // original -> gobgp:idle-hold-time-after-reset //gobgp:idle-hold-time-after-reset's original type is decimal64 IdleHoldTimeAfterReset float64 }
struct for container bgp:config
type TimersState ¶
type TimersState struct { // original -> bgp:connect-retry //bgp:connect-retry's original type is decimal64 ConnectRetry float64 // original -> bgp:hold-time //bgp:hold-time's original type is decimal64 HoldTime float64 // original -> bgp:keepalive-interval //bgp:keepalive-interval's original type is decimal64 KeepaliveInterval float64 // original -> bgp:minimum-advertisement-interval //bgp:minimum-advertisement-interval's original type is decimal64 MinimumAdvertisementInterval float64 // original -> bgp-op:uptime //bgp-op:uptime's original type is yang:timeticks Uptime int64 // original -> bgp-op:negotiated-hold-time //bgp-op:negotiated-hold-time's original type is decimal64 NegotiatedHoldTime float64 // original -> gobgp:idle-hold-time-after-reset //gobgp:idle-hold-time-after-reset's original type is decimal64 IdleHoldTimeAfterReset float64 // original -> gobgp:downtime //gobgp:downtime's original type is yang:timeticks Downtime int64 // original -> gobgp:update-recv-time UpdateRecvTime int64 }
struct for container bgp:state
type Transport ¶
type Transport struct { // original -> bgp:transport-config TransportConfig TransportConfig // original -> bgp:transport-state TransportState TransportState }
struct for container bgp:transport
type TransportConfig ¶
type TransportConfig struct { // original -> bgp:tcp-mss TcpMss uint16 // original -> bgp:mtu-discovery //bgp:mtu-discovery's original type is boolean MtuDiscovery bool // original -> bgp:passive-mode //bgp:passive-mode's original type is boolean PassiveMode bool // original -> gobgp:local-address //gobgp:local-address's original type is inet:ip-address LocalAddress net.IP }
struct for container bgp:config
type TransportState ¶
type TransportState struct { // original -> bgp:tcp-mss TcpMss uint16 // original -> bgp:mtu-discovery //bgp:mtu-discovery's original type is boolean MtuDiscovery bool // original -> bgp:passive-mode //bgp:passive-mode's original type is boolean PassiveMode bool // original -> bgp-op:local-port //bgp-op:local-port's original type is inet:port-number LocalPort uint16 // original -> bgp-op:remote-address //bgp-op:remote-address's original type is inet:ip-address RemoteAddress net.IP // original -> bgp-op:remote-port //bgp-op:remote-port's original type is inet:port-number RemotePort uint16 // original -> gobgp:local-address //gobgp:local-address's original type is inet:ip-address LocalAddress net.IP }
struct for container bgp:state
type UseMultiplePaths ¶
type UseMultiplePaths struct { // original -> bgp-mp:use-multiple-paths-config UseMultiplePathsConfig UseMultiplePathsConfig // original -> bgp-mp:use-multiple-paths-state UseMultiplePathsState UseMultiplePathsState // original -> bgp-mp:ebgp Ebgp Ebgp // original -> bgp-mp:ibgp Ibgp Ibgp }
struct for container bgp-mp:use-multiple-paths
type UseMultiplePathsConfig ¶
type UseMultiplePathsConfig struct { // original -> bgp-mp:enabled //bgp-mp:enabled's original type is boolean Enabled bool }
struct for container bgp-mp:config
type UseMultiplePathsState ¶
type UseMultiplePathsState struct { // original -> bgp-mp:enabled //bgp-mp:enabled's original type is boolean Enabled bool }
struct for container bgp-mp:state
type Zebra ¶
type Zebra struct { // original -> gobgp:enabled //gobgp:enabled's original type is boolean Enabled bool // original -> gobgp:url Url string // original -> gobgp:redistribute-route-type RedistributeRouteTypeList []RedistributeRouteType }
struct for container gobgp:zebra