advertise

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 advertise is the client.Network.BgpConAdvAdvertiseFilter namespace.

Normalized object: Entry

Index

Constants

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

Valid values for RouteTable.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name                   string
	Enable                 bool
	AsPathRegex            string
	CommunityRegex         string
	ExtendedCommunityRegex string
	Med                    string
	RouteTable             string // 8.0+
	AddressPrefix          []string
	NextHop                []string
	FromPeer               []string
}

Entry is a normalized, version independent representation of a BGP conditional advertisement advertise filter.

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 FwAdvertise

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

FwAdvertise is the client.Network.BgpConAdvAdvertiseFilter namespace.

func (*FwAdvertise) Delete

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

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*FwAdvertise) Edit

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

Edit performs EDIT to create / update one object.

func (*FwAdvertise) Get

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

Get performs GET to retrieve information for the given uid.

func (*FwAdvertise) GetList

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

GetList performs GET to retrieve a list of values.

func (*FwAdvertise) Initialize

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

Initialize is invoked by client.Initialize().

func (*FwAdvertise) Set

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

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

func (*FwAdvertise) Show

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

Show performs SHOW to retrieve information for the given uid.

func (*FwAdvertise) ShowList

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

ShowList performs SHOW to retrieve a list of values.

type PanoAdvertise

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

PanoAdvertise is the client.Network.BgpConAdvAdvertiseFilter namespace.

func (*PanoAdvertise) Delete

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

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*PanoAdvertise) Edit

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

Edit performs EDIT to create / update one object.

func (*PanoAdvertise) Get

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

Get performs GET to retrieve information for the given uid.

func (*PanoAdvertise) GetList

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

GetList performs GET to retrieve a list of values.

func (*PanoAdvertise) Initialize

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

Initialize is invoked by client.Initialize().

func (*PanoAdvertise) Set

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

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

func (*PanoAdvertise) Show

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

Show performs SHOW to retrieve information for the given uid.

func (*PanoAdvertise) ShowList

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