vrrpRpc

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: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VRRP_RPC_NO_PORT      = "could not find port and hence not starting rpc"
	VRRP_NEED_UNIQUE_INFO = "Original IfIndex & new IfIndex have different ifindex or VRID, hence cannot do an update"
	VRRP_SVR_NO_ENTRY     = "Cannot find entry in db"
)

Variables

This section is empty.

Functions

func VrrpCheckConfig

func VrrpCheckConfig(config *vrrpd.VrrpIntf, h *VrrpHandler) (bool, error)

func VrrpRpcStartServer

func VrrpRpcStartServer(log *logging.Writer, handler *VrrpHandler, paramsDir string) error

Types

type VrrpClientJson

type VrrpClientJson struct {
	Name string `json:Name`
	Port int    `json:Port`
}

func VrrpRpcGetClient

func VrrpRpcGetClient(logger *logging.Writer, fileName string, process string) (*VrrpClientJson, error)

type VrrpHandler

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

func VrrpNewHandler

func VrrpNewHandler(vrrpSvr *vrrpServer.VrrpServer, logger *logging.Writer) *VrrpHandler

func (*VrrpHandler) CreateVrrpIntf

func (h *VrrpHandler) CreateVrrpIntf(config *vrrpd.VrrpIntf) (r bool, err error)

func (*VrrpHandler) DeleteVrrpIntf

func (h *VrrpHandler) DeleteVrrpIntf(config *vrrpd.VrrpIntf) (r bool, err error)

func (*VrrpHandler) GetBulkVrrpIntfState

func (h *VrrpHandler) GetBulkVrrpIntfState(fromIndex vrrpd.Int,
	count vrrpd.Int) (*vrrpd.VrrpIntfStateGetInfo, error)

func (*VrrpHandler) GetBulkVrrpVridState

func (h *VrrpHandler) GetBulkVrrpVridState(fromIndex vrrpd.Int,
	count vrrpd.Int) (*vrrpd.VrrpVridStateGetInfo, error)

func (*VrrpHandler) GetVrrpIntfState

func (h *VrrpHandler) GetVrrpIntfState(ifIndex int32, vrId int32) (*vrrpd.VrrpIntfState, error)

func (*VrrpHandler) GetVrrpVridState

func (h *VrrpHandler) GetVrrpVridState(ifIndex int32, vrId int32) (*vrrpd.VrrpVridState, error)

func (*VrrpHandler) UpdateVrrpIntf

func (h *VrrpHandler) UpdateVrrpIntf(origconfig *vrrpd.VrrpIntf,
	newconfig *vrrpd.VrrpIntf, attrset []bool, op []*vrrpd.PatchOpInfo) (r bool, err error)

Jump to

Keyboard shortcuts

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