func (ev *BGPRouteUpdate) TransactionType() controller.UpdateTransactionType {
	return controller.BestEffort
}
TransactionType is BestEffort.
package bgpreflector
import (
	"fmt"
	"net"
	controller "github.com/contiv/vpp/plugins/controller/api"
)
type BGPRouteUpdateType int
const (
	RouteAdd BGPRouteUpdateType = iota
	RouteDelete
)
func (t BGPRouteUpdateType) String() string {
	switch t {
	case RouteAdd:
		return "RouteAdd"
	case RouteDelete:
		return "RouteDelete"
	default:
		return fmt.Sprintf("%d", int(t))
	}
}
type BGPRouteUpdate struct {
	Type       BGPRouteUpdateType
	DstNetwork *net.IPNet
	GwAddr     net.IP
}
func (ev *BGPRouteUpdate) GetName() string {
	return "BGP route Change"
}
func (ev *BGPRouteUpdate) String() string {
	return fmt.Sprintf("%s\n"+
		"* Type: %s\n"+
		"* DstNetwork: %s\n"+
		"* GW: %s",
		ev.GetName(), ev.Type.String(), ev.DstNetwork.String(), ev.GwAddr.String())
}
func (ev *BGPRouteUpdate) Method() controller.EventMethodType {
	return controller.Update
}