layer2

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2019 License: ISC Imports: 3 Imported by: 6

Documentation

Overview

Package layer2 is the client.Network.Layer2Subinterface namespace.

Normalized object: Entry

Index

Constants

View Source
const (
	VirtualWire = "virtual-wire"
	Layer2      = "layer2"
)

Valid mType values.

View Source
const (
	EthernetInterface  = "ethernet"
	AggregateInterface = "aggregate-ethernet"
)

Valid iType values.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name           string
	Tag            int
	NetflowProfile string
	Comment        string
}

Entry is a normalized, version independent representation of a layer2 subinterface.

func (*Entry) Copy

func (o *Entry) Copy(s Entry)

Copy copies the information from source Entry `s` to this object. As the Name field relates to the XPATH of this object, this field is not copied.

type FwLayer2

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

FwLayer2 is the client.Network.Layer2Subinterface namespace.

func (*FwLayer2) Delete

func (c *FwLayer2) Delete(iType, eth, mType string, e ...interface{}) error

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*FwLayer2) Edit

func (c *FwLayer2) Edit(iType, eth, mType, vsys string, e Entry) error

Edit performs EDIT to create / update one object.

func (*FwLayer2) Get

func (c *FwLayer2) Get(iType, eth, mType, name string) (Entry, error)

Get performs GET to retrieve information for the given uid.

func (*FwLayer2) GetList

func (c *FwLayer2) GetList(iType, eth, mType string) ([]string, error)

GetList performs GET to retrieve a list of values.

func (*FwLayer2) Initialize

func (c *FwLayer2) Initialize(con util.XapiClient)

Initialize is invoked by client.Initialize().

func (*FwLayer2) Set

func (c *FwLayer2) Set(iType, eth, mType, vsys string, e ...Entry) error

Set performs SET to create / update one or more objects.

func (*FwLayer2) Show

func (c *FwLayer2) Show(iType, eth, mType, name string) (Entry, error)

Show performs SHOW to retrieve information for the given uid.

func (*FwLayer2) ShowList

func (c *FwLayer2) ShowList(iType, eth, mType string) ([]string, error)

ShowList performs SHOW to retrieve a list of values.

type PanoLayer2

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

PanoLayer2 is the client.Network.Layer2Subinterface namespace.

func (*PanoLayer2) Delete

func (c *PanoLayer2) Delete(tmpl, ts, iType, eth, mType string, e ...interface{}) error

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*PanoLayer2) Edit

func (c *PanoLayer2) Edit(tmpl, ts, iType, eth, mType, vsys string, e Entry) error

Edit performs EDIT to create / update one object.

func (*PanoLayer2) Get

func (c *PanoLayer2) Get(tmpl, ts, iType, eth, mType, name string) (Entry, error)

Get performs GET to retrieve information for the given uid.

func (*PanoLayer2) GetList

func (c *PanoLayer2) GetList(tmpl, ts, iType, eth, mType string) ([]string, error)

GetList performs GET to retrieve a list of values.

func (*PanoLayer2) Initialize

func (c *PanoLayer2) Initialize(con util.XapiClient)

Initialize is invoked by client.Initialize().

func (*PanoLayer2) Set

func (c *PanoLayer2) Set(tmpl, ts, iType, eth, mType, vsys string, e ...Entry) error

Set performs SET to create / update one or more objects.

func (*PanoLayer2) Show

func (c *PanoLayer2) Show(tmpl, ts, iType, eth, mType, name string) (Entry, error)

Show performs SHOW to retrieve information for the given uid.

func (*PanoLayer2) ShowList

func (c *PanoLayer2) ShowList(tmpl, ts, iType, eth, mType string) ([]string, error)

ShowList performs SHOW to retrieve a list of values.

Jump to

Keyboard shortcuts

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