acispanctl

package
v0.0.0-...-1fde787 Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyVSPANConfig

func ApplyVSPANConfig(config SpanConfig) error

func CreateSpanSessionFromCont

func CreateSpanSessionFromCont(cont string, domain string, namespace string, dstIp string) error

func DeleteVSPANSession

func DeleteVSPANSession(sgname string) error

func GetAPICClient

func GetAPICClient() *client.Client

func PrintAllOpflexIDEp

func PrintAllOpflexIDEp()

func PrintAllVSPANSessions

func PrintAllVSPANSessions()

func SaveSpanConfig

func SaveSpanConfig(c SpanConfig, filename string) error

func StartVSPANSession

func StartVSPANSession(spanSrcGrpName string) error

func StopVSPANSession

func StopVSPANSession(spanSrcGrpName string) error

Types

type CEP

type CEP struct {
	Tenant string `mapstructure:"tenant"`
	Ap     string `mapstructure:"ap"`
	Epg    string `mapstructure:"epg"`
	Mac    string `mapstructure:"mac"`
}

type Destination

type Destination struct {
	Name   string `mapstructure:"name"`
	Ip     string `mapstructure:"ip"`
	Flowid uint   `mapstructure:"flowid"`
	Ttl    uint8  `mapstructure:"ttl"`
	Mtu    uint   `mapstructure:"mtu"`
	Dscp   string `mapstructure:"dscp"`
}

type DestinationGroup

type DestinationGroup struct {
	Name         string        `mapstructure:"name"`
	Tag          string        `mapstructure:"tag"`
	Destinations []Destination `mapstructure:"destinations"`
}

type Epg

type Epg struct {
	Name   string `mapstructure:"name"`
	Tenant string `mapstructure:"tenant"`
	Ap     string `mapstructure:"ap"`
}

type Path

type Path struct {
	Pod  string `mapstructure:"pod"`
	Node string `mapstructure:"node"`
	Port string `mapstructure:"port"`
}

type Source

type Source struct {
	Name      string `mapstructure:"name"`
	Direction string `mapstructure:"direction"`
	Epg       Epg    `mapstructure:"epg"`
	Path      Path   `mapstructure:"path"`
	Cep       CEP    `mapstructure:"cep"`
}

type SpanConfig

type SpanConfig struct {
	Sessions []SpanSession `mapstructure:"sessions"`
}

type SpanSession

type SpanSession struct {
	Name               string             `mapstructure:"name"`
	Destination_Groups []DestinationGroup `mapstructure:"destination_groups"`
	Sources            []Source           `mapstructure:"sources"`
	Admin_state        string             `mapstructure:"admin_state"`
	State              string             `mapstructure:"state"`
}

func NewSpanCEPSession

func NewSpanCEPSession(prefix string, tn string, ap string, epg string, mac string, destip string) SpanSession

Jump to

Keyboard shortcuts

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