layer3

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2019 License: ISC Imports: 4 Imported by: 1

Documentation

Overview

Package layer3 is the client.Network.Layer3Subinterface namespace.

Normalized object: Entry

Index

Constants

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
	StaticIps              []string // ordered
	Ipv6Enabled            bool
	Ipv6InterfaceId        string
	ManagementProfile      string
	Mtu                    int
	AdjustTcpMss           bool
	Ipv4MssAdjust          int
	Ipv6MssAdjust          int
	NetflowProfile         string
	Comment                string
	EnableDhcp             bool
	CreateDhcpDefaultRoute bool
	DhcpDefaultRouteMetric int
	DhcpSendHostnameEnable bool   // 9.0
	DhcpSendHostnameValue  string // 9.0
	DecryptForward         bool   // 8.1
	// contains filtered or unexported fields
}

Entry is a normalized, version independent representation of a layer3 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 FwLayer3

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

FwLayer3 is the client.Network.Layer3Subinterface namespace.

func (*FwLayer3) Delete

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

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*FwLayer3) Edit

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

Edit performs EDIT to create / update one object.

func (*FwLayer3) Get

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

Get performs GET to retrieve information for the given uid.

func (*FwLayer3) GetList

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

GetList performs GET to retrieve a list of values.

func (*FwLayer3) Initialize

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

Initialize is invoked by client.Initialize().

func (*FwLayer3) Set

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

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

func (*FwLayer3) Show

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

Show performs SHOW to retrieve information for the given uid.

func (*FwLayer3) ShowList

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

ShowList performs SHOW to retrieve a list of values.

type PanoLayer3

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

PanoLayer3 is the client.Network.Layer3Subinterface namespace.

func (*PanoLayer3) Delete

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

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*PanoLayer3) Edit

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

Edit performs EDIT to create / update one object.

func (*PanoLayer3) Get

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

Get performs GET to retrieve information for the given uid.

func (*PanoLayer3) GetList

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

GetList performs GET to retrieve a list of values.

func (*PanoLayer3) Initialize

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

Initialize is invoked by client.Initialize().

func (*PanoLayer3) Set

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

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

func (*PanoLayer3) Show

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

Show performs SHOW to retrieve information for the given uid.

func (*PanoLayer3) ShowList

func (c *PanoLayer3) ShowList(tmpl, ts, iType, eth 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