redist

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: ISC Imports: 4 Imported by: 2

Documentation

Overview

Package redist is the client.Network.BgpRedistRule namespace.

Normalized object: Entry

Index

Constants

View Source
const (
	AddressFamilyIpv4 = "ipv4"
	AddressFamilyIpv6 = "ipv6"
)

Valid values for AddressFamily (PAN-OS 8.0+).

View Source
const (
	RouteTableUnicast   = "unicast"
	RouteTableMulticast = "multicast"
	RouteTableBoth      = "both"
)

Valid values for RouteTable (PAN-OS 8.0+).

View Source
const (
	SetOriginIgp        = "igp"
	SetOriginEgp        = "egp"
	SetOriginIncomplete = "incomplete"
)

Valid values for Origin.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name                 string
	Enable               bool
	AddressFamily        string
	RouteTable           string // 8.0+
	Metric               int
	SetOrigin            string
	SetMed               string
	SetLocalPreference   string
	SetAsPathLimit       int
	SetCommunity         []string
	SetExtendedCommunity []string
}

Entry is a normalized, version independent representation of a BGP redistribution rule.

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 FwRedist

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

FwRedist is the client.Network.BgpRedistRule namespace.

func (*FwRedist) Delete

func (c *FwRedist) Delete(vr string, e ...interface{}) error

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*FwRedist) Edit

func (c *FwRedist) Edit(vr string, e Entry) error

Edit performs EDIT to create / update one object.

func (*FwRedist) Get

func (c *FwRedist) Get(vr, name string) (Entry, error)

Get performs GET to retrieve information for the given uid.

func (*FwRedist) GetList

func (c *FwRedist) GetList(vr string) ([]string, error)

GetList performs GET to retrieve a list of values.

func (*FwRedist) Initialize

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

Initialize is invoked by client.Initialize().

func (*FwRedist) Set

func (c *FwRedist) Set(vr string, e ...Entry) error

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

func (*FwRedist) Show

func (c *FwRedist) Show(vr, name string) (Entry, error)

Show performs SHOW to retrieve information for the given uid.

func (*FwRedist) ShowList

func (c *FwRedist) ShowList(vr string) ([]string, error)

ShowList performs SHOW to retrieve a list of values.

type PanoRedist

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

PanoRedist is the client.Network.BgpRedistRule namespace.

func (*PanoRedist) Delete

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

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*PanoRedist) Edit

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

Edit performs EDIT to create / update one object.

func (*PanoRedist) Get

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

Get performs GET to retrieve information for the given uid.

func (*PanoRedist) GetList

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

GetList performs GET to retrieve a list of values.

func (*PanoRedist) Initialize

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

Initialize is invoked by client.Initialize().

func (*PanoRedist) Set

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

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

func (*PanoRedist) Show

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

Show performs SHOW to retrieve information for the given uid.

func (*PanoRedist) ShowList

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