api

package
v0.0.0-...-ac9ef1f Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPolicyCondition

func AddPolicyCondition(condition utilspolicy.PolicyConditionConfig)

func AddPolicyDefinition

func AddPolicyDefinition(definition utilspolicy.PolicyDefinitionConfig)

func AddPolicyStmt

func AddPolicyStmt(stmt utilspolicy.PolicyStmtConfig)

func Init

func Init(server *server.BGPServer)
Initialize bgp api layer with the channels that will be used for communicating

* with the server

func InitPolicy

func InitPolicy(policyEngine *bgppolicy.BGPPolicyManager)
Initialize bgp api layer with the channels that will be used for communicating

* with the policy engine server

func RemovePolicyCondition

func RemovePolicyCondition(conditionName string)

func RemovePolicyDefinition

func RemovePolicyDefinition(definitionName string)

func RemovePolicyStmt

func RemovePolicyStmt(stmtName string)

func SendBfdNotification

func SendBfdNotification(DestIp string, State bool, Oper config.Operation)

Send bfd state information from bfd manager to server

func SendIntfMapNotification

func SendIntfMapNotification(ifIndex int32, ifName string)

Send interface map notification to server

func SendIntfNotification

func SendIntfNotification(ifIndex int32, ipAddr string, linklocalIp string, state config.Operation)

Send interface state notification to server

func SendRouteNotification

func SendRouteNotification(add []*config.RouteInfo, remove []*config.RouteInfo)

Send Routes information to server

func UpdatePolicyCondition

func UpdatePolicyCondition(condition utilspolicy.PolicyConditionConfig)

func UpdatePolicyDefinition

func UpdatePolicyDefinition(definition utilspolicy.PolicyDefinitionConfig)

func UpdatePolicyStmt

func UpdatePolicyStmt(stmt utilspolicy.PolicyStmtConfig)

Types

type ApiLayer

type ApiLayer struct {
	// contains filtered or unexported fields
}

type PolicyApiLayer

type PolicyApiLayer struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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