bgp

package
v0.0.1-alpha.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BGPGlobalToOpenconfig

func BGPGlobalToOpenconfig(bgpGlobal *bgp.BGPGlobal) *openconfig.NetworkInstance_Protocol_Bgp_Global

BGPGlobalToOpenconfig converts precomputed prefix-lists to OpenConfig. OpenConfig path: /network-instances/network-instance/protocols/protocol/bgp/global/.

func BGPToOpenconfig

func BGPToOpenconfig(hostname string, bgpGlobal *bgp.BGPGlobal, sessions []*bgp.Session, peerGroups []*bgp.PeerGroup) (*openconfig.NetworkInstance_Protocol_Bgp, error)

BGPToOpenconfig converts all precomputed assets in BGP/* to OpenConfig. OpenConfig path: /network-instances/network-instance/protocols/protocol/bgp/.

func NeighborsToOpenconfig

func NeighborsToOpenconfig(hostname string, sessions []*bgp.Session) (map[string]*openconfig.NetworkInstance_Protocol_Bgp_Neighbor, error)

NeighborsToOpenconfig converts all BGP neighbors to OpenConfig. OpenConfig path: /network-instances/network-instance/protocols/protocol/bgp/neighbors/.

func PeerGroupsToOpenconfig deprecated

func PeerGroupsToOpenconfig(peerGroups []*bgp.PeerGroup) map[string]*openconfig.NetworkInstance_Protocol_Bgp_PeerGroup

PeerGroupsToOpenconfig converts precomputed AFI/SAFI to OpenConfig. OpenConfig path: /network-instances/network-instance/protocols/protocol/bgp/peer-groups.

Deprecated: peer-groups will be removed from the CMDB in future releases. You should migrate to configuration without using peer-groups.

func SafiToOpenconfig

SafiToOpenconfig converts precomputed AFI/SAFI to OpenConfig. OpenConfig path: /network-instances/network-instance/protocols/protocol/bgp/neighbors/neighbor/afi-safis/.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL