utils

package
v0.0.0-...-67b321a Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddArp

func AddArp(vtepDeviceIndex int, vtepIP net.IP, vtepMAC net.HardwareAddr) error

func AddDefaultRoute

func AddDefaultRoute(gw net.IP, dev netlink.Link) error

AddDefaultRoute sets the default route on the given gateway.

func AddFDB

func AddFDB(vtepDeviceIndex int, vtepIP net.IP, vtepMAC net.HardwareAddr) error

func AddRoute

func AddRoute(ipn *net.IPNet, gw net.IP, dev netlink.Link) error

func DelArp

func DelArp(vtepDeviceIndex int, vtepIP net.IP, vtepMAC net.HardwareAddr) error

func DelFDB

func DelFDB(vtepDeviceIndex int, vtepIP net.IP, vtepMAC net.HardwareAddr) error

func DelRoute

func DelRoute(vtepDeviceIndex int, dst *net.IPNet, gateway net.IP) error

func ReplaceRoute

func ReplaceRoute(localVtepID int, dst *net.IPNet) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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