cmdb

package
v0.0.1-alpha.9 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBGPGlobal

func GetBGPGlobal() ([]*bgp.BGPGlobal, error)

GetBGPGlobal returns all BGP global configuration from the Network CMDB.

func GetBGPSessions

func GetBGPSessions() ([]*bgp.Session, error)

GetBGPSessions returns all BGP sessions from the Network CMDB.

func GetCommunityLists

func GetCommunityLists() ([]*routingpolicy.CommunityList, error)

GetCommunityLists returns all community-lists from the Network CMDB.

func GetPeerGroups deprecated

func GetPeerGroups() ([]*bgp.PeerGroup, error)

GetPeerGroups returns all peer-groups from the Network CMDB.

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

func GetPrefixLists

func GetPrefixLists() ([]*routingpolicy.PrefixList, error)

GetPrefixLists returns all prefix-lists from the Network CMDB.

func GetRoutePolicies

func GetRoutePolicies() ([]*routingpolicy.RoutePolicy, error)

GetRoutePolicies returns all route-policies defined in the CDMB.

func PrecomputeBGPGlobal

func PrecomputeBGPGlobal(globalConfigs []*bgp.BGPGlobal) map[string]*bgp.BGPGlobal

PrecomputeBGPGlobal associates each found BGP global configuration to the matching devices.

func PrecomputeBGPSessions

func PrecomputeBGPSessions(sessions []*bgp.Session) map[string][]*bgp.Session

PrecomputeBGPSessions links each BGP sessions to the two matching devices.

func PrecomputeCommunityLists

func PrecomputeCommunityLists(communityLists []*routingpolicy.CommunityList) map[string][]*routingpolicy.CommunityList

PrecomputeCommunityLists associates each found community-lists to the matching devices.

func PrecomputePeerGroups deprecated

func PrecomputePeerGroups(peerGroups []*bgp.PeerGroup) map[string][]*bgp.PeerGroup

PrecomputePeerGroups associates each found peer-groups to the matching devices.

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

func PrecomputePrefixLists

func PrecomputePrefixLists(prefixLists []*routingpolicy.PrefixList) map[string][]*routingpolicy.PrefixList

PrecomputePrefixLists associates each found prefix-lists to the matching devices.

func PrecomputeRoutePolicies

func PrecomputeRoutePolicies(routePolicies []*routingpolicy.RoutePolicy) map[string][]*routingpolicy.RoutePolicy

PrecomputeRoutePolicies associates each found route-policies to the matching devices.

Types

This section is empty.

Jump to

Keyboard shortcuts

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