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

Documentation

Overview

Copyright [2016] [SnapRoute Inc]

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

_______ __ __________ ___ _______.____ __ ____ __ .___________. ______ __ __ | ____|| | | ____\ \ / / / |\ \ / \ / / | | | | / || | | | | |__ | | | |__ \ V / | (----` \ \/ \/ / | | `---| |----`| ,----'| |__| | | __| | | | __| > < \ \ \ / | | | | | | | __ | | | | `----.| |____ / . \ .----) | \ /\ / | | | | | `----.| | | | |__| |_______||_______/__/ \__\ |_______/ \__/ \__/ |__| |__| \______||__| |__|

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateGlobalConfig

func CreateGlobalConfig(vrf string, retransmit uint32, reachableTime uint32, raTime uint8) (bool, error)

func GetAllNdpIntfState

func GetAllNdpIntfState(from, count int) (int, int, []config.InterfaceEntries)

func GetAllNeigborEntries

func GetAllNeigborEntries(from, count int) (int, int, []config.NeighborConfig)

func GetNDPGlobalState

func GetNDPGlobalState(vrf string) (*config.GlobalState, error)

func GetNdpIntfState

func GetNdpIntfState(intfRef string) *config.InterfaceEntries

func GetNeighborEntry

func GetNeighborEntry(ipAddr string) *config.NeighborConfig

func Init

func Init(svr *server.NDPServer)

func InitComplete

func InitComplete() bool

func SendDeleteByIfName

func SendDeleteByIfName(intfRef string)

func SendDeleteByNeighborIp

func SendDeleteByNeighborIp(ipAddr string)

func SendIPIntfNotfication

func SendIPIntfNotfication(ifIndex int32, ipaddr, intfRef, msgType string)

func SendL3PortNotification

func SendL3PortNotification(ifIndex int32, state, ipAddr string)

func SendMacMoveNotification

func SendMacMoveNotification(ipAddr string, ifIndex, vlanId int32)

func SendRefreshByIfName

func SendRefreshByIfName(intfRef string)

func SendRefreshByNeighborIp

func SendRefreshByNeighborIp(ipAddr string)

func SendVlanNotification

func SendVlanNotification(oper string, vlanId int32, vlanIfIndex int32, vlanName string, untagPorts []int32, tagPorts []int32)

func UpdateGlobalConfig

func UpdateGlobalConfig(vrf string, retransmit uint32, reachableTime uint32, raTime uint8) (bool, error)

Types

type NDPApiLayer

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

Jump to

Keyboard shortcuts

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