Documentation ¶
Overview ¶
Package impl implements handlers for agentctl commands.
Index ¶
- func AddBridgeDomainFlags(cmd *cobra.Command)
- func AddBridgeDomainNameFlag(cmd *cobra.Command)
- func AddCommonIfPutFlags(cmd *cobra.Command)
- func AddFibEntry(endpoints []string, label string, fib *L2FIBEntryFields)
- func AddInterfaceNameFlag(cmd *cobra.Command)
- func AddUpdateArpEntry(endpoints []string, label string, arp *BridgeDomainArpFields)
- func AddUpdateInterfaceToBridgeDomain(endpoints []string, label string, iface *BridgeDomainInterfaceFields)
- func CreateUpdateBridgeDomain(endpoints []string, label string)
- func DelFibEntry(endpoints []string, label string, fib *L2FIBEntryFields)
- func DeleteArpEntry(endpoints []string, label string, arp *BridgeDomainArpFields)
- func DeleteBridgeDomain(endpoints []string, label string)
- func DeleteInterfaceFromBridgeDomain(endpoints []string, label string, iface *BridgeDomainInterfaceFields)
- func IfJSONPut(endpoints []string, label string)
- func InterfaceDel(endpoints []string, label string)
- func PutAfPkt(endpoints []string, label string, ...)
- func PutEthernet(endpoints []string, label string)
- func PutLoopback(endpoints []string, label string)
- func PutMemif(endpoints []string, label string, flags *interfaces.Interfaces_Interface_Memif)
- func PutTap(endpoints []string, label string)
- func PutVxLan(endpoints []string, label string, flags *interfaces.Interfaces_Interface_Vxlan)
- type BridgeDomainArpFields
- type BridgeDomainCommonFields
- type BridgeDomainInterfaceFields
- type IfaceCommonFields
- type L2FIBEntryFields
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddBridgeDomainFlags ¶
AddBridgeDomainFlags adds all bridge domain flags.
func AddBridgeDomainNameFlag ¶
AddBridgeDomainNameFlag adds 'name' flag to the common fields.
func AddCommonIfPutFlags ¶
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 ¶
AddInterfaceNameFlag adds a 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 ¶
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, or 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 ¶
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 ¶
IfJSONPut creates an interface according to json configuration.
func InterfaceDel ¶
InterfaceDel removes the interface with defined name.
func PutAfPkt ¶
func PutAfPkt(endpoints []string, label string, flags *interfaces.Interfaces_Interface_Afpacket)
PutAfPkt creates an Af-packet type interface.
func PutEthernet ¶
PutEthernet creates an ethernet type interface.
func PutLoopback ¶
PutLoopback creates a loopback type interface.
func PutMemif ¶
func PutMemif(endpoints []string, label string, flags *interfaces.Interfaces_Interface_Memif)
PutMemif creates a memif type interface.
func PutVxLan ¶
func PutVxLan(endpoints []string, label string, flags *interfaces.Interfaces_Interface_Vxlan)
PutVxLan creates a 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.