gre

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: 3 Imported by: 1

Documentation

Overview

Package gre is the client.Network.GreTunnel namespace.

Only valid for PAN-OS 9.0+.

GRE tunnels are not imported into the vsys.

Panorama seems to have GRE tunnels in templates only, not template stacks.

Normalized object: Entry

Index

Constants

View Source
const (
	LocalAddressTypeIp         = "ip"
	LocalAddressTypeFloatingIp = "floating-ip"
)

Valid LocalAddressType values.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name               string
	Interface          string
	LocalAddressType   string
	LocalAddressValue  string
	PeerAddress        string
	TunnelInterface    string
	Ttl                int
	CopyTos            bool
	EnableKeepAlive    bool
	KeepAliveInterval  int
	KeepAliveRetry     int
	KeepAliveHoldTimer int
	Disabled           bool
}

Entry is a normalized, version independent representation of a peer.

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 FwGre

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

FwGre is the client.Network.GreTunnel namespace.

func (*FwGre) Delete

func (c *FwGre) Delete(e ...interface{}) error

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*FwGre) Edit

func (c *FwGre) Edit(e Entry) error

Edit performs EDIT to create / update one object.

func (*FwGre) Get

func (c *FwGre) Get(name string) (Entry, error)

Get performs GET to retrieve information for the given uid.

func (*FwGre) GetList

func (c *FwGre) GetList() ([]string, error)

GetList performs GET to retrieve a list of values.

func (*FwGre) Initialize

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

Initialize is invoked by client.Initialize().

func (*FwGre) Set

func (c *FwGre) Set(e ...Entry) error

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

func (*FwGre) Show

func (c *FwGre) Show(name string) (Entry, error)

Show performs SHOW to retrieve information for the given uid.

func (*FwGre) ShowList

func (c *FwGre) ShowList() ([]string, error)

ShowList performs SHOW to retrieve a list of values.

type PanoGre

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

PanoGre is the client.Network.GreTunnel namespace.

func (*PanoGre) Delete

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

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*PanoGre) Edit

func (c *PanoGre) Edit(tmpl, ts string, e Entry) error

Edit performs EDIT to create / update one object.

func (*PanoGre) Get

func (c *PanoGre) Get(tmpl, ts, name string) (Entry, error)

Get performs GET to retrieve information for the given uid.

func (*PanoGre) GetList

func (c *PanoGre) GetList(tmpl, ts string) ([]string, error)

GetList performs GET to retrieve a list of values.

func (*PanoGre) Initialize

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

Initialize is invoked by client.Initialize().

func (*PanoGre) Set

func (c *PanoGre) Set(tmpl, ts string, e ...Entry) error

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

func (*PanoGre) Show

func (c *PanoGre) Show(tmpl, ts, name string) (Entry, error)

Show performs SHOW to retrieve information for the given uid.

func (*PanoGre) ShowList

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