impl

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package impl implements handlers for agentctl commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBridgeDomainFlags

func AddBridgeDomainFlags(cmd *cobra.Command)

AddBridgeDomainFlags adds all bridge domain flags

func AddBridgeDomainNameFlag

func AddBridgeDomainNameFlag(cmd *cobra.Command)

AddBridgeDomainNameFlag adds 'name' flag to the common fields

func AddCommonIfPutFlags

func AddCommonIfPutFlags(cmd *cobra.Command)

AddCommonIfPutFlags adds flags common for all interface types

func AddFibEntry

func AddFibEntry(endpoints []string, label string, fib *L2FIBEntryFields)

AddFibEntry adds new FIB entry to the FIB table

func AddInterfaceNameFlag

func AddInterfaceNameFlag(cmd *cobra.Command)

AddInterfaceNameFlag adds name flag to interface flags

func AddUpdateArpEntry

func AddUpdateArpEntry(endpoints []string, label string, arp *BridgeDomainArpFields)

AddUpdateArpEntry creates or updates ARP entry in the bridge domain

func AddUpdateInterfaceToBridgeDomain

func AddUpdateInterfaceToBridgeDomain(endpoints []string, label string, iface *BridgeDomainInterfaceFields)

AddUpdateInterfaceToBridgeDomain adds interface to bridge domain

func CreateUpdateBridgeDomain

func CreateUpdateBridgeDomain(endpoints []string, label string)

CreateUpdateBridgeDomain creates a new bridge domain or updates an old one. All bridge domain attributes are set here. New bridge domain is created without attached interfaces, ARP table or FIB entries

func DelFibEntry

func DelFibEntry(endpoints []string, label string, fib *L2FIBEntryFields)

DelFibEntry from the FIB table

func DeleteArpEntry

func DeleteArpEntry(endpoints []string, label string, arp *BridgeDomainArpFields)

DeleteArpEntry removes ARP entry from the bridge domain

func DeleteBridgeDomain

func DeleteBridgeDomain(endpoints []string, label string)

DeleteBridgeDomain removes bridge domain from the configuration including all attached interfaces and ARP table entries

func DeleteInterfaceFromBridgeDomain

func DeleteInterfaceFromBridgeDomain(endpoints []string, label string, iface *BridgeDomainInterfaceFields)

DeleteInterfaceFromBridgeDomain removes interface from bridge domain

func IfJSONPut

func IfJSONPut(endpoints []string, label string)

IfJSONPut creates interface according to json configuration

func InterfaceDel

func InterfaceDel(endpoints []string, label string)

InterfaceDel removes interface with defined name

func PutAfPkt

func PutAfPkt(endpoints []string, label string, flags *interfaces.Interfaces_Interface_Afpacket)

PutAfPkt creates Af-packet type interface

func PutEthernet

func PutEthernet(endpoints []string, label string)

PutEthernet creates ethernet type interface

func PutLoopback

func PutLoopback(endpoints []string, label string)

PutLoopback creates loopback type interface

func PutMemif

func PutMemif(endpoints []string, label string, flags *interfaces.Interfaces_Interface_Memif)

PutMemif creates memif type interface

func PutTap

func PutTap(endpoints []string, label string)

PutTap creates tap type interface

func PutVxLan

func PutVxLan(endpoints []string, label string, flags *interfaces.Interfaces_Interface_Vxlan)

PutVxLan creates vxlan type interface

Types

type BridgeDomainArpFields

type BridgeDomainArpFields struct {
	BdName      string
	IPAddress   string
	PhysAddress string
	IsDelete    bool
}

BridgeDomainArpFields defines all fields used as flags in bridge domain arp command

type BridgeDomainCommonFields

type BridgeDomainCommonFields struct {
	Name    string
	Flood   bool
	UUFlood bool
	Forward bool
	Learn   bool
	Arp     bool
	MacAge  uint32
}

BridgeDomainCommonFields defines all fields which can be set using flags in bridge domain config

type BridgeDomainInterfaceFields

type BridgeDomainInterfaceFields struct {
	BdName            string
	IfName            string
	Bvi               bool
	SplitHorizonGroup uint32
	IsDelete          bool
}

BridgeDomainInterfaceFields defines all fields used as flags in bridge domain interface command

type IfaceCommonFields

type IfaceCommonFields struct {
	Name      string
	Desc      string
	IfType    string
	Enabled   bool
	PhysAddr  string
	Mtu       uint32
	Ipv4Addrs []string
	Ipv6Addrs []string
}

IfaceCommonFields are fields common for interface of any type

type L2FIBEntryFields

type L2FIBEntryFields struct {
	PhysAddress       string
	BdName            string
	Action            uint8
	OutgoingInterface string
	StaticConfig      bool
	BVI               bool
	IsDelete          bool
}

L2FIBEntryFields defines all fields used as flags in bridge domain fib command

Jump to

Keyboard shortcuts

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