aggregate

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 License: ISC Imports: 3 Imported by: 2

Documentation

Overview

Package aggregate is the client.Network.BgpAggregation namespace.

Normalized object: Entry

Index

Constants

View Source
const (
	OriginIgp        = "igp"
	OriginEgp        = "egp"
	OriginIncomplete = "incomplete"
)

Valid values for Origin.

View Source
const (
	CommunityTypeNone        = "none"
	CommunityTypeRemoveAll   = "remove-all"
	CommunityTypeRemoveRegex = "remove-regex"
	CommunityTypeAppend      = "append"
	CommunityTypeOverwrite   = "overwrite"
)

Valid values for CommunityType.

View Source
const (
	AppendNoExport    = "no-export"
	AppendNoAdvertise = "no-advertise"
	AppendLocalAs     = "local-as"
	AppendNoPeer      = "nopeer"
)

Valid values for CommunityValue when CommunityType is "append" or "overwrite".

View Source
const (
	AsPathTypeNone             = "none"
	AsPathTypeRemove           = "remove"
	AsPathTypePrepend          = "prepend"
	AsPathTypeRemoveAndPrepend = "remove-and-prepend"
)

Valid values for AsPathType. As of PAN-OS 8.1, "prepend" and "remove-and-prepend" are disabled.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name                   string
	Prefix                 string
	Enable                 bool
	Summary                bool
	AsSet                  bool
	LocalPreference        string
	Med                    string
	Weight                 int
	NextHop                string
	Origin                 string
	AsPathLimit            int
	AsPathType             string
	AsPathValue            string
	CommunityType          string
	CommunityValue         string
	ExtendedCommunityType  string
	ExtendedCommunityValue string
	// contains filtered or unexported fields
}

Entry is a normalized, version independent representation of a BGP address aggregation policy.

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 FwAggregate

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

FwAggregate is the client.Network.BgpAggregation namespace.

func (*FwAggregate) Delete

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

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*FwAggregate) Edit

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

Edit performs EDIT to create / update one object.

func (*FwAggregate) Get

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

Get performs GET to retrieve information for the given uid.

func (*FwAggregate) GetList

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

GetList performs GET to retrieve a list of values.

func (*FwAggregate) Initialize

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

Initialize is invoked by client.Initialize().

func (*FwAggregate) Set

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

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

func (*FwAggregate) Show

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

Show performs SHOW to retrieve information for the given uid.

func (*FwAggregate) ShowList

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

ShowList performs SHOW to retrieve a list of values.

type PanoAggregate

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

PanoAggregate is the client.Network.BgpAggregate namespace.

func (*PanoAggregate) Delete

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

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*PanoAggregate) Edit

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

Edit performs EDIT to create / update one object.

func (*PanoAggregate) Get

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

Get performs GET to retrieve information for the given uid.

func (*PanoAggregate) GetList

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

GetList performs GET to retrieve a list of values.

func (*PanoAggregate) Initialize

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

Initialize is invoked by client.Initialize().

func (*PanoAggregate) Set

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

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

func (*PanoAggregate) Show

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

Show performs SHOW to retrieve information for the given uid.

func (*PanoAggregate) ShowList

func (c *PanoAggregate) ShowList(tmpl, ts, vr string) ([]string, error)

ShowList performs SHOW to retrieve a list of values.

Directories

Path Synopsis
filter
advertise
Package advertise is the client.Network.BgpAggAdvertiseFilter namespace.
Package advertise is the client.Network.BgpAggAdvertiseFilter namespace.
suppress
Package suppress is the client.Network.BgpAggSuppressFilter namespace.
Package suppress is the client.Network.BgpAggSuppressFilter namespace.

Jump to

Keyboard shortcuts

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